File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 26
26
- chmod a+x *.sh
27
27
- cd ..
28
28
- tree -H '.' -L 1 --noreport --charset utf-8 toolchains > index.html
29
- - ./make_zephyr_sdk.sh $${MACHINE}
29
+ - ./make_zephyr_sdk.sh $${OS} $${ MACHINE}
30
30
- ls -F
31
31
- sdk_filename=$(ls -1 zephyr-sdk*)
32
32
- toolchain_files=$(ls -1 zephyr-toolchain-*)
Original file line number Diff line number Diff line change 13
13
14
14
product_name=" zephyr-sdk"
15
15
16
- if [ $# != " 1 " ]; then
17
- echo " usage: $0 <MACHINE>"
16
+ if [ $# != " 2 " ]; then
17
+ echo " usage: $0 <OS> < MACHINE>"
18
18
exit 1
19
19
fi
20
20
21
21
root_dir=$( dirname $0 ) /..
22
22
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
37
25
38
26
arch_list=" arm arm64 arc arc64 nios2 riscv64 sparc mips x86_64 xtensa_sample_controller \
39
27
xtensa_intel_apl_adsp xtensa_intel_s1000 xtensa_intel_bdw_adsp \
40
28
xtensa_intel_byt_adsp xtensa_nxp_imx_adsp xtensa_nxp_imx8m_adsp"
41
29
42
- echo " Creating ${product_name} -${sdk_version} -${machine } -${os } -setup.run"
30
+ echo " Creating ${product_name} -${sdk_version} -${os } -${machine } -setup.run"
43
31
44
32
# Create ./setup.sh
45
33
You can’t perform that action at this time.
0 commit comments