Skip to content

Commit 78ccd29

Browse files
committed
Merge branch 'quectel-ci' of https://github.com/QuecPython/micropython into quectel-ci
2 parents c94194f + 0e36327 commit 78ccd29

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build port / build(push)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout Repository
11+
uses: actions/checkout@v4
12+
13+
- name: Install Special SDK Tool
14+
run: |
15+
curl -L "https://github.com/QuecPython/toolchain/releases/download/V1.1.0/helios-toolchain" -o $HOME/helios-toolchain
16+
chmod +x $HOME/helios-toolchain
17+
cd $HOME/
18+
./helios-toolchain
19+
echo "$HOME/helios/bin" >> $GITHUB_PATH
20+
21+
- name: Build Firmware
22+
run: |
23+
make -C mpy-cross
24+
cd ports/quectel
25+
make submodules
26+
cd ../../lib/helios
27+
helios make $HOME @EC600UCN_LB

ports/quectel/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TOP := ../..
22
ifneq ($(HeliosSDK_PATH),)
33
ROOT := $(HeliosSDK_PATH)
44
else
5-
ROOT := $(TOP)/../..
5+
ROOT := $(TOP)/lib/helios
66
endif
77

88
include ../../py/mkenv.mk
@@ -18,6 +18,9 @@ CFLAGS = $(INC) -Wall -Werror -Wdouble-promotion -Wfloat-conversion -std=c99 $(C
1818
LDFLAGS = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
1919
endif
2020

21+
CFLAGS += -mcpu=cortex-a5 -mtune=generic-armv7-a -mthumb \
22+
-mfpu=neon-vfpv4 -mfloat-abi=hard -mno-unaligned-access
23+
2124
CSUPEROPT = -Os # save some code space
2225

2326
GIT_SUBMODULES += lib/helios
@@ -107,5 +110,6 @@ $(BUILD)/_frozen_mpy.c: frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
107110
$(BUILD)/firmware.a: $(OBJ)
108111
$(ECHO) "AR $@"
109112
$(Q)$(AR) -cr $@ $^
113+
cd $(ROOT) && helios make ../../../micropython $(BOARD)
110114

111115
include $(TOP)/py/mkrules.mk

0 commit comments

Comments
 (0)