Skip to content

Commit b0bda72

Browse files
stephanosionashif
authored andcommitted
meta-zephyr-sdk: Enable cross compilation
This commit enables cross compilation of the meta-zephyr-sdk by allowing the host machine variable (MACHINE) to be overridden when calling the build script. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent b76a436 commit b0bda72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ TOOLCHAINS="${META_ZEPHYR_SDK_SOURCE}/scripts/toolchains"
2727
META_DOWNLOADS=${META_DOWNLOADS:-"$META_POKY_SOURCE/downloads"}
2828
META_SSTATE=${SSTATE_LOCATION:-"$META_POKY_SOURCE/sstate"}
2929

30-
MACHINE=$(uname -m)
30+
MACHINE=${MACHINE:-$(uname -m)}
3131

3232
if [ ! -d $META_ZEPHYR_SDK_SOURCE ] ; then
3333
echo "ERROR: could not find $META_ZEPHYR_SDK_SOURCE"

0 commit comments

Comments
 (0)