From: Masahiro Yamada Date: Sat, 10 Aug 2019 15:52:58 +0000 (+0900) Subject: kbuild: refactor part-of-module more X-Git-Tag: v5.4-rc1~105^2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=986662b90352d79c4842dd7d4e678f50824ed729;p=thirdparty%2Flinux.git kbuild: refactor part-of-module more Make it even shorter. Signed-off-by: Masahiro Yamada --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index edf84ede803cf..c41206880bf26 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), \