All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix MACHINE setting in start script
@ 2020-02-18 21:59 Jon Mason
  0 siblings, 0 replies; only message in thread
From: Jon Mason @ 2020-02-18 21:59 UTC (permalink / raw)
  To: meta-arm; +Cc: nd

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
Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .../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(-)

diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
index ca39bee..1df4fd8 100755
--- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
+++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-foundation-armv8.sh
@@ -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.*=")
 
diff --git a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
index 1d3c206..ab60cea 100755
--- a/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
+++ b/meta-arm-bsp/recipes-devtools/fvp-common/files/start-fvp-base.sh
@@ -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.*=")
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-18 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 21:59 [PATCH] Fix MACHINE setting in start script Jon Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.