From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iNttH-0002uR-2z for ptxdist@pengutronix.de; Fri, 25 Oct 2019 09:20:07 +0200 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1iNttG-0000w9-RI for ptxdist@pengutronix.de; Fri, 25 Oct 2019 09:20:06 +0200 Date: Fri, 25 Oct 2019 09:20:06 +0200 From: Michael Olbrich Message-ID: <20191025072006.GB30823@pengutronix.de> References: <20190911150601.16400-1-bst@pengutronix.de> <20190912150537.nurdqltm4kagx3ls@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190912150537.nurdqltm4kagx3ls@pengutronix.de> Subject: Re: [ptxdist] [PATCH] kernel: do not select binutils List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Thu, Sep 12, 2019 at 05:05:37PM +0200, Roland Hieber wrote: > On Wed, Sep 11, 2019 at 05:06:01PM +0200, Bastian Krause wrote: > > binutils is not used in perf tools (anymore?), so do not select it. > > > > Signed-off-by: Bastian Krause > > --- > > rules/kernel.in | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/rules/kernel.in b/rules/kernel.in > > index 817481577..4d264c8ba 100644 > > --- a/rules/kernel.in > > +++ b/rules/kernel.in > > @@ -5,7 +5,6 @@ menuconfig KERNEL > > select LIBELF if KERNEL_TOOL_PERF > > select LIBELF_LIBDW if KERNEL_TOOL_PERF > > select SLANG if KERNEL_TOOL_PERF > > - select BINUTILS if KERNEL_TOOL_PERF > > select LIBUNWIND if KERNEL_TOOL_PERF > > This depends on which kernel version you use in the platformconfig. > Could you find out since when binutils is no longer needed? Sorry, that was my fault. I checked on BSP and noticed that libbfd was not actually used so I suggested this. And I've used perf in this project without noticing any missing feature. However, with another BSP libbfd is actually found. I've don't know what the difference is. I've also looked at the code. It seems libbfd is used for 'addr2line()'. Does anyone know what this is for? The fallback (if libbfd is not found) is to call the 'addr2line' program (not installed by ptxdist either). So, should we keep the dependency (and fix it as needed) or drop it? Regards, Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de