From: Hamish Guthrie Date: Thu, 9 Oct 2008 11:33:47 +0000 (+0000) Subject: The merge of ppc (32-bit headers) and powerpc (previously 64-bit only headers) has... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=34837ea2ddce6d22d90eda3ffe198c6ba6267167;p=openwrt%2Fstaging%2Frobimarko.git The merge of ppc (32-bit headers) and powerpc (previously 64-bit only headers) has now been completed, so it build breaks if asm-ppc headers directory does not exist - this should fix this problem without being invasive SVN-Revision: 12933 --- diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index a182c83c1f..6e02fe9888 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -33,9 +33,11 @@ define Build/Configure/cris endef define Build/Configure/powerpc - $(CP) $(PKG_BUILD_DIR)/include/asm-ppc/* $(PKG_BUILD_DIR)/include/asm-powerpc/ - rm -rf $(PKG_BUILD_DIR)/include/asm-ppc - ln -s $(PKG_BUILD_DIR)/include/asm-powerpc $(PKG_BUILD_DIR)/include/asm-ppc + if [ -d $(PKG_BUILD_DIR)/include/asm-ppc ]; then \ + $(CP) $(PKG_BUILD_DIR)/include/asm-ppc/* $(PKG_BUILD_DIR)/include/asm-powerpc/; \ + rm -rf $(PKG_BUILD_DIR)/include/asm-ppc; \ + ln -s $(PKG_BUILD_DIR)/include/asm-powerpc $(PKG_BUILD_DIR)/include/asm-ppc; \ + fi endef ifneq (,$(findstring uml,$(BOARD)))