From: Masahiro Yamada Date: Wed, 16 Oct 2019 05:12:15 +0000 (+0900) Subject: kbuild: remove unneeded variable, single-all X-Git-Tag: microblaze-v5.6-rc1~72^2~45 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;ds=sidebyside;h=35e046a203ee3bc8ba9ae3561b50de02646dfb81;p=linux-2.6-microblaze.git 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 --- 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 @: