summaryrefslogtreecommitdiff
path: root/package/musl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-08 06:37:20 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-08 06:37:41 (GMT)
commitbd8b249679a8250f7f086bde5f187dd9af81beca (patch)
tree76153610e70f5440de753c4976fac133e8bb9afc /package/musl
parentb9d3aca2cef4df6fcf5d9534e51ecd0797a12688 (diff)
use ADK_TARGET_KARCH for kernel stuff, fix ppc build
Diffstat (limited to 'package/musl')
-rw-r--r--package/musl/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index b21218b..2c33023 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -35,12 +35,6 @@ endif
ifeq ($(ADK_TARGET_CPU_ARCH),i486)
MARCH:= i386
endif
-ifeq ($(ADK_TARGET_CPU_ARCH),mips64el)
-MARCH:= mips
-endif
-ifeq ($(ADK_TARGET_CPU_ARCH),mips64)
-MARCH:= mips
-endif
ifeq ($(ADK_TARGET_CPU_ARCH),ppc)
MARCH:= powerpc
endif
@@ -50,9 +44,11 @@ endif
ifeq ($(ADK_TARGET_CPU_ARCH),sh4eb)
MARCH:= sheb
endif
-ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
+ifeq ($(ADK_LINUX_ARM),y)
+ifeq ($(ADK_TARGET_ABI),eabihf)
MARCH:= armhf
endif
+endif
ifeq ($(ADK_TARGET_ABI_X32),y)
MARCH:= x32
endif
@@ -73,7 +69,7 @@ endif
musl-dev-install:
${INSTALL_DIR} ${IDIR_MUSL_DEV}/usr/lib
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt*.o ${IDIR_MUSL_DEV}/usr/lib
- $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) ARCH=$(ADK_TARGET_ARCH) V=1 \
+ $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) ARCH=$(ADK_TARGET_KARCH) V=1 \
INSTALL_HDR_PATH=$(IDIR_MUSL_DEV)/usr \
headers_install
$(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/${PKG_NAME}-${PKG_VERSION} \