Skip to content

Commit

Permalink
Adapted toolchain download links to latest OpenIPC changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tipoman9 committed Nov 24, 2024
1 parent b3ddae1 commit 8a82c65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
#!/bin/bash
DL="https://github.com/openipc/firmware/releases/download/latest"
DL="https://github.com/OpenIPC/firmware/releases/download/toolchain/toolchain"


if [[ "$1" == *"star6b0" ]]; then
CC=cortex_a7_thumb2_hf-gcc13-musl-4_9
CC=sigmastar-infinity6b0
elif [[ "$1" == *"star6e" ]]; then
CC=cortex_a7_thumb2_hf-gcc13-glibc-4_9
CC=sigmastar-infinity6e
elif [[ "$1" == *"goke" ]]; then
CC=cortex_a7_thumb2-gcc13-musl-4_9
CC=goke-gk7205v200
elif [[ "$1" == *"hisi" ]]; then
CC=cortex_a7_thumb2-gcc13-musl-4_9
CC=hisilicon-hi3516ev200
fi

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

if [[ "$1" != *"jetson"* && "$1" != *"x86"* ]]; 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 $CC.tgz -C toolchain/$CC --strip-components=1 || exit 1
tar -xf toolchain.$CC.tgz -C toolchain/$CC --strip-components=1 || exit 1
rm -f $CC.tgz
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef VERSION_H
#define VERSION_H
#define GIT_VERSION "c1ffa36-dirty"
#define GIT_VERSION "b3ddae1-dirty"
#endif // VERSION_H

0 comments on commit 8a82c65

Please sign in to comment.