Skip to contentSkip to conversation

Fix MACHINE setting in start script

PATCH New Jon Mason 1 participant 1 message Feb 18, 2020

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 Fix MACHINE setting in start script

The current MACHINE setting could be different than when bitbake was originally run, thus causing an error when the start scripts are run. Set the MACHINE in each bitbake command call to get around this.

Change-Id I778b58d751ea0ddbcac6d73f347e6861edcf1ecf
---
 .../recipes-devtools/fvp-common/files/start-foundation-armv8.sh | 2 +-
 .../recipes-devtools/fvp-common/files/start-fvp-base.sh         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh +1 -1
index ca39bee..1df4fd8 100755
@@ -5,7 +5,7 @@ set -u
 set -e
 
 # Get parameters from bitbake configuration
-source <(bitbake -e foundation-armv8-native | grep \
+source <(MACHINE=foundation-armv8 bitbake -e foundation-armv8-native | grep \
     -e "^STAGING_.*_NATIVE=" \
     -e "^DEPLOY_DIR.*=")
 
meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh +1 -1
index 1d3c206..ab60cea 100755
@@ -5,7 +5,7 @@ set -u
 set -e
 
 # Get parameters from bitbake configuration
-source <(bitbake -e fvp-base-native | grep \
+source <(MACHINE=fvp-base bitbake -e fvp-base-native | grep \
     -e "^STAGING_.*_NATIVE=" \
     -e "^DEPLOY_DIR.*=")
 
Signature · 1 line
2.17.1