From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 2/4] ci: Introduce --repro parameter to enable use of cached base repository
Date: Thu, 14 Feb 2019 17:08:05 +0100 [thread overview]
Message-ID: <20190214160807.31948-3-mosipov@ilbers.de> (raw)
In-Reply-To: <20190214160807.31948-1-mosipov@ilbers.de>
This patch allows to test cached base repository functionality
for not only fast build case.
Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
---
scripts/ci_build.sh | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 846349f..acce152 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -48,8 +48,9 @@ show_help() {
echo " the build will be started in current path."
echo " -c, --cross enable cross-compilation."
echo " -d, --debug enable debug bitbake output."
- echo " -f, --fast build reduced set of configurations."
+ echo " -f, --fast cross build reduced set of configurations."
echo " -q, --quiet suppress verbose bitbake output."
+ echo " -r, --repro enable use of cached base repository."
echo " --help display this message and exit."
echo
echo "Exit status:"
@@ -78,7 +79,12 @@ do
BB_ARGS="$BB_ARGS -d"
;;
-f|--fast)
+ # Start build for the reduced set of configurations
+ # Enforce cross-compilation to speed up the build
+ # Enable use of cached base repository
FAST_BUILD="1"
+ CROSS_BUILD="1"
+ REPRO_BUILD="1"
TARGETS_SET="\
multiconfig:qemuarm-stretch:isar-image-base \
multiconfig:qemuarm64-stretch:isar-image-base \
@@ -87,6 +93,9 @@ do
-q|--quiet)
BB_ARGS=""
;;
+ -r|--repro)
+ REPRO_BUILD="1"
+ ;;
*)
echo "error: invalid parameter '$key', please try '--help' to get list of supported parameters"
exit $ES_BUG
@@ -106,22 +115,17 @@ if [ -n "$CROSS_BUILD" ]; then
sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= "1"/g' conf/local.conf
fi
-if [ -n "$FAST_BUILD" ]; then
- # Start build for the reduced set of configurations
- # Enforce cross-compilation to speed up the build
+if [ -n "$REPRO_BUILD" ]; then
# 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 $TARGETS_SET
+ 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 $TARGETS_SET
-else
- # Start build for the full set of configurations
- bitbake $BB_ARGS $TARGETS_SET
-
fi
+# Start build for the defined set of configurations
+bitbake $BB_ARGS $TARGETS_SET
+
cp -a "${ISARROOT}/meta/classes/dpkg-base.bbclass" "${ISARROOT}/meta/classes/dpkg-base.bbclass.ci-backup"
echo -e "do_fetch_append() {\n\n}" >> "${ISARROOT}/meta/classes/dpkg-base.bbclass"
--
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 ` [PATCH 1/4] ci: Introduce TARGETS_SET variable Maxim Yu. Osipov
2019-02-14 16:08 ` Maxim Yu. Osipov [this message]
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-3-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