Skip to content

Commit e87d215

Browse files
Add Arduino hostname, it's different from gcc hostname
1 parent fd2e491 commit e87d215

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

build

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ lto=${lto:-false}
2121
host=${host:-linux}
2222
EXE=""
2323
case "$host" in
24-
linux) HOST="x86_64-linux-gnu"; EXT=".x86_64";;
25-
win32) HOST="i686-w64-mingw32"; EXT=".win32"; EXE=".exe";;
26-
win64) HOST="x86_64-w64-mingw32"; EXT=".win64"; EXE=".exe";;
27-
osx) HOST="x86_64-apple-darwin14"; EXT=".osx";;
28-
arm64) HOST="aarch64-linux-gnu"; EXT=".arm64";;
29-
rpi) HOST="arm-linux-gnueabihf"; EXT=".rpi";;
24+
linux) HOST="x86_64-linux-gnu"; AHOST="x86_64-pc-linux-gnu"; EXT=".x86_64";;
25+
win32) HOST="i686-w64-mingw32"; AHOST="i686-mingw32"; EXT=".win32"; EXE=".exe";;
26+
win64) HOST="x86_64-w64-mingw32"; AHOST="x86_64-mingw32"; EXT=".win64"; EXE=".exe";;
27+
osx) HOST="x86_64-apple-darwin14"; AHOST="x86_64-apple-darwin"; EXT=".osx";;
28+
arm64) HOST="aarch64-linux-gnu"; AHOST="aarch64-linux-gnu"; EXT=".arm64";;
29+
rpi) HOST="arm-linux-gnueabihf"; AHOST="arm-linux-gnueabihf"; EXT=".rpi";;
3030
*) echo "Specify host as linux, win32, win64, osx, arm64, or rpi"; exit 2;;
3131
esac
3232

33-
3433
cleangit ()
3534
{(
3635
test -d "dl/$1" || { true; return; }
@@ -250,12 +249,12 @@ for sh in post/${gcc}*.sh; do
250249
done
251250

252251
echo "-------- creating package tgz"
253-
tarball=$HOST.xtensa-lx106-elf-$(git rev-parse --short HEAD).tgz
252+
tarball=$HOST.xtensa-lx106-elf-$(git rev-parse --short HEAD).tar.gz
254253
(rm -rf pkg && mkdir pkg && cd pkg && cp -a ../xtensa-lx106-elf${EXT} xtensa-lx106-elf && tar zcf ../${tarball} xtensa-lx106-elf/)
255254
tarballsize=$(stat -c%s ${tarball})
256255
tarballsha256=$(sha256sum ${tarball} | cut -f1 -d" ")
257256
( echo ' {' &&
258-
echo ' "host": "'$HOST'",' &&
257+
echo ' "host": "'$AHOST'",' &&
259258
echo ' "url": "https://github.com/earlephilhower/esp-quick-toolchain/releases/download/'${rel}'/'${tarball}'",' &&
260259
echo ' "archiveFileName": "'${tarball}'",' &&
261260
echo ' "checksum": "SHA-256:'${tarballsha256}'",' &&

0 commit comments

Comments
 (0)