summaryrefslogtreecommitdiff
path: root/package/musl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-11 13:45:54 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-12 07:02:37 (GMT)
commit35fa84737e00b09f20b66f3bbd534a49a985a10d (patch)
tree598a91dfffe7f1e0bcead414cbf0b1deacd857dc /package/musl
parente6eb6c3bc943b70a8aaa1739e91437bb5d773173 (diff)
fix linux header installation on Darwin
Diffstat (limited to 'package/musl')
-rw-r--r--package/musl/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index 2c33023..77f16a3 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -3,6 +3,7 @@
include $(TOPDIR)/rules.mk
include $(TOPDIR)/mk/kernel-ver.mk
+include $(TOPDIR)/mk/kernel-vars.mk
include $(TOPDIR)/toolchain/musl/Makefile.inc
PKG_NAME:= musl
@@ -69,7 +70,9 @@ 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_KARCH) V=1 \
+ ${KERNEL_MAKE_ENV} \
+ $(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-linux-$(KERNEL_VERSION)-$(KERNEL_RELEASE)/linux-$(KERNEL_VERSION) \
+ $(KERNEL_MAKE_OPTS) \
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} \