projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad85464
)
build: make the touch .autoremove call non-fatal
author
Felix Fietkau
<
[email protected]
>
Tue, 24 Jan 2017 12:55:52 +0000
(13:55 +0100)
committer
Felix Fietkau
<
[email protected]
>
Tue, 24 Jan 2017 12:55:55 +0000
(13:55 +0100)
Fixes build issues when there is nothing to do on the compile step (e.g.
with unselected packages).
Signed-off-by: Felix Fietkau <
[email protected]
>
include/package.mk
patch
|
blob
|
history
diff --git
a/include/package.mk
b/include/package.mk
index 01c0333b06934c8bcf81d3ac1e5dfe7a425eb34b..91871f06fbebf24245df3467757175cd1ed6aa51 100644
(file)
--- a/
include/package.mk
+++ b/
include/package.mk
@@
-216,7
+216,7
@@
define Build/CoreTargets
ifneq ($(CONFIG_AUTOREMOVE),)
compile:
- touch $(PKG_BUILD_DIR)/.autoremove
+ -touch $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null
$(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | \
$(XARGS) rm -rf
endif