diff --git a/config_cortex_m0.mk b/config_cortex_m0.mk index bc36c4c..9552e58 100644 --- a/config_cortex_m0.mk +++ b/config_cortex_m0.mk @@ -17,6 +17,7 @@ OPT_CFLAGS = -fdata-sections -ffunction-sections PLATFORM_CFLAGS = -Wno-unused-parameter -nostdinc -ffreestanding -fno-builtin -fsigned-char -fno-common -Wno-main -I$(shell $(CC) -print-search-dirs | $(AWK) '$$1 == "install:" {print $$NF}')include +PLATFORM_CFLAGS += ARM_MATH_CM0 PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections diff --git a/config_cortex_m3.mk b/config_cortex_m3.mk index 3f9f525..73e0b8c 100644 --- a/config_cortex_m3.mk +++ b/config_cortex_m3.mk @@ -17,6 +17,7 @@ OPT_CFLAGS = -fdata-sections -ffunction-sections PLATFORM_CFLAGS = -Wno-unused-parameter -nostdinc -ffreestanding -fno-builtin -fsigned-char -fno-common -Wno-main -I$(shell $(CC) -print-search-dirs | $(AWK) '$$1 == "install:" {print $$NF}')include +PLATFORM_CFLAGS += ARM_MATH_CM3 PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections diff --git a/config_cortex_m4f.mk b/config_cortex_m4f.mk index 89ad927..03b1be7 100644 --- a/config_cortex_m4f.mk +++ b/config_cortex_m4f.mk @@ -17,6 +17,7 @@ OPT_CFLAGS = -fdata-sections -ffunction-sections PLATFORM_CFLAGS = -Wno-unused-parameter -nostdinc -ffreestanding -fno-builtin -fsigned-char -fno-common -Wno-main -I$(shell $(CC) -print-search-dirs | $(AWK) '$$1 == "install:" {print $$NF}')include +PLATFORM_CFLAGS += ARM_MATH_CM4 PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections diff --git a/config_cortex_m7.mk b/config_cortex_m7.mk index 1da0c03..13f5596 100644 --- a/config_cortex_m7.mk +++ b/config_cortex_m7.mk @@ -17,6 +17,7 @@ OPT_CFLAGS = -fdata-sections -ffunction-sections PLATFORM_CFLAGS = -Wno-unused-parameter -nostdinc -ffreestanding -fno-builtin -fsigned-char -fno-common -Wno-main -I$(shell $(CC) -print-search-dirs | $(AWK) '$$1 == "install:" {print $$NF}')include +PLATFORM_CFLAGS += ARM_MATH_CM7 PLATFORM_CXXFLAGS = $(PLATFORM_CFLAGS) -fno-rtti -fno-exceptions -fno-use-cxa-atexit PLATFORM_LDFLAGS = -nostdlib -nostartfiles -nodefaultlibs -Wl,-static,-gc-sections