Return-Path: Received: from dan.rpsys.net (dan.rpsys.net [93.97.175.187]) by mail.openembedded.org (Postfix) with ESMTP id DB46D6C8C7 for ; Wed, 18 Sep 2013 16:02:47 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r8IGH4BN012009; Wed, 18 Sep 2013 17:17:05 +0100 X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZgmSDrgHPPSw; Wed, 18 Sep 2013 17:17:04 +0100 (BST) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id r8IGH0Db012001 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 18 Sep 2013 17:17:02 +0100 Message-ID: <1379520153.18603.27.camel@ted> From: Richard Purdie To: Bruce Ashfield Date: Wed, 18 Sep 2013 17:02:33 +0100 In-Reply-To: References: <1379512264-8755-1-git-send-email-otavio@ossystems.com.br> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: Enrico Scholz , Otavio Salvador , Patches and discussions about the oe-core layer Subject: Re: [PATCH] perf: Add LDFLAGS to allow build of old kernels without patching X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2013 16:02:49 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2013-09-18 at 11:54 -0400, Bruce Ashfield wrote: > On Wed, Sep 18, 2013 at 11:44 AM, Enrico Scholz > wrote: > > Otavio Salvador writes: > > > >> I don't agree on this. perf is tied to kernel and part of its code so > >> I think same exception rule apply for it as well. > > > > perf ships with the kernel but is a pure userspace program. It does not > > require any special setup ('make configure'), it links against complex > > userspace gui frameworks and uses userspace headers. > > yes, we realize this .. we have a long a complicated history with perf and the > related build issues. > > We are stating our general policy, interfere with it's build as little > as possible. > Use extension variables, not clobber variables, etc. > > Otherwise, we end up creating our own issues, and have the bugs to prove it :) For the record, I do think Enrico does have a valid point here. We do put things in CFLAGS and LDFLAGS which we expect *all* userspace to be built with. Things like the hash style, preferred debugging symbol options and so on are expected to be used for all userspace binaries. So somehow we do need to ensure that when the kernel is building userspace binaries, it does use the options we expect and match the rest of the system. Equally, I do understand the kernel build system is a complex beast in its own right. We don't have to solve this instantly, but in general its considered a bug if things like the hash-style in LDFLAGS don't make it to the linker commandline. We do have QA tests that check for this, however they don't function as they used to since we hard set the option on when we compile the linker now :/. Cheers, Richard