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

kbuild: refactor part-of-module more



Make it even shorter.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 16b59cd7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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),                           \