diff options
author | Stuart Haslam <stuart.haslam@linaro.org> | 2015-04-23 10:12:58 +0100 |
---|---|---|
committer | Koen Kooi <koen.kooi@linaro.org> | 2015-05-12 09:15:42 +0000 |
commit | 668ada4da1806889e47714a1c21017862ce04c74 (patch) | |
tree | d439d7b38ccfb897a108bdadd60a4452bee749fc | |
parent | a59aa0b60d6adc5d8ee2d603d72e3e7ac1fe4b12 (diff) |
init-and-build.sh: add flag to enable ptest
Enable ptest (pacakge test) packages to be built for all packages
which support it. To avoid image bloat this does not cause all ptest
packages to be installed, they need to be individually selected via
IMAGE_INSTALL.
Change-Id: Iac06ce3af4f412f0c472b20033c2643aaf149b4e
Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
-rwxr-xr-x | functions.sh | 5 | ||||
-rwxr-xr-x | init-and-build.sh | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/functions.sh b/functions.sh index 278fe1f..4210db5 100755 --- a/functions.sh +++ b/functions.sh @@ -25,6 +25,7 @@ show_setup() echo "Init env: $init_env" echo "Verbose: $bitbake_verbose" echo "Local download directory: $LOCALDLDIR" + echo "Enable ptest: $ptest_enabled" if [ $external_url ]; then echo "External toolchain URL: $external_url" @@ -265,6 +266,10 @@ conf_localconf() sed -i -e "s/^MACHINE.*//g" \ -e "/PACKAGECONFIG_pn-qemu-native/d" \ conf/local.conf + + if [ "$ptest_enabled" = "1" ]; then + echo 'DISTRO_FEATURES += "ptest"' >> conf/local.conf + fi } cleanup_soft() diff --git a/init-and-build.sh b/init-and-build.sh index eb97619..994f014 100755 --- a/init-and-build.sh +++ b/init-and-build.sh @@ -25,12 +25,13 @@ bitbake_verbose= sstatedir= binarytoolchain="aarch64-linux-gnu" base_dir="/mnt/ci_build" +ptest_enabled=0 export PATH=$PATH:$HOME/bin source $(dirname $0)/functions.sh -while getopts “ha:b:m:r:g:u:i:s:v” OPTION +while getopts “ha:b:m:r:g:u:i:s:vp” OPTION do case $OPTION in h) @@ -64,6 +65,9 @@ do v) bitbake_verbose="-v" ;; + p) + ptest_enabled=1 + ;; esac done |