mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
tools/build: Don't pass test log files to linker
[ Upstream commit 935e7cb5bb80106ff4f2fe39640f430134ef8cd8 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fa1cd3213e
commit
cf7c3d7e87
1 changed files with 5 additions and 1 deletions
|
|
@ -130,6 +130,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
|
||||
|
||||
|
|
@ -140,7 +144,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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue