summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-01-03 14:31:41 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2015-01-03 14:31:41 +0100
commit8b3f733f44cf60d97e2f86f13191600221d283f6 (patch)
treed9b75c72cb93175c427f8430b95a08c7cb738c22
parent3ad968506a1d49f1d98048f11717305daa30c865 (diff)
downloadtomato-8b3f733f44cf60d97e2f86f13191600221d283f6.tar.gz
tomato-8b3f733f44cf60d97e2f86f13191600221d283f6.tar.bz2
busybox Makefile mixes implicit and normal rules. Never makes don't like
this: split the rule in two with identical commands
-rw-r--r--release/src/router/busybox/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/release/src/router/busybox/Makefile b/release/src/router/busybox/Makefile
index f907eaae..eb7e6d00 100644
--- a/release/src/router/busybox/Makefile
+++ b/release/src/router/busybox/Makefile
@@ -419,7 +419,12 @@ ifeq ($(config-targets),1)
-include $(srctree)/arch/$(ARCH)/Makefile
export KBUILD_DEFCONFIG
-config %config: scripts_basic outputmakefile FORCE
+config: scripts_basic outputmakefile FORCE
+ $(Q)mkdir -p include
+ $(Q)$(MAKE) $(build)=scripts/kconfig $@
+ $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
+
+%config: scripts_basic outputmakefile FORCE
$(Q)mkdir -p include
$(Q)$(MAKE) $(build)=scripts/kconfig $@
$(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease
@@ -1267,7 +1272,10 @@ endif
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
# Modules
-/ %/: prepare scripts FORCE
+/: prepare scripts FORCE
+ $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
+ $(build)=$(build-dir)
+%/: prepare scripts FORCE
$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
$(build)=$(build-dir)
%.ko: prepare scripts FORCE