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 /functions.sh | |
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>
Diffstat (limited to 'functions.sh')
-rwxr-xr-x | functions.sh | 5 |
1 files changed, 5 insertions, 0 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() |