Commit 986662b9 authored by Masahiro Yamada's avatar Masahiro Yamada

kbuild: refactor part-of-module more

Make it even shorter.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 16b59cd7
......@@ -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), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment