diff options
author | Hamish Guthrie <hcg@openwrt.org> | 2008-10-09 11:33:47 +0000 |
---|---|---|
committer | Hamish Guthrie <hcg@openwrt.org> | 2008-10-09 11:33:47 +0000 |
commit | 31b995b49c3ffad7e57ed00a21d1fd607397cd04 (patch) | |
tree | 854d9d4b059f02de86dca92010c7f73fe92562ea /toolchain/kernel-headers | |
parent | 73e619b530765dd9e67a2f33fce132352ff251d3 (diff) | |
download | upstream-31b995b49c3ffad7e57ed00a21d1fd607397cd04.tar.gz upstream-31b995b49c3ffad7e57ed00a21d1fd607397cd04.tar.bz2 upstream-31b995b49c3ffad7e57ed00a21d1fd607397cd04.zip |
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12933 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/kernel-headers')
-rw-r--r-- | toolchain/kernel-headers/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
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))) |