diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-12-06 19:31:44 +0059 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-03-29 10:16:16 +0200 |
commit | e4efb34f657859bc0f8922dfb9507e66451e6ebe (patch) | |
tree | 4f5ebd7ec1f23b291c3f75a5a1e461c0aeb46e9d | |
parent | dffb49cc74db074686aeac498afad513a6108538 (diff) | |
download | build-e4efb34f657859bc0f8922dfb9507e66451e6ebe.tar.gz |
build/core: Bring back support for TARGET_EXTRA_CFLAGS
This commit re-introduces support for setting TARGET_EXTRA_CFLAGS
(such as -march=SomethingNotCompatibleWithOtherBoards) in board
specific config files.
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | core/combo/TARGET_linux-arm.mk | 2 | ||||
-rw-r--r-- | core/config.mk | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index 8c8914329a..9000b866c8 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -149,7 +149,7 @@ endif TARGET_GLOBAL_CPPFLAGS += -fvisibility-inlines-hidden # More flags/options can be added here -TARGET_RELEASE_CFLAGS := \ +TARGET_RELEASE_CFLAGS += \ -DNDEBUG \ -g \ -Wstrict-aliasing=2 \ diff --git a/core/config.mk b/core/config.mk index 7a643b3f2a..235721465f 100644 --- a/core/config.mk +++ b/core/config.mk @@ -323,8 +323,11 @@ TARGET_PROJECT_INCLUDES:= $(SRC_HEADERS) $(TARGET_OUT_HEADERS) # Many host compilers don't support these flags, so we have to make # sure to only specify them for the target compilers checked in to # the source tree. -TARGET_GLOBAL_CFLAGS += $(TARGET_ERROR_FLAGS) -TARGET_GLOBAL_CPPFLAGS += $(TARGET_ERROR_FLAGS) +ifeq ($(TARGET_EXTRA_CPPFLAGS),) +TARGET_EXTRA_CPPFLAGS := $(TARGET_EXTRA_CFLAGS) +endif +TARGET_GLOBAL_CFLAGS += $(TARGET_ERROR_FLAGS) $(TARGET_EXTRA_CFLAGS) +TARGET_GLOBAL_CPPFLAGS += $(TARGET_ERROR_FLAGS) $(TARGET_EXTRA_CPPFLAGS) HOST_GLOBAL_CFLAGS += $(HOST_RELEASE_CFLAGS) HOST_GLOBAL_CPPFLAGS += $(HOST_RELEASE_CPPFLAGS) |