From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>,
isar-users@googlegroups.com
Subject: Re: [PATCH] dpkg class set default value for ISAR_CROSS_COMPILE, if missing
Date: Wed, 4 Jan 2023 09:27:36 +0100 [thread overview]
Message-ID: <77c3fed2-4a48-afe5-cd21-ccbe999bbdbd@siemens.com> (raw)
In-Reply-To: <CAJGKYO6XbTz64CMMBDkTT_+b+BSksgVdnXcYv-xdLza0n7dFkA@mail.gmail.com>
On 03.01.23 22:42, Roberto A. Foglietta wrote:
> The variable ISAR_CROSS_COMPILE might not be initialised in the dpkg
> class thus the project fails to build. This sets the default, if missing.
>
> Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
> ---
> meta/classes/dpkg.bbclass | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> index bf60a5b..230bac9 100644
> --- a/meta/classes/dpkg.bbclass
> +++ b/meta/classes/dpkg.bbclass
>
> https://github.com/ilbers/isar/commit/06916be39eb00e9808674231afb0ead03a526bc1
>
You must send patches inline, or we can't review things. Exceptionally
pulling it in here:
> From 06916be39eb00e9808674231afb0ead03a526bc1 Mon Sep 17 00:00:00 2001
> From: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
> Date: Tue, 3 Jan 2023 22:28:05 +0100
> Subject: [PATCH] dpkg class set default value for ISAR_CROSS_COMPILE, if
> missing
>
> The variable ISAR_CROSS_COMPILE might not be initialised in the dpkg
> 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/dpkg.bbclass | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
> index bf60a5b..230bac9 100644
> --- a/meta/classes/dpkg.bbclass
> +++ b/meta/classes/dpkg.bbclass
> @@ -3,6 +3,8 @@
>
> inherit dpkg-base
>
> +ISAR_CROSS_COMPILE ?= "0"
> +
> PACKAGE_ARCH ?= "${DISTRO_ARCH}"
>
> DPKG_PREBUILD_ENV_FILE="${WORKDIR}/dpkg_prebuild.env"
> --
> 2.34.1
Not sure what saved our ass so far, but the usage of ISAR_CROSS_COMPILE
is way more spread out, so this does not make sense. If we want (and
need) a global default, it should go into isar's bitbake.conf now. That
would also be in line with USE_CCACHE e.g.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
next prev parent reply other threads:[~2023-01-04 8:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 21:42 Roberto A. Foglietta
2023-01-04 8:27 ` Jan Kiszka [this message]
2023-01-04 10:31 ` Roberto A. Foglietta
2023-01-25 12:07 ` Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=77c3fed2-4a48-afe5-cd21-ccbe999bbdbd@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=roberto.foglietta@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox