From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 24 Mar 2025 08:46:28 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <ptxdist-bounces+lore=lore.pengutronix.de@pengutronix.de>) id 1twcVx-003Uwm-1N for lore@lore.pengutronix.de; Mon, 24 Mar 2025 08:46:28 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from <ptxdist-bounces@pengutronix.de>) id 1twcVw-0005Uo-Fj; Mon, 24 Mar 2025 08:46:28 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mol@pengutronix.de>) id 1twcVP-0004B3-TG; Mon, 24 Mar 2025 08:45:55 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <mol@pengutronix.de>) id 1twcVP-001N8z-0h; Mon, 24 Mar 2025 08:45:55 +0100 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from <mol@pengutronix.de>) id 1twcVP-00ACqz-1t; Mon, 24 Mar 2025 08:45:55 +0100 From: Michael Olbrich <m.olbrich@pengutronix.de> To: ptxdist@pengutronix.de Date: Mon, 24 Mar 2025 08:45:55 +0100 Message-Id: <20250324074555.2432682-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250317113146.1862763-2-m.tretter@pengutronix.de> References: <20250317113146.1862763-2-m.tretter@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] kernel/perf: enable zstd support X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List <ptxdist.pengutronix.de> List-Unsubscribe: <https://metis.pengutronix.de/mailman/options/ptxdist>, <mailto:ptxdist-request@pengutronix.de?subject=unsubscribe> List-Archive: <https://metis.pengutronix.de/mailman/private/ptxdist/> List-Post: <mailto:ptxdist@pengutronix.de> List-Help: <mailto:ptxdist-request@pengutronix.de?subject=help> List-Subscribe: <https://metis.pengutronix.de/mailman/listinfo/ptxdist>, <mailto:ptxdist-request@pengutronix.de?subject=subscribe> Reply-To: ptxdist@pengutronix.de Cc: Michael Tretter <m.tretter@pengutronix.de> Sender: "ptxdist" <ptxdist-bounces@pengutronix.de> X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 820411c85ba1d351322162cd8e9998cc54f90c56. Michael [sent from post-receive hook] On Mon, 24 Mar 2025 08:45:55 +0100, Michael Tretter <m.tretter@pengutronix.de> wrote: > The Linux kernel Commit 44b44ffd5dce ("perf build: Minor improvement for > linking libzstd") adds a test if libzstd is installed and uses this as > heuristic if libelf is build with zstd support. Thus, if zstd is > installed, perf cannot be built without zstd support anymore. > > Always build perf with zstd support and make sure that libelf is built > with zstd, too. > > Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> > Message-Id: <20250317113146.1862763-2-m.tretter@pengutronix.de> > Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> > > diff --git a/rules/kernel.in b/rules/kernel.in > index 46c2267b6df3..488b08e25016 100644 > --- a/rules/kernel.in > +++ b/rules/kernel.in > @@ -3,6 +3,7 @@ > menuconfig KERNEL > bool "kernel tools " > select LIBELF if KERNEL_TOOL_PERF > + select LIBELF_ZSTD if KERNEL_TOOL_PERF > select LIBELF_LIBDW if KERNEL_TOOL_PERF > select SLANG if KERNEL_TOOL_PERF > select BINUTILS if KERNEL_TOOL_PERF > diff --git a/rules/kernel.make b/rules/kernel.make > index f38661301d91..19b05811def2 100644 > --- a/rules/kernel.make > +++ b/rules/kernel.make > @@ -229,7 +229,7 @@ KERNEL_TOOL_PERF_OPTS := \ > NO_ZLIB= \ > NO_LIBBABELTRACE=1 \ > NO_LZMA=1 \ > - NO_LIBZSTD=1 \ > + NO_LIBZSTD= \ > NO_AUXTRACE= \ > NO_LIBBPF=1 \ > NO_SDT=1 \