Skip to content

Commit 681aa49

Browse files
committed
quectel: Update Makefile.
1 parent f30907c commit 681aa49

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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)