* [PATCH] image tools ext. class defines ISAR_CROSS_COMPILE, if missing
@ 2023-01-04 2:39 Roberto A. Foglietta
2023-01-04 8:26 ` Henning Schild
0 siblings, 1 reply; 2+ messages in thread
From: Roberto A. Foglietta @ 2023-01-04 2:39 UTC (permalink / raw)
To: isar-users
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
image tools extension class defines ISAR_CROSS_COMPILE = 0, if missing
The variable ISAR_CROSS_COMPILE might not be initialised in the image
tools extention class thus the project fail to build. This sets the default,
if missing.
Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
meta/classes/image-tools-extension.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/image-tools-extension.bbclass
b/meta/classes/image-tools-extension.bbclass
index b571985..48a93c8 100644
--- a/meta/classes/image-tools-extension.bbclass
+++ b/meta/classes/image-tools-extension.bbclass
https://github.com/ilbers/isar/commit/641520428a75cc6c23b7fbe661292f12dd2f09b7
[-- Attachment #2: 0001-image-tools-ext.-class-defines-ISAR_CROSS_COMPILE-if.patch --]
[-- Type: text/x-patch, Size: 1181 bytes --]
From 641520428a75cc6c23b7fbe661292f12dd2f09b7 Mon Sep 17 00:00:00 2001
From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Date: Wed, 4 Jan 2023 03:31:38 +0100
Subject: [PATCH] image tools ext. class defines ISAR_CROSS_COMPILE, if missing
image tools extension class defines ISAR_CROSS_COMPILE = 0, if missing
The variable ISAR_CROSS_COMPILE might not be initialised in the image
tools extention class thus the project fail to build. This sets the default,
if missing.
Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
meta/classes/image-tools-extension.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/image-tools-extension.bbclass b/meta/classes/image-tools-extension.bbclass
index b571985..48a93c8 100644
--- a/meta/classes/image-tools-extension.bbclass
+++ b/meta/classes/image-tools-extension.bbclass
@@ -11,6 +11,8 @@ IMAGER_INSTALL ??= ""
IMAGER_BUILD_DEPS ??= ""
DEPENDS += "${IMAGER_BUILD_DEPS}"
+ISAR_CROSS_COMPILE ?= "0"
+
IMAGER_SCHROOT_SESSION_ID = "isar-imager-${SCHROOT_USER}-${PN}-${MACHINE}-${ISAR_BUILD_UUID}"
do_install_imager_deps[depends] = "${SCHROOT_DEP} isar-apt:do_cache_config"
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] image tools ext. class defines ISAR_CROSS_COMPILE, if missing
2023-01-04 2:39 [PATCH] image tools ext. class defines ISAR_CROSS_COMPILE, if missing Roberto A. Foglietta
@ 2023-01-04 8:26 ` Henning Schild
0 siblings, 0 replies; 2+ messages in thread
From: Henning Schild @ 2023-01-04 8:26 UTC (permalink / raw)
To: Roberto A. Foglietta; +Cc: isar-users
Am Wed, 4 Jan 2023 03:39:48 +0100
schrieb "Roberto A. Foglietta" <roberto.foglietta@gmail.com>:
> image tools extension class defines ISAR_CROSS_COMPILE = 0, if missing
>
> The variable ISAR_CROSS_COMPILE might not be initialised in the image
> tools extention class thus the project fail to build. This sets the
> default, if missing.
How exactly would the build fail and can you repro that on isar next?
My guess is that we might want to find a more central place. We do have
the default in the local.conf sample but layers usually do not use
that. Maybe the bitbake.conf could be an option, or all code that deals
with the variable should be written in a way that it will also work if
the variable is not set.
Henning
>
> Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
> ---
> meta/classes/image-tools-extension.bbclass | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/image-tools-extension.bbclass
> b/meta/classes/image-tools-extension.bbclass
> index b571985..48a93c8 100644
> --- a/meta/classes/image-tools-extension.bbclass
> +++ b/meta/classes/image-tools-extension.bbclass
>
> https://github.com/ilbers/isar/commit/641520428a75cc6c23b7fbe661292f12dd2f09b7
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-04 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 2:39 [PATCH] image tools ext. class defines ISAR_CROSS_COMPILE, if missing Roberto A. Foglietta
2023-01-04 8:26 ` Henning Schild
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox