Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754145AbXJILI4 (ORCPT ); Tue, 9 Oct 2007 07:08:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752327AbXJILIt (ORCPT ); Tue, 9 Oct 2007 07:08:49 -0400 Received: from one.firstfloor.org ([213.235.205.2]:42948 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbXJILIt (ORCPT ); Tue, 9 Oct 2007 07:08:49 -0400 Date: Tue, 9 Oct 2007 13:08:45 +0200 From: Andi Kleen To: Sam Ravnborg Cc: Andi Kleen , kbuild devel , LKML Subject: Re: [RFC/RFT] kbuild: save ARCH & CROSS_COMPILE Message-ID: <20071009110845.GA28570@one.firstfloor.org> References: <20071008200255.GA16497@uranus.ravnborg.org> <20071009100030.GA22475@uranus.ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071009100030.GA22475@uranus.ravnborg.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1255 Lines: 36 On Tue, Oct 09, 2007 at 12:00:30PM +0200, Sam Ravnborg wrote: > On Tue, Oct 09, 2007 at 11:39:21AM +0200, Andi Kleen wrote: > > Sam Ravnborg writes: > > > > > > -ARCH ?= $(SUBARCH) > > > -CROSS_COMPILE ?= > > > > Can you do this in a way that there are still these ARCH/CROSS_COMPILE > > lines that are just overriden when empty or have their default value? > > > > This way defaults could be still patched in for special cases. > > If it is OK to drop the $(SUBARCH) assingment like this then yes. > ARCH ?= > CROSS_COMPILE ?= As long as both UML and normal architectures work still out of the box yes > I was wondering why we had the empty CROSS_COMPILE assigment and this > explains why. > But why patch something in here in the fisrt place? > It seems to be a workaround for the actual issue this patch addresses - no? Mostly. The difference is that Kbuild.config would likely contain other stuff too that might be not fit into a patch? Ok it's not a big difference. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/