Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt toolchain uri change (404 error) #37

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#!/bin/bash
DL="https://github.com/OpenIPC/firmware/releases/download/toolchain/toolchain"
DL="https://github.com/OpenIPC/firmware/releases/download/toolchain"

if [ "$#" -ne 1 ]; then
echo "Usage: $0 [goke|hisi|star6b0|star6e|native]"
exit 1
fi

if [[ "$1" == *"star6b0" ]]; then
CC=sigmastar-infinity6b0
CC=toolchain.sigmastar-infinity6b0
elif [[ "$1" == *"star6e" ]]; then
CC=sigmastar-infinity6e
CC=toolchain.sigmastar-infinity6e
elif [[ "$1" == *"goke" ]]; then
CC=goke-gk7205v200
CC=toolchain.goke-gk7205v200
elif [[ "$1" == *"hisi" ]]; then
CC=hisilicon-hi3516ev200
CC=toolchain.hisilicon-hi3516ev200
fi

GCC=$PWD/toolchain/$CC/bin/arm-linux-gcc
OUT=msposd

if [[ "$1" != *"native"* ]]; then
if [ ! -e toolchain/$CC ]; then
wget -c -q --show-progress $DL.$CC.tgz -P $PWD
wget -c -q --show-progress $DL/$CC.tgz -P $PWD
mkdir -p toolchain/$CC
tar -xf toolchain.$CC.tgz -C toolchain/$CC --strip-components=1 || exit 1
tar -xf $CC.tgz -C toolchain/$CC --strip-components=1 || exit 1
rm -f $CC.tgz
fi
OUT=msposd_$1
Expand Down
Loading