File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ rel=${rel:- 2.5.0}
3
4
make=" -j 2"
4
5
which nproc >& /dev/null && make=" -j $(( $(nproc) + 1 )) "
5
6
gitopt=" --depth 1 --single-branch"
@@ -248,5 +249,19 @@ for sh in post/${gcc}*.sh; do
248
249
[ -x " $sh " ] && $sh ${EXT}
249
250
done
250
251
252
+ echo " -------- creating package tgz"
253
+ tarball=$HOST .xtensa-lx106-elf-$( git rev-parse --short HEAD) .tgz
254
+ (rm -rf pkg && mkdir pkg && cd pkg && cp -a ../xtensa-lx106-elf${EXT} xtensa-lx106-elf && tar zcf ../${tarball} xtensa-lx106-elf/)
255
+ tarballsize=$( stat -c%s ${tarball} )
256
+ tarballsha256=$( sha256sum ${tarball} | cut -f1 -d" " )
257
+ ( echo ' {' &&
258
+ echo ' "host": "' $HOST ' ",' &&
259
+ echo ' "url": "https://github.com/earlephilhower/esp-quick-toolchain/releases/download/' ${rel} ' /' ${tarball} ' ",' &&
260
+ echo ' "archiveFileName": "' ${tarball} ' ",' &&
261
+ echo ' "checksum": "SHA-256:' ${tarballsha256} ' ",' &&
262
+ echo ' "size": "' ${tarballsize} ' "' &&
263
+ echo ' },' ) > ${tarball} .json
264
+ rm -rf pkg
265
+
251
266
echo " all done (${install} )"
252
267
rm -f ${unfinished}
You can’t perform that action at this time.
0 commit comments