commit | 62a1b10ad35adf38e6b3210535f1a683411da2d2 | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Tue May 07 12:14:45 2019 -0500 |
committer | Andrew Geissler <geissonator@yahoo.com> | Fri May 10 15:37:55 2019 +0000 |
tree | 702132068c9269670ad3e1ecc4321fd8421cb3b5 | |
parent | 215e43c2359256eddf28504cb63cb49524366208 [diff] |
build-setup: Pass MACHINE variable to bitbake There's no need to manually overwrite the local.conf file with a MACHINE value that is different to the default. This variable can be made available to bitbake using export commands. Reference: https://github.com/openbmc/docs/commit/d5afde3325b0622a2e9d19f41192a88321145014 Tested: Verified the MACHINE variable was exported for the qemux86-64 target: - Before: ++ unset OEROOT ++ '[' -z /home/ubuntu/175744354/openbmc/build ']' ++ cd /home/ubuntu/175744354/openbmc/build + [[ -n qemux86-64 ]] + sed 's/^MACHINE\ ??=.*/MACHINE\ ??=\ "qemux86-64"/' -i conf/local.conf + cat + bitbake obmc-phosphor-image obmc-phosphor-debug-tarball - After: ++ unset OEROOT ++ '[' -z /home/ubuntu/1669429605/openbmc/build ']' ++ cd /home/ubuntu/1669429605/openbmc/build + [[ -n qemux86-64 ]] + export MACHINE=qemux86-64 + MACHINE=qemux86-64 + export 'BB_ENV_EXTRAWHITE= MACHINE' + BB_ENV_EXTRAWHITE=' MACHINE' + cat + bitbake obmc-phosphor-image obmc-phosphor-debug-tarball Change-Id: I2c30a6d48f801d1a9ea9a218ba5f20ec2565819e Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Build script for CI jobs in Jenkins.