summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-09-11 15:59:53 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-10-08 10:15:31 +0200
commit87be2f38a500a4e1d57b117053b52399070b632c (patch)
tree4aa0ae793b83cf13d176d3e04b990468bff5942f /toolchain
parent38c16b07850f34af0c05f64533038fb33df84174 (diff)
add phytec-imx6 basic structure
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 4edb9e862..3ca98ab37 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -21,6 +21,12 @@ TARGET_CFLAGS:= $(filter-out -msep-data,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -msep-data,$(TARGET_CXXFLAGS))
endif
+# for ARM, we need to filter out some flags
+ifeq ($(ADK_TARGET_ARCH_ARM),y)
+TARGET_CFLAGS:= $(filter-out -mcpu=cortex-a9,$(TARGET_CFLAGS))
+TARGET_CXXFLAGS:= $(filter-out -mcpu=cortex-a9,$(TARGET_CXXFLAGS))
+endif
+
ifeq ($(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
TARGET_CFLAGS:= $(filter-out -static,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -static,$(TARGET_CXXFLAGS))