Skip to content

Commit 0d5f2a3

Browse files
committed
make_zephyr_sdk: move to getting machine from argv
We shouldn't use 'uname -m' since its not the case that we run this script on the same host machine type. So instead just take the machine type as an argument when we invoke the script. Signed-off-by: Kumar Gala <[email protected]>
1 parent 9ca7581 commit 0d5f2a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/make_zephyr_sdk.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@
1313

1414
product_name="zephyr-sdk"
1515

16+
if [ $# != "1" ]; then
17+
echo "usage: $0 <MACHINE>"
18+
exit 1
19+
fi
20+
1621
root_dir=$(dirname $0)/..
1722
sdk_version=$(cat $root_dir/VERSION)
18-
machine=$(uname -m)
23+
machine=$1
1924
arch_list="arm arm64 arc nios2 riscv64 sparc x86_64 xtensa_sample_controller \
2025
xtensa_intel_apl_adsp xtensa_intel_s1000 xtensa_intel_bdw_adsp \
2126
xtensa_intel_byt_adsp xtensa_nxp_imx_adsp xtensa_nxp_imx8m_adsp"

0 commit comments

Comments
 (0)