X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a860e07cbadb8cb81a6c87496e8b88f8883321af..fd8f11bf779cb757b6033ad6ad3b4fd8f5c63397:/toolchain/kernel-headers/Makefile diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index a182c83c1..6e02fe988 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)))