diff options
| author | Masahiro Yamada <[email protected]> | 2022-11-18 19:15:50 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2022-11-22 14:40:02 +0000 |
| commit | a2430b25c31840a6dcbf95c65415d5fee2984dbc (patch) | |
| tree | 279c58348f88232abb0a350fed080547e94163c3 /scripts/Kbuild.include | |
| parent | kbuild: deb-pkg: get rid of |flex:native workaround from Build-Depends (diff) | |
| download | kernel-a2430b25c31840a6dcbf95c65415d5fee2984dbc.tar.gz kernel-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 <[email protected]>
Reviewed-by: Nicolas Schier <[email protected]>
Reviewed-by: Alexander Lobakin <[email protected]>
Tested-by: Alexander Lobakin <[email protected]>
Diffstat (limited to 'scripts/Kbuild.include')
| -rw-r--r-- | scripts/Kbuild.include | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 2bc08ace38a3..cbe28744637b 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -41,6 +41,11 @@ escsq = $(subst $(squote),'\$(squote)',$1) stringify = $(squote)$(quote)$1$(quote)$(squote) ### +# The path to Kbuild or Makefile. Kbuild has precedence over Makefile. +kbuild-dir = $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) +kbuild-file = $(or $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Makefile) + +### # Easy method for doing a status message kecho := : quiet_kecho := echo |
