File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,7 @@ build:
32
32
- sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential libtool-bin
33
33
- sudo apt-get install -y libreadline-dev gperf flex bison libncurses5-dev texinfo help2man
34
34
- unset CC
35
- - >
36
- if [ "${TARGET}" == 'tools' ]; then
37
- ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh;
38
- ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build-split.sh tools;
39
- mv ./meta-zephyr-sdk/scripts/toolchains/zephyr-sdk-x86_64-hosttools-standalone-0.9.sh .
40
- else
41
- ./go.sh ${TARGET};
42
- fi
35
+ - ./go.sh ${TARGET}
43
36
- >
44
37
if [ "$IS_PULL_REQUEST" = "false" ]; then
45
38
sudo -E sh -c 'echo "IS_GIT_TAG=${IS_GIT_TAG}" >> $JOB_STATE/sdk.env';
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ if [ -z "$TARGETS" ]; then
9
9
fi
10
10
if [ " $TARGETS " == " all" ]; then
11
11
TARGETS=$( ls -1 configs/ | sed ' s/.config//' )
12
+ TARGETS=${TARGETS} " tools"
12
13
fi
13
14
14
15
REQUIRED_VERSION=1.23.0
41
42
42
43
export SDK_NG_HOME=${PWD}
43
44
45
+ for t in ${TARGETS} ; do
46
+ if [ " ${t} " = " tools" ]; then
47
+ ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-clone.sh;
48
+ ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh tools || ./meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh tools;
49
+ mv ./meta-zephyr-sdk/scripts/toolchains/zephyr-sdk-x86_64-hosttools-standalone-0.9.sh .
50
+ fi
51
+ done
52
+
44
53
if [ ! -d " crosstool-ng" ]; then
45
54
git clone https://github.com/crosstool-ng/crosstool-ng.git
46
55
echo " Patching tree"
@@ -66,6 +75,10 @@ cd build
66
75
export CT_PREFIX=` pwd` /output
67
76
mkdir -p ${CT_PREFIX} /sources
68
77
for t in ${TARGETS} ; do
78
+ if [ " ${t} " = " tools" ]; then
79
+ # We handled tools above, so skip it here
80
+ continue
81
+ fi
69
82
if [ ! -f ${GITDIR} /configs/${t} .config ]; then
70
83
echo " Target configuration does not exist"
71
84
exit 1
You can’t perform that action at this time.
0 commit comments