public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Schmidt, Adriaan (T CED EDC-DE)" <adriaan.schmidt@siemens.com>,
	isar-users <isar-users@googlegroups.com>
Cc: "Moessbauer, Felix (T CED OES-DE)" <felix.moessbauer@siemens.com>,
	"Koch, Stefan (DI PA DCP R&D 3)" <stefan-koch@siemens.com>,
	Anton Mikanovich <amikan@ilbers.de>
Subject: Re: [PATCH v2 1/5] dpkg-base: Fix enabling of cross build profile
Date: Thu, 16 May 2024 08:15:22 +0200	[thread overview]
Message-ID: <b38446e6-92c5-41e0-95df-16dc5eb96ba9@siemens.com> (raw)
In-Reply-To: <AS4PR10MB5318A0D7843D08485BA24909EDED2@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM>

On 16.05.24 08:06, Schmidt, Adriaan (T CED EDC-DE) wrote:
> Kiszka, Jan (T CED), Mittwoch, 15. Mai 2024 13:08:
>> ISAR_CROSS_COMPILE might be set even if we are not cross-building a
>> package. Use an output of crossbuild.bbclass, BUILD_ARCH, to find out
>> if we are actually cross-building a package.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>>  meta/classes/dpkg-base.bbclass | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
>> index 30caedf9..93321976 100644
>> --- a/meta/classes/dpkg-base.bbclass
>> +++ b/meta/classes/dpkg-base.bbclass
>> @@ -215,7 +215,7 @@ dpkg_runbuild() {
>>
>>  def isar_deb_build_profiles(d):
>>      deb_build_profiles = d.getVar('DEB_BUILD_PROFILES')
>> -    if bb.utils.to_boolean(d.getVar('ISAR_CROSS_COMPILE')):
>> +    if d.getVar('BUILD_ARCH') != d.getVar('DISTRO_ARCH'):
> 
> That's the question "are we _actually_ cross-compiling"?
> 
> Elsewhere (multiarch.bbclass, linux-custom.inc) we have that
> check implemented as "ISAR_CROSS_COMPILE && DISTRO_ARCH != HOST_ARCH".
> 
> As a follow-up we should look into unifying this.
> Maybe have crossvars.bbclass figure out how we're building, and set
> one variable to be consumed by recipes, e.g.
> 
> ISAR_BUILDPROFILE="native|emulated|cross"
> 
> Or even add an override (:buildprofile-native, ...) to make it easier to use?
> 

I don't disagree.

Jan

-- 
Siemens AG, Technology
Linux Expert Center


  reply	other threads:[~2024-05-16  6:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-15 11:08 [PATCH v2 0/5] More kbuild improvements, single-build source packages, cross profile fix Jan Kiszka
2024-05-15 11:08 ` [PATCH v2 1/5] dpkg-base: Fix enabling of cross build profile Jan Kiszka
2024-05-16  6:06   ` Schmidt, Adriaan
2024-05-16  6:15     ` Jan Kiszka [this message]
2024-05-15 11:08 ` [PATCH v2 2/5] linux-custom: Model cross-built kbuild package separately Jan Kiszka
2024-05-15 11:08 ` [PATCH v2 3/5] linux-custom: Resolve native source package differences Jan Kiszka
2024-05-15 11:08 ` [PATCH v2 4/5] dpkg: Retrieve Debian source name from variable Jan Kiszka
2024-05-15 11:08 ` [PATCH v2 5/5] dpkg-source: Build source package only once Jan Kiszka
2024-05-17 12:21   ` Jan Kiszka
2024-05-15 13:47 ` [PATCH v2 0/5] More kbuild improvements, single-build source packages, cross profile fix Koch, Stefan
2024-05-15 17:40   ` Jan Kiszka
2024-05-16 16:37     ` Jan Kiszka
2024-05-17  9:03       ` Koch, Stefan

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=b38446e6-92c5-41e0-95df-16dc5eb96ba9@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=adriaan.schmidt@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=felix.moessbauer@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=stefan-koch@siemens.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