summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-30 13:04:13 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-04-01 03:06:00 +0200
commit6b1a9a02c72fdb6e1d67949bb01b66e07d88ace9 (patch)
tree642a738532be01b8568acbe50b37d587fe8031d2
parentkbuild: fix warning "overriding recipe for target 'Makefile'" (diff)
downloadlinux-6b1a9a02c72fdb6e1d67949bb01b66e07d88ace9.tar.xz
linux-6b1a9a02c72fdb6e1d67949bb01b66e07d88ace9.zip
kbuild: pass $(MAKECMDGOALS) to sub-make as is
Manipulating $(MAKECMDGOALS) for sub-make seems odd to me. [1] 'make O=foo sub-make' is turned into 'make O=foo', which builds the default targets. It would make sense to terminate the build with: *** No rule to make target 'sub-make'. Stop. [2] 'make O=foo defconfig _all' is turned into 'make O=foo defconfig', which changes the behavior. Let's pass $(MAKECMDGOALS) as is. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f30b37569f5d..16c77f6cc343 100644
--- a/Makefile
+++ b/Makefile
@@ -168,7 +168,7 @@ $(filter-out _all sub-make $(lastword $(MAKEFILE_LIST)), $(MAKECMDGOALS)) _all:
sub-make:
$(Q)$(MAKE) \
$(if $(KBUILD_OUTPUT),-C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR)) \
- -f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS))
+ -f $(CURDIR)/Makefile $(MAKECMDGOALS)
endif # need-sub-make
endif # sub_make_done