From: Matthias Schiffer Date: Tue, 6 Mar 2018 20:55:01 +0000 (+0100) Subject: include/package-defaults.mk: fix default Build/Prepare with empty ./src X-Git-Tag: v17.01.5~63 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b47094ce96ffcab8c1b6b0d5f4736a616b69a9ec;p=openwrt%2Fstaging%2Fpepe2k.git 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 --- diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 6672b67b53..05ed05d0c6 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