Skip to content

Commit

Permalink
Added toolchain for SigmaStar6C
Browse files Browse the repository at this point in the history
  • Loading branch information
tipoman9 committed Jan 22, 2025
1 parent bf5a799 commit 987a161
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ msposd_goke
msposd_hisi
msposd_star6b0
msposd_star6e
msposd_star6c
msposd
msposd_rockchip
version.h
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ star6b0: version.h

star6c: version.h
$(eval SDK = ./sdk/infinity6)
$(eval CFLAGS += -D__SIGMASTAR__ -D__INFINITY6__ -D__INFINITY6E__)
$(eval CFLAGS += -D__SIGMASTAR__ -D__INFINITY6__ -D__INFINITY6C__)
$(eval LIB = -lcam_os_wrapper -lm -lmi_rgn -lmi_sys -lmi_common)
$(BUILD)

Expand Down
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
DL="https://github.com/OpenIPC/firmware/releases/download/toolchain/toolchain"

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

if [[ "$1" == *"star6b0" ]]; then
CC=sigmastar-infinity6b0
elif [[ "$1" == *"star6e" ]]; then
CC=sigmastar-infinity6e
elif [[ "$1" == *"star6c" ]]; then
CC=sigmastar-infinity6c
elif [[ "$1" == *"goke" ]]; then
CC=goke-gk7205v200
elif [[ "$1" == *"hisi" ]]; then
Expand Down Expand Up @@ -45,6 +47,9 @@ elif [ "$1" = "star6b0" ]; then
elif [ "$1" = "star6e" ]; then
DRV=$PWD/firmware/general/package/sigmastar-osdrv-infinity6e/files/lib
make -B CC=$GCC DRV=$DRV TOOLCHAIN=$PWD/toolchain/$CC OUTPUT=$OUT $1
elif [ "$1" = "star6c" ]; then
DRV=$PWD/firmware/general/package/sigmastar-osdrv-infinity6c/files/lib
make -B CC=$GCC DRV=$DRV TOOLCHAIN=$PWD/toolchain/$CC OUTPUT=$OUT $1
elif [ "$1" = "rockchip" ]; then
./build_rockchip.sh $1
else
Expand Down

0 comments on commit 987a161

Please sign in to comment.