Add Makefile for all CM4 CPUs
This commit is contained in:
parent
6333e3b8f7
commit
92c572bf76
13
arch/cpu/arm/cortex-m/cm4/Makefile.cm4
Normal file
13
arch/cpu/arm/cortex-m/cm4/Makefile.cm4
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
CONTIKI_ARM_DIRS += cortex-m/cm4
|
||||||
|
|
||||||
|
CFLAGS += -mcpu=cortex-m4
|
||||||
|
LDFLAGS += -mcpu=cortex-m4
|
||||||
|
|
||||||
|
### Compilation rules
|
||||||
|
CUSTOM_RULE_LINK=1
|
||||||
|
|
||||||
|
%.elf: $(TARGET_STARTFILES) %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(TARGET_LIBS)
|
||||||
|
$(TRACE_LD)
|
||||||
|
$(Q)$(CC) $(LDFLAGS) ${filter %o %.co %.a,$^} -o $@
|
||||||
|
|
||||||
|
include $(CONTIKI)/arch/cpu/arm/cortex-m/Makefile.cortex-m
|
Loading…
Reference in New Issue
Block a user