Skip to content

Commit

Permalink
kbuild: refactor part-of-module more
Browse files Browse the repository at this point in the history
Make it even shorter.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
  • Loading branch information
masahir0y committed Aug 14, 2019
1 parent 16b59cd commit 986662b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -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), \
Expand Down

0 comments on commit 986662b

Please sign in to comment.