]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
kbuild: clean up subdir-ymn calculation in Makefile.clean
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Aug 2019 01:31:39 +0000 (10:31 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 29 Aug 2019 14:54:29 +0000 (23:54 +0900)
Remove some variables.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.clean

index fc38a34128d4c1e82ec24445d942cbb00799a26f..e367eb95c5c0809ca57ac991c937df9696b583d0 100644 (file)
@@ -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