Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757140AbcCCPK0 (ORCPT ); Thu, 3 Mar 2016 10:10:26 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36368 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067AbcCCPKZ (ORCPT ); Thu, 3 Mar 2016 10:10:25 -0500 Date: Thu, 3 Mar 2016 16:10:21 +0100 From: Ingo Molnar To: Stephen Rothwell Cc: Josh Poimboeuf , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org, Masami Hiramatsu , Adrian Hunter , Michael Ellerman , Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" Subject: Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Message-ID: <20160303151020.GA11570@gmail.com> References: <20160303092134.7c750589@canb.auug.org.au> <55b63eefc347f1bb28573f972d8d1adbf1f1c31d.1456962210.git.jpoimboe@redhat.com> <20160303134314.7098f033@canb.auug.org.au> <20160303032058.GA10338@treble.redhat.com> <20160303143843.6eaf80b5@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160303143843.6eaf80b5@canb.auug.org.au> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1624 Lines: 43 * Stephen Rothwell wrote: > Hi Josh, > > On Wed, 2 Mar 2016 21:20:58 -0600 Josh Poimboeuf wrote: > > > > On Thu, Mar 03, 2016 at 01:43:14PM +1100, Stephen Rothwell wrote: > > > > > > I was wondering if this would be more appropriate in scripts/objtool > > > since it is used during the building of the kernel. Or does it have a > > > wider use? > > > > Yeah, it was actually in the scripts/ dir in earlier revisions of the > > patch set, for that very reason. However, Ingo pointed out that it > > could be useful beyond the kernel, so we graduated it to a "tool". > > > > > > > > We have HOSTCC with its associated HOSTCFLAGS etc ... I am not sure if > > > that is more appropriate (but it does take care of people using clang). > > > > The "tools" are almost completely separate from the rest of the kernel. > > They have their own scaled-down version of kbuild, which doesn't have > > HOSTCC. > > > > But yeah, we might eventually need to copy some of the host compilation > > infrastructure from scripts/Makefile.host over to the tools/ side. > > That all sounds sane, thanks. > > I did not add this to linux-next today, but may tomorrow if people > think it is sensible to do so (for testing on a powerpcle host). If I > do, I will just back out to the previous patch if it all goes south (so > it won't impact on the rest of the tip tree's testing). I'll add Josh's fixes to -tip ASAP as well, so hopefully soon you can drop all linux-next specific patches related to this and it will all work Just Fine (tm). Sorry about the breakage! Thanks, Ingo