From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 1/4] ci: Introduce TARGETS_SET variable
Date: Thu, 14 Feb 2019 17:08:04 +0100 [thread overview]
Message-ID: <20190214160807.31948-2-mosipov@ilbers.de> (raw)
In-Reply-To: <20190214160807.31948-1-mosipov@ilbers.de>
This improves code readibility.
Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
---
scripts/ci_build.sh | 50 ++++++++++++++++++++++++++------------------------
1 file changed, 26 insertions(+), 24 deletions(-)
diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 1789183..846349f 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -20,6 +20,23 @@ BUILD_DIR=./build
BB_ARGS="-v"
+TARGETS_SET="\
+ multiconfig:qemuarm-jessie:isar-image-base \
+ multiconfig:qemuarm-stretch:isar-image-base \
+ multiconfig:qemuarm-buster:isar-image-base \
+ multiconfig:qemuarm64-stretch:isar-image-base \
+ multiconfig:qemui386-jessie:isar-image-base \
+ multiconfig:qemui386-stretch:isar-image-base \
+ multiconfig:qemui386-buster:isar-image-base \
+ multiconfig:qemuamd64-jessie:isar-image-base \
+ multiconfig:qemuamd64-stretch:isar-image-base \
+ multiconfig:qemuamd64-buster:isar-image-base \
+ multiconfig:qemuamd64-buster-tgz:isar-image-base \
+ multiconfig:rpi-jessie:isar-image-base"
+ # qemu-user-static of <= buster too old to build that
+ # multiconfig:qemuarm64-buster:isar-image-base
+
+
show_help() {
echo "This script builds the default Isar images."
echo
@@ -62,6 +79,10 @@ do
;;
-f|--fast)
FAST_BUILD="1"
+ TARGETS_SET="\
+ multiconfig:qemuarm-stretch:isar-image-base \
+ multiconfig:qemuarm64-stretch:isar-image-base \
+ multiconfig:qemuamd64-stretch:isar-image-base"
;;
-q|--quiet)
BB_ARGS=""
@@ -90,34 +111,15 @@ if [ -n "$FAST_BUILD" ]; then
# Enforce cross-compilation to speed up the build
# Enable use of cached base repository
sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf
- bitbake $BB_ARGS -c cache_base_repo \
- multiconfig:qemuarm-stretch:isar-image-base \
- multiconfig:qemuarm64-stretch:isar-image-base \
- multiconfig:qemuamd64-stretch:isar-image-base
+ bitbake $BB_ARGS -c cache_base_repo $TARGETS_SET
while [ -e bitbake.sock ]; do sleep 1; done
sudo rm -rf tmp
sed -i -e 's/#ISAR_USE_CACHED_BASE_REPO ?= "1"/ISAR_USE_CACHED_BASE_REPO ?= "1"/g' conf/local.conf
- bitbake $BB_ARGS \
- multiconfig:qemuarm-stretch:isar-image-base \
- multiconfig:qemuarm64-stretch:isar-image-base \
- multiconfig:qemuamd64-stretch:isar-image-base
+ bitbake $BB_ARGS $TARGETS_SET
else
- # Start build for all possible configurations
- bitbake $BB_ARGS \
- multiconfig:qemuarm-jessie:isar-image-base \
- multiconfig:qemuarm-stretch:isar-image-base \
- multiconfig:qemuarm-buster:isar-image-base \
- multiconfig:qemuarm64-stretch:isar-image-base \
- multiconfig:qemui386-jessie:isar-image-base \
- multiconfig:qemui386-stretch:isar-image-base \
- multiconfig:qemui386-buster:isar-image-base \
- multiconfig:qemuamd64-jessie:isar-image-base \
- multiconfig:qemuamd64-stretch:isar-image-base \
- multiconfig:qemuamd64-buster:isar-image-base \
- multiconfig:qemuamd64-buster-tgz:isar-image-base \
- multiconfig:rpi-jessie:isar-image-base
- # qemu-user-static of <= buster too old to build that
- #multiconfig:qemuarm64-buster:isar-image-base
+ # Start build for the full set of configurations
+ bitbake $BB_ARGS $TARGETS_SET
+
fi
cp -a "${ISARROOT}/meta/classes/dpkg-base.bbclass" "${ISARROOT}/meta/classes/dpkg-base.bbclass.ci-backup"
--
2.11.0
next prev parent reply other threads:[~2019-02-14 16:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-14 16:08 [PATCH 0/4] CI improvements Maxim Yu. Osipov
2019-02-14 16:08 ` Maxim Yu. Osipov [this message]
2019-02-14 16:08 ` [PATCH 2/4] ci: Introduce --repro parameter to enable use of cached base repository Maxim Yu. Osipov
2019-02-14 16:08 ` [PATCH 3/4] ci: Include de0-nano-soc target into fast build Maxim Yu. Osipov
2019-02-15 7:20 ` Jan Kiszka
2019-02-18 8:59 ` Claudius Heine
2019-02-18 10:18 ` Henning Schild
2019-02-18 10:23 ` Jan Kiszka
2019-02-18 10:29 ` Claudius Heine
2019-02-14 16:08 ` [PATCH 4/4] ci: Disable use of cached base repository for fast build by default Maxim Yu. Osipov
2019-02-15 14:42 ` [PATCH 0/4] CI improvements Maxim Yu. Osipov
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=20190214160807.31948-2-mosipov@ilbers.de \
--to=mosipov@ilbers.de \
--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