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)))