[openwrt/openwrt] include/package-defaults.mk: fix default Build/Prepare with empty ./src

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 7 01:54:42 PST 2018


neoraider pushed a commit to openwrt/openwrt.git, branch lede-17.01:
https://git.lede-project.org/b47094ce96ffcab8c1b6b0d5f4736a616b69a9ec

commit b47094ce96ffcab8c1b6b0d5f4736a616b69a9ec
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Tue Mar 6 21:55:01 2018 +0100

    include/package-defaults.mk: fix default Build/Prepare with empty ./src
    
    Copying ./src/* would fail when src exists, but is empty or only contains
    hidden files.
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 include/package-defaults.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/package-defaults.mk b/include/package-defaults.mk
index 6672b67..05ed05d 100644
--- a/include/package-defaults.mk
+++ b/include/package-defaults.mk
@@ -62,7 +62,7 @@ Build/Patch:=$(Build/Patch/Default)
 ifneq ($(strip $(PKG_UNPACK)),)
   define Build/Prepare/Default
 	$(PKG_UNPACK)
-	[ ! -d ./src/ ] || $(CP) ./src/* $(PKG_BUILD_DIR)
+	[ ! -d ./src/ ] || $(CP) ./src/. $(PKG_BUILD_DIR)
 	$(Build/Patch)
   endef
 endif



More information about the lede-commits mailing list