]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
kbuild: refactor part-of-module more
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 10 Aug 2019 15:52:58 +0000 (00:52 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 14 Aug 2019 17:25:11 +0000 (02:25 +0900)
Make it even shorter.

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

index edf84ede803cf02bf9c45bca6d6dd5943b5834a2..c41206880bf26ceb1525ce12759d84bb61835ba0 100644 (file)
@@ -98,8 +98,7 @@ endif
 # ---------------------------------------------------------------------------
 
 # Default is built-in, unless we know otherwise
-$(foreach x, i ll lst o s symtypes, $(patsubst %.o,%.$(x),$(real-obj-m))): \
-       part-of-module := y
+part-of-module = $(if $(filter $(basename $@).o, $(real-obj-m)),y)
 
 modkern_cflags =                                          \
        $(if $(part-of-module),                           \