summaryrefslogtreecommitdiff
path: root/package/musl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-02 09:11:56 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-02 15:13:35 (GMT)
commit48758993b09a96f83c2bd190a5586421c90428e7 (patch)
tree28e4554cb26cc1294d06d6241b255d9e20190deb /package/musl
parent8a2c6310e1e2764865ef684217130ed713d654e7 (diff)
refactor CPU_ARCH/ARCH variables
After Joerg asked me about the difference between ADK_TARGET_ARCH and ADK_TARGET_CPU_ARCH I recognized many duplication of variables for this information. These patch fixes this up. Use make cleandir && make menuconfig && make
Diffstat (limited to 'package/musl')
-rw-r--r--package/musl/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index a440cd7..c1606b5 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -24,32 +24,32 @@ CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
-MARCH:= $(CPU_ARCH)
-ifeq ($(CPU_ARCH),i686)
+MARCH:= $(ADK_TARGET_CPU_ARCH)
+ifeq ($(ADK_TARGET_CPU_ARCH),i686)
MARCH:= i386
endif
-ifeq ($(CPU_ARCH),i586)
+ifeq ($(ADK_TARGET_CPU_ARCH),i586)
MARCH:= i386
endif
-ifeq ($(CPU_ARCH),i486)
+ifeq ($(ADK_TARGET_CPU_ARCH),i486)
MARCH:= i386
endif
-ifeq ($(CPU_ARCH),mipsel)
+ifeq ($(ADK_TARGET_CPU_ARCH),mipsel)
MARCH:= mips
endif
-ifeq ($(CPU_ARCH),mips64el)
+ifeq ($(ADK_TARGET_CPU_ARCH),mips64el)
MARCH:= mips
endif
-ifeq ($(CPU_ARCH),mips64)
+ifeq ($(ADK_TARGET_CPU_ARCH),mips64)
MARCH:= mips
endif
-ifeq ($(CPU_ARCH),ppc)
+ifeq ($(ADK_TARGET_CPU_ARCH),ppc)
MARCH:= powerpc
endif
-ifeq ($(CPU_ARCH),sh4)
+ifeq ($(ADK_TARGET_CPU_ARCH),sh4)
MARCH:= sh
endif
-ifeq ($(CPU_ARCH),sh4eb)
+ifeq ($(ADK_TARGET_CPU_ARCH),sh4eb)
MARCH:= sheb
endif
ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)