summaryrefslogtreecommitdiff
path: root/toolchain/kernel-headers/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/kernel-headers/Makefile')
-rw-r--r--toolchain/kernel-headers/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index e81fa87eb..8b364d760 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -11,6 +11,18 @@ $(WRKBUILD)/.headers:
INSTALL_HDR_PATH=$(STAGING_DIR)/usr \
headers_install
ifeq ($(ADK_TARGET_WITH_MULTILIB),y)
+ifeq ($(ADK_LINUX_MIPS),y)
+ $(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=mips V=1 \
+ INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)-n32/usr \
+ headers_install
+ $(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=mips V=1 \
+ INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)-64/usr \
+ headers_install
+ $(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=mips V=1 \
+ INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)-o32/usr \
+ headers_install
+endif
+ifeq ($(ADK_LINUX_X86_64),y)
$(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=x86 V=1 \
INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)-32/usr \
headers_install
@@ -21,6 +33,7 @@ ifeq ($(ADK_TARGET_WITH_MULTILIB),y)
INSTALL_HDR_PATH=$(STAGING_TARGET_DIR)-64/usr \
headers_install
endif
+endif
$(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=$(ARCH) V=1 \
INSTALL_HDR_PATH=$(LINUX_HEADER_DIR) \
headers_install