summaryrefslogtreecommitdiff
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-05-22 11:00:00 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-05-26 00:03:16 +0900
commit6ba3bcb01393777d38c8b466249e4a3e6ffc8adb (patch)
treeeca2085fa658d9dfda10b0cea5ce855d866ee092 /scripts/Makefile.build
parentb480fec988b051df792633e99bf622fc63a305f6 (diff)
downloadlwn-6ba3bcb01393777d38c8b466249e4a3e6ffc8adb.tar.gz
lwn-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.build2
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