80
80
make install
81
81
popd
82
82
83
+ .buildx_jimtcl : &buildx_jimtcl |
84
+ export JIMTCL_VER=jimtcl-0.83
85
+ wget https://dl.espressif.com/dl/$JIMTCL_VER.tar.gz -O $JIMTCL_VER.tar.gz
86
+ tar xzf $JIMTCL_VER.tar.gz && rm $JIMTCL_VER.tar.gz
87
+ pushd $JIMTCL_VER
88
+ ./configure --prefix="$PWD/dist" --host=${CONF_HOST} --disable-shared CC=${HOST_CC}
89
+ make
90
+ # Running "make" does not create this file for static builds on Windows but "make install" still expects it
91
+ touch build-jim-ext
92
+ make install
93
+ popd
94
+
83
95
.buildx_openocd : &buildx_openocd |
84
96
./bootstrap
85
97
mkdir _build && pushd _build/
102
114
- job : style_check
103
115
script :
104
116
- *get_release_name
105
- - !reference [.submodules_mirror_update, script]
117
+ - export HOST_CC=${CONF_HOST}-gcc
118
+ - *buildx_jimtcl
119
+ - export PKG_CONFIG_PATH=$PWD/$JIMTCL_VER/dist/lib/pkgconfig
106
120
- ./bootstrap
107
121
- mkdir _build && pushd _build/
108
122
- ../configure CFLAGS="${TEST_CFLAGS}" --prefix=$PWD/../$DIST_INSTALLED_DIR --host=${CONF_HOST} $OPENOCD_CONFIGURE_OPTS $GCOV_BUILD_OPTS
130
144
- job : style_check
131
145
script :
132
146
- *get_release_name
133
- - !reference [.submodules_mirror_update, script]
134
147
- *buildx_libusb
135
148
- export OSXCROSS_PKG_CONFIG_PATH=$PWD/$LIBUSB_VER/dist/lib/pkgconfig
136
149
- *buildx_hidapi
137
150
- *buildx_libjaylink
138
- - export OSXCROSS_PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig:$OSXCROSS_PKG_CONFIG_PATH
151
+ - *buildx_jimtcl
152
+ - export OSXCROSS_PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig:$PWD/$JIMTCL_VER/dist/lib/pkgconfig:$OSXCROSS_PKG_CONFIG_PATH
139
153
- export LDFLAGS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit -Wl,-framework,Security"
140
154
- *buildx_openocd
141
155
- *dist_archive
@@ -157,12 +171,12 @@ build_linux:
157
171
- job : style_check
158
172
script :
159
173
- *get_release_name
160
- - !reference [.submodules_mirror_update, script]
161
174
- apt-get update || true
162
175
- apt-get install systemd libudev-dev --force-yes -y # needed for hidapi build
163
176
- *buildx_hidapi
164
177
- *buildx_libjaylink
165
- - export PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig
178
+ - *buildx_jimtcl
179
+ - export PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig:$PWD/$JIMTCL_VER/dist/lib/pkgconfig
166
180
- ./bootstrap
167
181
- mkdir _build
168
182
- pushd _build/
@@ -181,8 +195,12 @@ build_linux_gcc_latest:
181
195
allow_failure : true
182
196
needs :
183
197
- job : style_check
198
+ variables :
199
+ CONF_HOST : " "
200
+ HOST_CC : " gcc"
184
201
script :
185
- - !reference [.submodules_mirror_update, script]
202
+ - *buildx_jimtcl
203
+ - export PKG_CONFIG_PATH=$PWD/$JIMTCL_VER/dist/lib/pkgconfig
186
204
- ./bootstrap
187
205
- ./configure ${OPENOCD_CONFIGURE_OPTS}
188
206
- make -j`nproc`
@@ -252,13 +270,13 @@ build_linux_arm64_test:
252
270
- job : style_check
253
271
script :
254
272
- *get_release_name
255
- - !reference [.submodules_mirror_update, script]
256
273
- *buildx_libusb
257
274
- export PKG_CONFIG_PATH=$PWD/$LIBUSB_VER/dist/lib/pkgconfig
258
275
- *buildx_hidapi
259
276
- *buildx_libjaylink
277
+ - *buildx_jimtcl
260
278
- *buildx_zlib
261
- - export PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig:$PKG_CONFIG_PATH
279
+ - export PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig:$PWD/$JIMTCL_VER/dist/lib/pkgconfig:$ PKG_CONFIG_PATH
262
280
- export LDFLAGS=$ZLIB_LDFLAGS
263
281
- *buildx_openocd
264
282
- cp $PWD/${ZLIB_VER}/dist/bin/zlib1.dll $DIST_INSTALLED_DIR/bin/
@@ -297,6 +315,8 @@ scan-build:
297
315
allow_failure : true
298
316
variables :
299
317
SCAN_BUILD_OUTPUT : " report"
318
+ CONF_HOST : " "
319
+ HOST_CC : " gcc"
300
320
artifacts :
301
321
reports :
302
322
codequality :
@@ -305,12 +325,13 @@ scan-build:
305
325
- ${SCAN_BUILD_OUTPUT}
306
326
when : always
307
327
script :
308
- - !reference [.submodules_mirror_update, script]
328
+ - *buildx_jimtcl
329
+ - export PKG_CONFIG_PATH=$PWD/$JIMTCL_VER/dist/lib/pkgconfig
309
330
- ./bootstrap
310
331
- mkdir build-scanbuild
311
332
- pushd build-scanbuild
312
333
- scan-build ../configure
313
- - scan-build -o out make -j`nproc` CFLAGS="-std=gnu99 -I. -I../../jimtcl "
334
+ - scan-build -o out make -j`nproc` CFLAGS="-std=gnu99 -I. -I../../${JIMTCL_VER} "
314
335
- popd
315
336
- ${ARCHIVE_TOOL} scan_build.${ARCHIVE_EXT} build-scanbuild/out
316
337
- mkdir -p ${SCAN_BUILD_OUTPUT}
@@ -325,6 +346,8 @@ sparse:
325
346
variables :
326
347
SPARSE_BUILD_OUTDIR : " sparse"
327
348
SPARSE_BUILD_OUTFILE : " warnings.log"
349
+ CONF_HOST : " "
350
+ HOST_CC : " gcc"
328
351
artifacts :
329
352
reports :
330
353
codequality :
@@ -333,7 +356,8 @@ sparse:
333
356
- ${SPARSE_BUILD_OUTDIR}
334
357
when : always
335
358
script :
336
- - !reference [.submodules_mirror_update, script]
359
+ - *buildx_jimtcl
360
+ - export PKG_CONFIG_PATH=$PWD/$JIMTCL_VER/dist/lib/pkgconfig
337
361
- ./bootstrap
338
362
- mkdir build-sparse && pushd build-sparse
339
363
- ../configure CC=cgcc CFLAGS="-Wsparse-all -Wno-declaration-after-statement -Wno-unknown-attribute -Wno-transparent-union -Wno-tautological-compare -Wno-vla -Wno-flexible-array-array -D__FLT_EVAL_METHOD__=0"
@@ -357,7 +381,7 @@ build_linux_cmake:
357
381
script :
358
382
- !reference [.submodules_mirror_update, script]
359
383
- mkdir build && cd build
360
- - cmake .. -G Ninja
384
+ - cmake .. -D use_internal_jimtcl=ON - G Ninja
361
385
- ninja
362
386
363
387
# TODO: enable after updating CMake version in the docker image
0 commit comments