Skip to content

Commit e012106

Browse files
committed
ci: Update make_zephyr_sdk and deploy to take OS and MACHINE
Signed-off-by: Kumar Gala <[email protected]>
1 parent dcee72d commit e012106

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

.buildkite/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ steps:
2626
- chmod a+x *.sh
2727
- cd ..
2828
- tree -H '.' -L 1 --noreport --charset utf-8 toolchains > index.html
29-
- ./make_zephyr_sdk.sh $${MACHINE}
29+
- ./make_zephyr_sdk.sh $${OS} $${MACHINE}
3030
- ls -F
3131
- sdk_filename=$(ls -1 zephyr-sdk*)
3232
- toolchain_files=$(ls -1 zephyr-toolchain-*)

scripts/make_zephyr_sdk.sh

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,21 @@
1313

1414
product_name="zephyr-sdk"
1515

16-
if [ $# != "1" ]; then
17-
echo "usage: $0 <MACHINE>"
16+
if [ $# != "2" ]; then
17+
echo "usage: $0 <OS> <MACHINE>"
1818
exit 1
1919
fi
2020

2121
root_dir=$(dirname $0)/..
2222
sdk_version=$(cat $root_dir/VERSION)
23-
machine=$1
24-
25-
case "$(uname -s)" in
26-
Darwin)
27-
os=macos
28-
;;
29-
Linux)
30-
os=linux
31-
;;
32-
*)
33-
echo 'Unsupported OS'
34-
exit 1
35-
;;
36-
esac
23+
os=$1
24+
machine=$2
3725

3826
arch_list="arm arm64 arc arc64 nios2 riscv64 sparc mips x86_64 xtensa_sample_controller \
3927
xtensa_intel_apl_adsp xtensa_intel_s1000 xtensa_intel_bdw_adsp \
4028
xtensa_intel_byt_adsp xtensa_nxp_imx_adsp xtensa_nxp_imx8m_adsp"
4129

42-
echo "Creating ${product_name}-${sdk_version}-${machine}-${os}-setup.run"
30+
echo "Creating ${product_name}-${sdk_version}-${os}-${machine}-setup.run"
4331

4432
# Create ./setup.sh
4533

0 commit comments

Comments
 (0)