mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 09:54:53 +00:00
8c11133c9d
In the default configuration on MIPS, it reduces the .ipk size from 214k to 207k Signed-off-by: Felix Fietkau <nbd@nbd.name>
28 lines
985 B
Diff
28 lines
985 B
Diff
--- a/scripts/Kbuild.include
|
|
+++ b/scripts/Kbuild.include
|
|
@@ -130,7 +130,7 @@ make-cmd = $(subst \#,\\\#,$(subst $$,$$
|
|
#
|
|
if_changed = $(if $(strip $(filter-out $(PHONY),$?) \
|
|
$(call arg-check, $(cmd_$(1)), $(cmd_$@)) ), \
|
|
- @set -e; \
|
|
+ +@set -e; \
|
|
$(echo-cmd) $(cmd_$(1)); \
|
|
echo 'cmd_$@ := $(make-cmd)' > $(@D)/.$(@F).cmd)
|
|
|
|
@@ -139,7 +139,7 @@ if_changed = $(if $(strip $(filter-out $
|
|
if_changed_dep = $(if $(strip $(filter-out $(PHONY),$?) \
|
|
$(filter-out FORCE $(wildcard $^),$^) \
|
|
$(call arg-check, $(cmd_$(1)), $(cmd_$@)) ), \
|
|
- @set -e; \
|
|
+ +@set -e; \
|
|
$(echo-cmd) $(cmd_$(1)); \
|
|
scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(@D)/.$(@F).tmp; \
|
|
rm -f $(depfile); \
|
|
@@ -150,5 +150,5 @@ if_changed_dep = $(if $(strip $(filter-o
|
|
# and if so will execute $(rule_foo)
|
|
if_changed_rule = $(if $(strip $(filter-out $(PHONY),$?) \
|
|
$(call arg-check, $(cmd_$(1)), $(cmd_$@)) ),\
|
|
- @set -e; \
|
|
+ +@set -e; \
|
|
$(rule_$(1)))
|