Skip to content

Commit

Permalink
kbuild: remove unneeded variable, single-all
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masahir0y committed Nov 11, 2019
1 parent f276031 commit 35e046a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
@:
Expand Down

0 comments on commit 35e046a

Please sign in to comment.