File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,13 +10,7 @@ include quectel.mk
1010
1111CROSS = 1
1212
13- ifeq ($(CROSS ) , 1)
1413CFLAGS = $(INC ) $(QUEC_MOD_CFLAGS ) $(PLAT_CFLAGS ) $(PLAT_DFLAGS ) $(COPT )
15- else
16- LD = gcc
17- CFLAGS = $(INC ) -Wall -Werror -Wdouble-promotion -Wfloat-conversion -std=c99 $(COPT )
18- LDFLAGS = -Wl,-Map=$@ .map,--cref -Wl,--gc-sections
19- endif
2014
2115CFLAGS += -mcpu=cortex-a5 -mtune=generic-armv7-a -mthumb \
2216 -mfpu=neon-vfpv4 -mfloat-abi=hard -mno-unaligned-access
@@ -99,11 +93,8 @@ SRC_QSTR += $(SRC_MOD) $(SRC_MOD_CXX) $(SHARED_SRC_C) $(SRC_EXTMOD_C)
9993OBJ += $(PY_CORE_O ) $(addprefix $(BUILD ) /, $(SRC_C:.c=.o ) )
10094OBJ += $(addprefix $(BUILD ) /, $(SRC_CXX:.cpp=.o ) )
10195
102- ifeq ($(CROSS ) , 1)
103- all : $(BUILD ) /firmware.a
104- else
105- all : $(BUILD ) /firmware.elf
106- endif
96+ all : $(BUILD ) /firmware.a helios_build
97+ local : $(BUILD ) /firmware.a
10798
10899$(BUILD ) /_frozen_mpy.c : frozentest.mpy $(BUILD ) /genhdr/qstrdefs.generated.h
109100 $(ECHO ) " MISC freezing bytecode"
@@ -112,6 +103,8 @@ $(BUILD)/_frozen_mpy.c: frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
112103$(BUILD ) /firmware.a : $(OBJ )
113104 $(ECHO ) " AR $@ "
114105 $(Q )$(AR ) -cr $@ $^
106+
107+ helios_build : $(BUILD ) /firmware.a
115108 cd $(ROOT ) && helios make $(abspath $(TOP ) ) $(BOARD )
116109
117110include $(TOP ) /py/mkrules.mk
You can’t perform that action at this time.
0 commit comments