build: copy contents of 'src' folder to build dirs (if present)
[openwrt/staging/yousong.git] / include / host-build.mk
index 72b3259..56e0e4e 100644 (file)
@@ -43,6 +43,7 @@ Host/Patch:=$(Host/Patch/Default)
 ifneq ($(strip $(HOST_UNPACK)),)
   define Host/Prepare/Default
        $(HOST_UNPACK)
+       [ ! -d ./src/ ] || $(CP) ./src/* $(HOST_BUILD_DIR)
        $(Host/Patch)
   endef
 endif