summaryrefslogtreecommitdiff
path: root/toolchain/uclibc-ng/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-04-27 20:54:26 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-04-27 20:54:26 +0200
commit5ffc823114c78a9470a2ad17b2985575ecd362ec (patch)
tree0c6005506bc5b1602651736d0ae78822cc8e7c5b /toolchain/uclibc-ng/Makefile
parenta19820e6c3a85672cd5e35e28be18bc00a64443f (diff)
add support for ARCv2 ARC HS toolchain compilation
Diffstat (limited to 'toolchain/uclibc-ng/Makefile')
-rw-r--r--toolchain/uclibc-ng/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile
index ee5b2f313..caeba532b 100644
--- a/toolchain/uclibc-ng/Makefile
+++ b/toolchain/uclibc-ng/Makefile
@@ -160,6 +160,18 @@ endif
# architecture specific options
#
+# arc
+ifeq ($(ADK_TARGET_ARCH_ARC),y)
+ifeq ($(ADK_TARGET_CPU_ARC_ARC700),y)
+ $(SED) 's/.*\(CONFIG_ARC_CPU_700\).*/\1=y/' ${WRKBUILD}/.config
+ $(SED) 's/.*\(CONFIG_ARC_CPU_HS\).*/# \1 is not set/' ${WRKBUILD}/.config
+endif
+ifeq ($(ADK_TARGET_CPU_ARC_ARC_HS),y)
+ $(SED) 's/.*\(CONFIG_ARC_CPU_HS\).*/\1=y/' ${WRKBUILD}/.config
+ $(SED) 's/.*\(CONFIG_ARC_CPU_700\).*/# \1 is not set/' ${WRKBUILD}/.config
+endif
+endif
+
# arm
ifeq ($(ADK_TARGET_ARCH_ARM),y)
ifeq ($(ADK_TARGET_ARCH_ARM_WITH_THUMB),y)