[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z5Qi5olV2yy2-TJ8@google.com>
Date: Fri, 24 Jan 2025 15:31:50 -0800
From: Namhyung Kim <namhyung@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>,
James Clark <james.clark@...aro.org>,
John Garry <john.g.garry@...cle.com>,
Athira Jajeev <atrajeev@...ux.vnet.ibm.com>,
Veronika Molnarova <vmolnaro@...hat.com>,
Ze Gao <zegao2021@...il.com>, linux-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org
Subject: Re: [PATCH v1 1/6] tools/build: Don't pass test log files to linker
On Fri, Oct 25, 2024 at 10:22:58AM -0700, Ian Rogers wrote:
> Separate test log files from object files. Depend on test log output
> but don't pass to the linker.
I don't know why $(obj-y) contains log files in the first place. It's
supposed to have .o files only, right?
Thanks,
Namhyung
>
> Signed-off-by: Ian Rogers <irogers@...gle.com>
> ---
> tools/build/Makefile.build | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/tools/build/Makefile.build b/tools/build/Makefile.build
> index 5fb3fb3d97e0..ffe988867703 100644
> --- a/tools/build/Makefile.build
> +++ b/tools/build/Makefile.build
> @@ -149,6 +149,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
>
> @@ -159,7 +163,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)
>
> --
> 2.47.0.163.g1226f6d8fa-goog
>
Powered by blists - more mailing lists