From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH v2 2/4] ci: Add compat arch support
Date: Fri, 11 Sep 2020 14:13:07 +0200 [thread overview]
Message-ID: <e494927beaaed34b07d79260c0252a23165c88bc.1599826389.git.jan.kiszka@siemens.com> (raw)
In-Reply-To: <cover.1599826389.git.jan.kiszka@siemens.com>
From: Jan Kiszka <jan.kiszka@siemens.com>
Build samefile for the compat arch if that is enabled. Set
ISAR_ENABLE_COMPAT_ARCH for all supported combinations in CI.
As deploy this 32-bit package from the 64-bit image build would conflict
with the same package generated by the 32-bit image build, rename the
compat package in that case.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta-isar/conf/local.conf.sample | 5 +++++
meta-isar/recipes-app/samefile/samefile_2.14.bb | 6 ++++++
scripts/ci_build.sh | 6 ++++++
3 files changed, 17 insertions(+)
diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample
index 2f82020d..cefdbae9 100644
--- a/meta-isar/conf/local.conf.sample
+++ b/meta-isar/conf/local.conf.sample
@@ -180,6 +180,11 @@ ISAR_CROSS_COMPILE ?= "0"
# NOTE: this works for amd64 and arm64 targets so far
#ISAR_ENABLE_COMPAT_ARCH ?= "1"
+#
+# NOTE: This is just to test 32-bit building on 64-bit archs.
+IMAGE_INSTALL_remove_compat-arch = " samefile"
+IMAGE_INSTALL_append_compat-arch = " samefile-compat"
+
#
# Uncomment this to enable use of cached base repository
#ISAR_USE_CACHED_BASE_REPO ?= "1"
diff --git a/meta-isar/recipes-app/samefile/samefile_2.14.bb b/meta-isar/recipes-app/samefile/samefile_2.14.bb
index 5e36a2ac..50f9ced0 100644
--- a/meta-isar/recipes-app/samefile/samefile_2.14.bb
+++ b/meta-isar/recipes-app/samefile/samefile_2.14.bb
@@ -15,6 +15,12 @@ DESCRIPTION = "utility that finds files with identical contents"
SRC_URI = "http://www.schweikhardt.net/samefile-2.14.tar.gz"
SRC_URI[md5sum] = "0b438249f3549f18b49cbb49b0473f70"
+# NOTE: This is just to test 32-bit building on 64-bit archs.
+# We need to rename the package to avoid the conflict with parallel armhf
+# image builds.
+PACKAGE_ARCH_compat-arch = "${COMPAT_DISTRO_ARCH}"
+PN_compat-arch = "samefile-compat"
+
do_prepare_build[cleandirs] += "${S}/debian"
do_prepare_build() {
# You could also create parts of your debianization before calling
diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index d2c707b8..461fd5cc 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -139,6 +139,12 @@ if [ ! -d "$BUILD_DIR" ]; then
fi
source isar-init-build-env "$BUILD_DIR"
+cat >>conf/local.conf <<EOF
+ISAR_ENABLE_COMPAT_ARCH_amd64 = "1"
+ISAR_ENABLE_COMPAT_ARCH_arm64 = "1"
+ISAR_ENABLE_COMPAT_ARCH_debian-stretch_amd64 = "0"
+EOF
+
if [ -n "$CROSS_BUILD" ]; then
sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf
fi
--
2.26.2
next prev parent reply other threads:[~2020-09-11 12:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-11 12:13 [PATCH v2 0/4] 32-bit " Jan Kiszka
2020-09-11 12:13 ` [PATCH v2 1/4] Add compat architecture support via multiarch Jan Kiszka
2020-09-11 12:13 ` Jan Kiszka [this message]
2020-09-11 12:13 ` [PATCH v2 3/4] doc: Enhance list of supported cross-archs, drop QEMU reference Jan Kiszka
2020-09-11 12:13 ` [PATCH v2 4/4] doc: Describe new compat arch support Jan Kiszka
2020-09-21 9:24 ` [PATCH v2 0/4] 32-bit " Jan Kiszka
2020-09-21 9:41 ` Baurzhan Ismagulov
2020-09-21 12:06 ` 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=e494927beaaed34b07d79260c0252a23165c88bc.1599826389.git.jan.kiszka@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.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