diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-18 20:15:50 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-22 15:40:02 +0100 |
commit | a2430b25c31840a6dcbf95c65415d5fee2984dbc (patch) | |
tree | 279c58348f88232abb0a350fed080547e94163c3 /scripts/Makefile.modpost | |
parent | kbuild: deb-pkg: get rid of |flex:native workaround from Build-Depends (diff) | |
download | linux-a2430b25c31840a6dcbf95c65415d5fee2984dbc.tar.xz linux-a2430b25c31840a6dcbf95c65415d5fee2984dbc.zip |
kbuild: add kbuild-file macro
While building, installing, cleaning, Kbuild visits sub-directories
and includes 'Kbuild' or 'Makefile' that exists there.
Add 'kbuild-file' macro, and reuse it from scripts/Makefie.*
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Reviewed-by: Alexander Lobakin <alobakin@pm.me>
Tested-by: Alexander Lobakin <alobakin@pm.me>
Diffstat (limited to 'scripts/Makefile.modpost')
-rw-r--r-- | scripts/Makefile.modpost | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index e41dee64d429..55a72f5eb76d 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -93,7 +93,7 @@ obj := $(KBUILD_EXTMOD) src := $(obj) # Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS -include $(or $(wildcard $(src)/Kbuild), $(src)/Makefile) +include $(kbuild-file) module.symvers-if-present := $(wildcard Module.symvers) output-symdump := $(KBUILD_EXTMOD)/Module.symvers |