summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-10-16 14:12:15 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-11 20:10:01 +0900
commit35e046a203ee3bc8ba9ae3561b50de02646dfb81 (patch)
tree3f2c1072130164d9a7ee8f477eec96ac1d1138c6 /Makefile
parentf276031b4e2f4c961ed6d8a42f0f0124ccac2e09 (diff)
downloadlinux-35e046a203ee3bc8ba9ae3561b50de02646dfb81.tar.bz2
kbuild: remove unneeded variable, single-all
When single-build is set, everything in $(MAKECMDGOALS) is a single target. You can use $(MAKECMDGOALS) to list out the single targets. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1d5298356ea8..765a2b5bdada 100644
--- a/Makefile
+++ b/Makefile
@@ -1764,11 +1764,9 @@ tools/%: FORCE
ifdef single-build
-single-all := $(filter $(single-targets), $(MAKECMDGOALS))
-
# .ko is special because modpost is needed
-single-ko := $(sort $(filter %.ko, $(single-all)))
-single-no-ko := $(sort $(patsubst %.ko,%.mod, $(single-all)))
+single-ko := $(sort $(filter %.ko, $(MAKECMDGOALS)))
+single-no-ko := $(sort $(patsubst %.ko,%.mod, $(MAKECMDGOALS)))
$(single-ko): single_modpost
@: