diff options
author | Masahiro Yamada | 2019-08-25 10:31:39 +0900 |
---|---|---|
committer | Masahiro Yamada | 2019-08-29 23:54:29 +0900 |
commit | 4ca76945b037cf93648170ff8cb958dbf1040374 (patch) | |
tree | e036069ada804daf105032ef6c2c4fb14b850242 /scripts/Makefile.clean | |
parent | 687ac1fa3164c75a3e1053ed8609f3a4e7a6186e (diff) |
kbuild: clean up subdir-ymn calculation in Makefile.clean
Remove some variables.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.clean')
-rw-r--r-- | scripts/Makefile.clean | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index fc38a34128d4..e367eb95c5c0 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -17,17 +17,8 @@ include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild, $(kbuild-di # Figure out what we need to build from the various variables # ========================================================================== -__subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) -subdir-y += $(__subdir-y) -__subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m))) -subdir-m += $(__subdir-m) -__subdir- := $(patsubst %/,%,$(filter %/, $(obj-))) -subdir- += $(__subdir-) - -# Subdirectories we need to descend into - -subdir-ym := $(sort $(subdir-y) $(subdir-m)) -subdir-ymn := $(sort $(subdir-ym) $(subdir-)) +subdir-ymn := $(sort $(subdir-y) $(subdir-m) $(subdir-) \ + $(patsubst %/,%, $(filter %/, $(obj-y) $(obj-m) $(obj-)))) # Add subdir path |