|
21 | 21 | mv ${ARCHIVE_NAME} ${DIST_ART_DIR}
|
22 | 22 | echo "${ARCHIVE_NAME}" > ${DIST_ART_DIR}/dist_name_${PLATFORM_NAME}
|
23 | 23 |
|
24 |
| -.copy_stub_bins: ©_stub_bins | |
25 |
| - STUB_BIN_PATH=$DIST_INSTALLED_DIR/share/openocd/esp_stub_bins |
26 |
| - mkdir -p $STUB_BIN_PATH/{esp32c6,esp32h2} |
27 |
| - |
28 |
| - for chip in esp32c6 esp32h2; do |
29 |
| - cp contrib/loaders/flash/espressif/$chip/inc/stub_flash_idf_binary_code.inc $STUB_BIN_PATH/$chip/ |
30 |
| - cp contrib/loaders/flash/espressif/$chip/inc/stub_flash_idf_binary_data.inc $STUB_BIN_PATH/$chip/ |
31 |
| - cp contrib/loaders/flash/espressif/$chip/stub_flash_idf_image.h $STUB_BIN_PATH/$chip/ |
32 |
| - done |
33 |
| - |
34 | 24 | .buildx_libusb: &buildx_libusb |
|
35 | 25 | export LIBUSB_VER=libusb-1.0.26
|
36 | 26 | wget https://dl.espressif.com/dl/$LIBUSB_VER.tar.gz -O $LIBUSB_VER.tar.gz
|
|
128 | 118 | echo coverage enabled
|
129 | 119 | rsync -a --prune-empty-dirs --include '*/' --include '*.gcno' --exclude '*' _build/ ${DIST_INSTALLED_DIR}/_build
|
130 | 120 | fi
|
131 |
| - - *copy_stub_bins |
132 | 121 | - *dist_archive
|
133 | 122 |
|
134 | 123 | .build_macos_template: &build_macos_template
|
|
153 | 142 | - export OSXCROSS_PKG_CONFIG_PATH=$PWD/hidapi-$HIDAPI_VER/dist/lib/pkgconfig/:$PWD/$LIBJAYLINK_VER/dist/lib/pkgconfig:$OSXCROSS_PKG_CONFIG_PATH
|
154 | 143 | - export LDFLAGS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit -Wl,-framework,Security"
|
155 | 144 | - *buildx_openocd
|
156 |
| - - *copy_stub_bins |
157 | 145 | - *dist_archive
|
158 | 146 |
|
159 | 147 | build_linux:
|
@@ -188,7 +176,6 @@ build_linux:
|
188 | 176 | - src/openocd --version 2>&1 | { ! grep 'dirty'; }
|
189 | 177 | - MAKEFLAGS= make install-strip
|
190 | 178 | - popd
|
191 |
| - - *copy_stub_bins |
192 | 179 | - *dist_archive
|
193 | 180 |
|
194 | 181 | # Just to test build with latest gcc.
|
@@ -274,7 +261,6 @@ build_linux_arm64:
|
274 | 261 | - export LDFLAGS=$ZLIB_LDFLAGS
|
275 | 262 | - *buildx_openocd
|
276 | 263 | - cp $PWD/${ZLIB_VER}/dist/bin/zlib1.dll $DIST_INSTALLED_DIR/bin/
|
277 |
| - - *copy_stub_bins |
278 | 264 | - *dist_archive
|
279 | 265 |
|
280 | 266 | build_windows_win32:
|
|
0 commit comments