File tree 6 files changed +79
-18
lines changed
6 files changed +79
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ tags :
7
+ - ' *'
8
+ pull_request :
9
+ branches :
10
+ - master
11
+ workflow_dispatch :
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Build
21
+ run : |
22
+ sudo apt-get update
23
+ DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt-get -y install git make wget gcc libevent-dev libcsfml-dev file g++ cpio unzip rsync bc bzip2
24
+ ./build.sh goke
25
+ ./build.sh hisi
26
+ ./build.sh star6b0
27
+ ./build.sh star6e
28
+ ./build.sh x86
29
+
30
+ - name : Upload binary
31
+ uses : actions/upload-artifact@v4
32
+ with :
33
+ name : build-results
34
+ path : |
35
+ msposd_goke
36
+ msposd_hisi
37
+ msposd_star6b0
38
+ msposd_star6e
39
+ msposd_x86
40
+
41
+ - name : Versioned release
42
+ if : startsWith(github.ref, 'refs/tags/')
43
+ uses : softprops/action-gh-release@v2
44
+ with :
45
+ files : |
46
+ msposd_goke
47
+ msposd_hisi
48
+ msposd_star6b0
49
+ msposd_star6e
50
+ msposd_x86
51
+
52
+ - name : Upload latest
53
+ if : github.event_name != 'pull_request' && startsWith(github.ref, 'main')
54
+ uses : softprops/action-gh-release@v2
55
+ with :
56
+ tag_name : latest
57
+ files : |
58
+ msposd_goke
59
+ msposd_hisi
60
+ msposd_star6b0
61
+ msposd_star6e
62
+ msposd_x86
Original file line number Diff line number Diff line change @@ -5,4 +5,8 @@ toolchain/
5
5
majestic.yaml
6
6
/msposd
7
7
firmware /
8
-
8
+ msposd_goke
9
+ msposd_hisi
10
+ msposd_star6b0
11
+ msposd_star6e
12
+ msposd_x86
Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ CFLAGS += -Wno-address-of-packed-member -DVERSION_STRING="\"$(VERSION_STRING)\""
5
5
6
6
SRCS := compat.c msposd.c bmp/bitmap.c bmp/region.c bmp/lib/schrift.c bmp/text.c osd/net/network.c osd/msp/msp.c osd/msp/msp_displayport.c libpng/lodepng.c osd/util/interface.c osd/util/settings.c osd/util/ini_parser.c osd/msp/vtxmenu.c
7
7
OUTPUT ?= $(PWD )
8
- BUILD = $(CC ) $(SRCS ) -I $(SDK ) /include -L $(DRV ) $(CFLAGS ) $(LIB ) -levent_core -Os -s $(CFLAGS ) -o $(OUTPUT ) /msposd
8
+ BUILD = $(CC ) $(SRCS ) -I $(SDK ) /include -I $( TOOLCHAIN ) /usr/include -L $(DRV ) $(CFLAGS ) $(LIB ) -levent_core -Os -s $(CFLAGS ) -o $(OUTPUT )
9
9
10
10
clean :
11
- rm -f * .o x86 goke hisi star6b0 star6e msposd
11
+ rm -f * .o msposd_x86 msposd_goke msposd_hisi msposd_star6b0 msposd_star6e
12
12
13
13
goke :
14
14
$(eval SDK = ./sdk/gk7205v300)
15
15
$(eval CFLAGS += -D__GOKE__)
16
- $(eval LIB = -ldl -ldnvqe -lgk_api -lhi_mpi -lsecurec -lupvqe -lvoice_engine -ldnvqe)
16
+ $(eval LIB = -shared - ldl -ldnvqe -lgk_api -lhi_mpi -lsecurec -lupvqe -lvoice_engine -ldnvqe)
17
17
$(BUILD )
18
18
19
19
hisi :
20
20
$(eval SDK = ./sdk/hi3516ev300)
21
21
$(eval CFLAGS += -D__GOKE__)
22
- $(eval LIB = -ldnvqe -lmpi -lsecurec -lupvqe -lVoiceEngine)
22
+ $(eval LIB = -shared - ldnvqe -lmpi -lsecurec -lupvqe -lVoiceEngine)
23
23
$(BUILD )
24
24
25
25
star6b0 :
39
39
$(eval CFLAGS += -D_x86)
40
40
$(eval LIB = -lcsfml-graphics -lcsfml-window -lcsfml-system `pkg-config --libs cairo x11` -lm)
41
41
42
- $(eval BUILD = $(CC ) $(SRCS ) -I $(SDK ) /include -L $(DRV ) $(CFLAGS ) $(LIB ) -levent_core -O0 -g -o $(OUTPUT ) /msposd )
42
+ $(eval BUILD = $(CC ) $(SRCS ) -I $(SDK ) /include -L $(DRV ) $(CFLAGS ) $(LIB ) -levent_core -O0 -g -o $(OUTPUT ) )
43
43
$(BUILD )
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ elif [[ "$1" == *"hisi" ]]; then
12
12
fi
13
13
14
14
GCC=$PWD /toolchain/$CC /bin/arm-linux-gcc
15
- OUT=$PWD /release/$1
16
- mkdir -p $OUT
15
+ OUT=msposd_$1
17
16
18
17
if [ ! -e toolchain/$CC ]; then
19
18
wget -c -q --show-progress $DL /$CC .tgz -P $PWD
28
27
29
28
if [ " $1 " = " goke" ]; then
30
29
DRV=$PWD /firmware/general/package/goke-osdrv-gk7205v200/files/lib
31
- make -B CC=$GCC DRV=$DRV OUTPUT=$OUT $1
30
+ make -B CC=$GCC DRV=$DRV TOOLCHAIN= $PWD /toolchain/ $CC OUTPUT=$OUT $1
32
31
elif [ " $1 " = " hisi" ]; then
33
32
DRV=$PWD /firmware/general/package/hisilicon-osdrv-hi3516ev200/files/lib
34
- make -B CC=$GCC DRV=$DRV OUTPUT=$OUT $1
33
+ make -B CC=$GCC DRV=$DRV TOOLCHAIN= $PWD /toolchain/ $CC OUTPUT=$OUT $1
35
34
elif [ " $1 " = " star6b0" ]; then
36
35
DRV=$PWD /firmware/general/package/sigmastar-osdrv-infinity6b0/files/lib
37
- make -B CC=$GCC DRV=$DRV OUTPUT=$OUT $1
36
+ make -B CC=$GCC DRV=$DRV TOOLCHAIN= $PWD /toolchain/ $CC OUTPUT=$OUT $1
38
37
elif [ " $1 " = " star6e" ]; then
39
38
DRV=$PWD /firmware/general/package/sigmastar-osdrv-infinity6e/files/lib
40
- make -B CC=$GCC DRV=$DRV OUTPUT=$OUT $1
39
+ make -B CC=$GCC DRV=$DRV TOOLCHAIN= $PWD /toolchain/ $CC OUTPUT=$OUT $1
41
40
elif [ " $1 " = " x86" ]; then
42
41
DRV=$PWD
43
42
make DRV=$DRV OUTPUT=$OUT $1
Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
2
#include <stdlib.h>
3
3
#include <string.h>
4
- #if __SIGMASTAR__
5
- #include <bits/stdint-uintn.h>
6
- #endif
4
+ #include <stdint.h>
7
5
#include "interface.h"
8
6
9
7
#define BUFFER_SIZE 1024
Original file line number Diff line number Diff line change 1
1
#pragma once
2
- #if __SIGMASTAR__
3
- #include <bits/stdint-uintn.h>
4
- #endif
2
+ #include <stdint.h>
5
3
#include "../msp/msp.h"
6
4
7
5
#define MAX_ENTRIES 100 // Maximum number of frequency-channel pairs to store
You can’t perform that action at this time.
0 commit comments