diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-12-11 05:54:47 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-12-13 16:29:10 +0300 |
commit | 6768fa4bcb6c1618248f135d04b9287ba2724ae0 (patch) | |
tree | 0d49fcbba647b32e81d9da19192092dce67485e4 /scripts/Makefile.modfinal | |
parent | a5db80c65dbf9144de155f8a0f08becc9c307db0 (diff) | |
download | linux-6768fa4bcb6c1618248f135d04b9287ba2724ae0.tar.xz |
kbuild: add read-file macro
Since GNU Make 4.2, $(file ...) supports the read operater '<', which
is useful to read a file without forking a new process. No warning is
shown even if the input file is missing.
For older Make versions, it falls back to the cat command.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Tested-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Diffstat (limited to 'scripts/Makefile.modfinal')
-rw-r--r-- | scripts/Makefile.modfinal | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index 4705d32388f3..83f2797e530c 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -13,7 +13,7 @@ include $(srctree)/scripts/Kbuild.include include $(srctree)/scripts/Makefile.lib # find all modules listed in modules.order -modules := $(shell cat $(MODORDER)) +modules := $(call read-file, $(MODORDER)) __modfinal: $(modules) @: |