From: Jan Kiszka <jan.kiszka@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH 1/7] Revert "base: Fix HOST_ARCH for native builds"
Date: Fri, 6 Oct 2023 07:59:16 +0200 [thread overview]
Message-ID: <c4a23c8a-fa15-41f1-ac34-f7d3a4d8baa3@siemens.com> (raw)
In-Reply-To: <97e458c5f21cc194466a1da58b51220390afa376.camel@ilbers.de>
On 06.10.23 07:44, Uladzimir Bely wrote:
> On Thu, 2023-10-05 at 20:31 +0200, Jan Kiszka wrote:
>> From: Jan Kiszka <jan.kiszka@siemens.com>
>>
>> This reverts commit 7bc68bb27f562257977bb5f701564ab08d4c5b3a.
>>
>> It was the wrong assumption that HOST_ARCH should depend on
>> ISAR_CROSS_COMPILE - too much code assumes that it is statically
>> bound
>> to the builder machine. Instead, code that needs effective builder
>> arch should use BUILD_HOST_ARCH.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>> ---
>> meta/classes/base.bbclass | 6 ++----
>> meta/classes/imagetypes.bbclass | 6 ++----
>> 2 files changed, 4 insertions(+), 8 deletions(-)
>>
>> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
>> index f315a9d5..88004120 100644
>> --- a/meta/classes/base.bbclass
>> +++ b/meta/classes/base.bbclass
>> @@ -49,15 +49,13 @@ def oe_import(d):
>> # We need the oe module name space early (before INHERITs get added)
>> OE_IMPORTED := "${@oe_import(d)}"
>>
>> -def get_deb_host_arch(d):
>> +def get_deb_host_arch():
>> import subprocess
>> - if d.getVar("ISAR_CROSS_COMPILE") != "1":
>> - return d.getVar("DISTRO_ARCH")
>> host_arch = subprocess.check_output(
>> ["dpkg", "--print-architecture"]
>> ).decode('utf-8').strip()
>> return host_arch
>> -HOST_ARCH ??= "${@get_deb_host_arch(d)}"
>> +HOST_ARCH ??= "${@get_deb_host_arch()}"
>> HOST_DISTRO ??= "${DISTRO}"
>>
>> die() {
>> diff --git a/meta/classes/imagetypes.bbclass
>> b/meta/classes/imagetypes.bbclass
>> index 205377b1..a3be0a1d 100644
>> --- a/meta/classes/imagetypes.bbclass
>> +++ b/meta/classes/imagetypes.bbclass
>> @@ -65,10 +65,8 @@ UBIFS_IMG ?=
>> "${PP_DEPLOY}/${IMAGE_FULLNAME}.ubifs"
>>
>> # glibc bug 23960
>> https://sourceware.org/bugzilla/show_bug.cgi?id=23960
>> # should not use QEMU on armhf target with mkfs.ubifs < v2.1.3
>> -python() {
>> - if d.getVar('DISTRO_ARCH') == 'armhf' and
>> bb.utils.contains('IMAGE_BASETYPES', 'ubifs', True, False, d):
>> - d.setVar('ISAR_CROSS_COMPILE', '1')
>> -}
>> +THIS_ISAR_CROSS_COMPILE := "${ISAR_CROSS_COMPILE}"
>> +ISAR_CROSS_COMPILE:armhf = "${@bb.utils.contains('IMAGE_BASETYPES',
>> 'ubifs', '1', '${THIS_ISAR_CROSS_COMPILE}', d)}"
>>
>> IMAGE_CMD:ubifs() {
>> ${SUDO_CHROOT} /usr/sbin/mkfs.ubifs ${MKUBIFS_ARGS} \
>
> To bring CI to working state again, we tend to apply this revert today.
> (as soon as possible). Is it OK?
Sure!
Jan
--
Siemens AG, Technology
Linux Expert Center
next prev parent reply other threads:[~2023-10-06 5:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 18:31 [PATCH 0/7] HOST_ARCH, -native, riscv64, and all the rest Jan Kiszka
2023-10-05 18:31 ` [PATCH 1/7] Revert "base: Fix HOST_ARCH for native builds" Jan Kiszka
2023-10-06 5:44 ` Uladzimir Bely
2023-10-06 5:59 ` Jan Kiszka [this message]
2023-10-06 6:04 ` Uladzimir Bely
2023-10-05 18:31 ` [PATCH 2/7] multiarch: Downgrade native dependencies when building in emulated environment Jan Kiszka
2023-10-05 18:31 ` [PATCH 3/7] meta-isar: jh7110-u-boot-spl-tool: Rely on native annotation Jan Kiszka
2023-10-05 18:32 ` [PATCH 4/7] meta-isar: jh7110-u-boot-spl-image: Fix native build Jan Kiszka
2023-10-06 5:52 ` Uladzimir Bely
2023-10-06 6:00 ` Jan Kiszka
2023-10-06 6:06 ` Uladzimir Bely
2023-10-05 18:32 ` [PATCH 5/7] meta-isar: u-boot-starfive-visionfive2: Simplify build dependencies Jan Kiszka
2023-10-05 18:32 ` [PATCH 6/7] linux-custom: Drop unused template variable Jan Kiszka
2023-10-05 18:32 ` [PATCH 7/7] Move riscv64 from sid-ports to regular sid Jan Kiszka
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=c4a23c8a-fa15-41f1-ac34-f7d3a4d8baa3@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/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