mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-10-01 12:18:33 +03:00
check for empty patch directories
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5086 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f0845034ee
commit
ddbaed92a0
@ -273,7 +273,7 @@ endef
|
|||||||
ifneq ($(strip $(PKG_UNPACK)),)
|
ifneq ($(strip $(PKG_UNPACK)),)
|
||||||
define Build/Prepare/Default
|
define Build/Prepare/Default
|
||||||
$(PKG_UNPACK)
|
$(PKG_UNPACK)
|
||||||
@if [ -d ./patches ]; then \
|
@if [ -d ./patches -a "$$$$(ls ./patches | wc -l)" -gt 0 ]; then \
|
||||||
$(PATCH) $(PKG_BUILD_DIR) ./patches; \
|
$(PATCH) $(PKG_BUILD_DIR) ./patches; \
|
||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user