diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-22 04:00:00 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-05-25 17:03:16 +0200 |
commit | 6ba3bcb01393777d38c8b466249e4a3e6ffc8adb (patch) | |
tree | eca2085fa658d9dfda10b0cea5ce855d866ee092 /scripts/Makefile.build | |
parent | kbuild: clear KBUILD_MODULES in top Makefile if CONFIG_MODULES=n (diff) | |
download | linux-6ba3bcb01393777d38c8b466249e4a3e6ffc8adb.tar.xz linux-6ba3bcb01393777d38c8b466249e4a3e6ffc8adb.zip |
kbuild: move subdir-obj-y to scripts/Makefile.build
Save $(addprefix ...) for subdir-obj-y.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index f46d25441804..ee283efc1b45 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -69,6 +69,8 @@ endif # =========================================================================== +subdir-obj-y := $(filter %/built-in.a, $(real-obj-y)) + ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),) lib-target := $(obj)/lib.a endif |