mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
kbuild: refactor part-of-module more
Make it even shorter. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
16b59cd785
commit
986662b903
@ -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), \
|
||||
|
Loading…
Reference in New Issue
Block a user