diff options
| author | hathach <[email protected]> | 2023-11-23 11:44:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-11-23 11:44:14 +0700 |
| commit | 51312f70fde779f59dcc48b41132291c10d3ad0b (patch) | |
| tree | abf7ea5c2fbd6bfddd66930f3fefc88fd1a3bf5b /examples/build_system/make/cpu/cortex-m33.mk | |
| parent | 08f9ed67c92421cbd0bc09270d2f363886681866 (diff) | |
move make to examples/build_system
add -Wl,--no-warn-rwx-segment for gcc 12+
Diffstat (limited to 'examples/build_system/make/cpu/cortex-m33.mk')
| -rw-r--r-- | examples/build_system/make/cpu/cortex-m33.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m33.mk b/examples/build_system/make/cpu/cortex-m33.mk new file mode 100644 index 000000000..fe5b7b380 --- /dev/null +++ b/examples/build_system/make/cpu/cortex-m33.mk @@ -0,0 +1,19 @@ +ifeq ($(TOOLCHAIN),gcc) + CFLAGS += \ + -mthumb \ + -mcpu=cortex-m33 \ + -mfloat-abi=hard \ + -mfpu=fpv5-sp-d16 \ + +else ifeq ($(TOOLCHAIN),iar) + CFLAGS += \ + --cpu cortex-m33 \ + --fpu VFPv5-SP \ + + ASFLAGS += \ + --cpu cortex-m33 \ + --fpu VFPv5-SP \ + +endif + +FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM33_NTZ/non_secure |
