projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99476fa
)
tools/build: Don't pass test log files to linker
author
Ian Rogers
<irogers@google.com>
Tue, 11 Mar 2025 21:36:23 +0000
(14:36 -0700)
committer
Namhyung Kim
<namhyung@kernel.org>
Mon, 24 Mar 2025 16:38:20 +0000
(09:38 -0700)
Separate test log files from object files. Depend on test log output
but don't pass to the linker.
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Link:
https://lore.kernel.org/r/20250311213628.569562-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/build/Makefile.build
patch
|
blob
|
blame
|
history
diff --git
a/tools/build/Makefile.build
b/tools/build/Makefile.build
index e710ed67a1b49d9fda11db02821bbd8d36066b44..3584ff30860786a848cdca684c636f916e2ed56e 100644
(file)
--- a/
tools/build/Makefile.build
+++ b/
tools/build/Makefile.build
@@
-129,6
+129,10
@@
objprefix := $(subst ./,,$(OUTPUT)$(dir)/)
obj-y := $(addprefix $(objprefix),$(obj-y))
subdir-obj-y := $(addprefix $(objprefix),$(subdir-obj-y))
+# Separate out test log files from real build objects.
+test-y := $(filter %_log, $(obj-y))
+obj-y := $(filter-out %_log, $(obj-y))
+
# Final '$(obj)-in.o' object
in-target := $(objprefix)$(obj)-in.o
@@
-139,7
+143,7
@@
$(subdir-y):
$(sort $(subdir-obj-y)): $(subdir-y) ;
-$(in-target): $(obj-y) FORCE
+$(in-target): $(obj-y)
$(test-y)
FORCE
$(call rule_mkdir)
$(call if_changed,$(host)ld_multi)