瀏覽代碼

allow for target/<DEV>/files to be empty/non-existent

Phil Sutter 14 年之前
父節點
當前提交
15b59cb40c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      package/base-files/Makefile

+ 2 - 1
package/base-files/Makefile

@@ -26,7 +26,8 @@ INSTALL_STYLE:=		manual
 
 do-install:
 	$(CP) ./src/* $(IDIR_BASE_FILES)
-	$(CP) $(TOPDIR)/target/$(ADK_TARGET)/files/* $(IDIR_BASE_FILES)
+	# allow this to fail, as there might be no target-specific files to copy
+	-$(CP) $(TOPDIR)/target/$(ADK_TARGET)/files/* $(IDIR_BASE_FILES)
 ifeq (${ADK_TARGET_ROOTFS_NFSROOT},y)
 	@-rm $(IDIR_BASE_FILES)/etc/network/interfaces
 endif