From cf2bb7112d8c6c931126ea74d6e4112ecd37cc4d Mon Sep 17 00:00:00 2001 From: batt Date: Mon, 8 Oct 2007 17:06:14 +0000 Subject: [PATCH] Add right compiler options for arm CPU. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@838 38d2e660-2303-0410-9eaa-f027e97ec537 --- rules.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rules.mk b/rules.mk index 41d1e1cb..0fe37a0f 100644 --- a/rules.mk +++ b/rules.mk @@ -63,6 +63,14 @@ $(1)_ASFLAGS += -mmcu=$$($(1)_MCU) $(1)_CPPAFLAGS += -mmcu=$$($(1)_MCU) $(1)_LDFLAGS += -mmcu=$$($(1)_MCU) endif +ifneq ($$(strip $$($(1)_CPU)),) +# Define all project specific object files +$(1)_CFLAGS += -mcpu=$$($(1)_CPU) +$(1)_CXXFLAGS += -mcpu=$$($(1)_CPU) +$(1)_ASFLAGS += -mcpu=$$($(1)_CPU) +$(1)_CPPAFLAGS += -mcpu=$$($(1)_CPU) +$(1)_LDFLAGS += -mcpu=$$($(1)_CPU) +endif ifneq ($$(strip $$($(1)_LDSCRIPT)),) $(1)_LDFLAGS += -Wl,-T$$($(1)_LDSCRIPT) endif -- 2.25.1