File tree 4 files changed +43
-12
lines changed
4 files changed +43
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout source
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Build source
19
+ run : |
20
+ bash build.sh osd-goke
21
+ bash build.sh osd-hisi
22
+ bash build.sh osd-star
23
+
24
+ - name : Upload files
25
+ uses : softprops/action-gh-release@v2
26
+ with :
27
+ tag_name : latest
28
+ files : |
29
+ osd/osd-goke
30
+ osd/osd-hisi
31
+ osd/osd-star
Original file line number Diff line number Diff line change 1
- /firmware /
2
- /osd / osd
3
- /toolchain /
1
+ /firmware
2
+ /toolchain
3
+ /osd / osd *
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
DL=" https://github.com/openipc/firmware/releases/download/latest"
3
3
4
- if [[ " $1 " = * -sst6 ] ]; then
4
+ if [ " $1 " = " osd-star " ]; then
5
5
CC=cortex_a7_thumb2_hf-gcc13-glibc-4_9
6
6
else
7
7
CC=cortex_a7_thumb2-gcc13-musl-4_9
10
10
GCC=$PWD /toolchain/$CC /bin/arm-linux-gcc
11
11
12
12
if [ ! -e toolchain/$CC ]; then
13
- wget -c -nv --show-progress $DL /$CC .tgz -P $PWD
13
+ wget -c -q --show-progress $DL /$CC .tgz -P $PWD
14
14
mkdir -p toolchain/$CC
15
15
tar -xf $CC .tgz -C toolchain/$CC --strip-components=1 || exit 1
16
16
rm -f $CC .tgz
@@ -26,10 +26,10 @@ if [ "$1" = "osd-goke" ]; then
26
26
elif [ " $1 " = " osd-hisi" ]; then
27
27
DRV=$PWD /firmware/general/package/hisilicon-osdrv-hi3516ev200/files/lib
28
28
make -C osd -B CC=$GCC DRV=$DRV $1
29
- elif [ " $1 " = " osd-sst6 " ]; then
29
+ elif [ " $1 " = " osd-star " ]; then
30
30
DRV=$PWD /firmware/general/package/sigmastar-osdrv-infinity6e/files/lib
31
31
make -C osd -B CC=$GCC DRV=$DRV $1
32
32
else
33
- echo " Usage: $0 [osd-goke|osd-hisi|osd-sst6 ]"
33
+ echo " Usage: $0 [osd-goke|osd-hisi|osd-star ]"
34
34
exit 1
35
35
fi
Original file line number Diff line number Diff line change 1
1
SRCS := lib/schrift.c compat.c bitmap.c net.c region.c text.c main.c
2
- BUILD = $(CC ) $(SRCS ) -I $(SDK ) /include -L $(DRV ) $(LIB ) -Os -s -o osd
2
+ BUILD = $(CC ) $(SRCS ) -I $(SDK ) /include -L $(DRV ) $(LIB ) -Os -s
3
3
4
4
osd-goke :
5
5
$(eval SDK = ../sdk/gk7205v300)
6
6
$(eval LIB = -lhi_mpi -lgk_api -ldnvqe -lupvqe -lvoice_engine -lsecurec)
7
- $(BUILD )
7
+ $(BUILD ) -o $@
8
8
9
9
osd-hisi :
10
10
$(eval SDK = ../sdk/hi3516ev300)
11
11
$(eval LIB = -lmpi -ldnvqe -lupvqe -lVoiceEngine -lsecurec)
12
- $(BUILD )
12
+ $(BUILD ) -o $@
13
13
14
- osd-sst6 :
14
+ osd-star :
15
15
$(eval SDK = ../sdk/infinity6)
16
16
$(eval LIB = -D__SIGMASTAR__ -lcam_os_wrapper -lm -lmi_rgn -lmi_sys)
17
- $(BUILD )
17
+ $(BUILD ) -o $@
You can’t perform that action at this time.
0 commit comments