فهرست منبع

kernel-headers: get rid of the arch/$(ARCH)/include/asm vs include/asm-$(ARCH) copying mess and stick to what the kernel is using

SVN-Revision: 25443
Felix Fietkau 14 سال پیش
والد
کامیت
29de442b0d
1فایلهای تغییر یافته به همراه6 افزوده شده و 10 حذف شده
  1. 6 10
      toolchain/kernel-headers/Makefile

+ 6 - 10
toolchain/kernel-headers/Makefile

@@ -46,21 +46,17 @@ define Host/Prepare/all
 	$(KMAKE) \
 	$(KMAKE) \
 		INSTALL_HDR_PATH="$(BUILD_DIR_TOOLCHAIN)/linux-dev/" \
 		INSTALL_HDR_PATH="$(BUILD_DIR_TOOLCHAIN)/linux-dev/" \
 		headers_install
 		headers_install
-	if [ -d $(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm ]; then \
-		mkdir -p $(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH); \
-		$(CP) \
-			$(HOST_BUILD_DIR)/arch/$(LINUX_KARCH)/include/asm/. \
-			$(HOST_BUILD_DIR)/include/asm-$(LINUX_KARCH)/; \
-	fi
 endef
 endef
 
 
 # XXX: the following is needed to build lzma-loader
 # XXX: the following is needed to build lzma-loader
-define Host/Prepare/lzma
+ifneq ($(CONFIG_mips)$(CONFIG_mipsel),)
+  define Host/Prepare/lzma
 	$(CP) \
 	$(CP) \
-		$(HOST_BUILD_DIR)/include/asm-mips/asm.h \
-		$(HOST_BUILD_DIR)/include/asm-mips/regdef.h \
+		$(HOST_BUILD_DIR)/arch/mips/include/asm/asm.h \
+		$(HOST_BUILD_DIR)/arch/mips/include/asm/regdef.h \
 		$(BUILD_DIR_TOOLCHAIN)/linux-dev/include/asm/
 		$(BUILD_DIR_TOOLCHAIN)/linux-dev/include/asm/
-endef
+  endef
+endif
 
 
 define Host/Prepare/post/cris
 define Host/Prepare/post/cris
 	$(CP) \
 	$(CP) \