From 48758993b09a96f83c2bd190a5586421c90428e7 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 2 Jun 2014 11:11:56 +0200 Subject: 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 --- package/musl/Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'package/musl/Makefile') diff --git a/package/musl/Makefile b/package/musl/Makefile index a440cd7d4..c1606b5dd 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) -- cgit v1.2.3