diff options
| author | hathach <[email protected]> | 2023-05-15 14:25:42 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-05-15 14:25:42 +0700 |
| commit | 9fd0fee458759c49acbeab6b9382df287620e532 (patch) | |
| tree | a5406dac284e04b4dd6cac3f5289814fb365a04a /examples | |
| parent | a57ba87859c90ae7e5d8419685fffef87db67b21 (diff) | |
adding nrf
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/cmake/cpu/cortex-m4.cmake | 12 | ||||
| -rw-r--r-- | examples/rules.mk | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/examples/cmake/cpu/cortex-m4.cmake b/examples/cmake/cpu/cortex-m4.cmake new file mode 100644 index 000000000..5a2d16c05 --- /dev/null +++ b/examples/cmake/cpu/cortex-m4.cmake @@ -0,0 +1,12 @@ +if (TOOLCHAIN STREQUAL "gcc") + list(APPEND TOOLCHAIN_COMMON_FLAGS + -mthumb + -mcpu=cortex-m4 + -mfloat-abi=hard + -mfpu=fpv4-sp-d16 + ) + + set(FREERTOS_PORT GCC_ARM_CM4F CACHE INTERNAL "") +else () + # TODO support IAR +endif () diff --git a/examples/rules.mk b/examples/rules.mk index 516beca78..2eaa48e2e 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -86,7 +86,7 @@ LDFLAGS += -Wl,-T,$(TOP)/$(GCC_LD_FILE) endif ifneq ($(SKIP_NANOLIB), 1) -LDFLAGS += -specs=nosys.specs -specs=nano.specs +LDFLAGS += --specs=nosys.specs --specs=nano.specs endif ASFLAGS += $(CFLAGS) |
