diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-10 17:52:58 +0200 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-14 19:25:11 +0200 |
commit | 986662b90352d79c4842dd7d4e678f50824ed729 (patch) | |
tree | a54f9405a769f4654e67582ec19e57fa859a2aa8 /scripts | |
parent | kbuild: move the Module.symvers check for external module build (diff) | |
download | linux-986662b90352d79c4842dd7d4e678f50824ed729.tar.xz linux-986662b90352d79c4842dd7d4e678f50824ed729.zip |
kbuild: refactor part-of-module more
Make it even shorter.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index edf84ede803c..c41206880bf2 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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), \ |