Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261993AbUKDAMT (ORCPT ); Wed, 3 Nov 2004 19:12:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261971AbUKDAIQ (ORCPT ); Wed, 3 Nov 2004 19:08:16 -0500 Received: from scrub.xs4all.nl ([194.109.195.176]:61069 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S261993AbUKDAGD (ORCPT ); Wed, 3 Nov 2004 19:06:03 -0500 Date: Thu, 4 Nov 2004 01:06:00 +0100 (CET) From: Roman Zippel X-X-Sender: roman@scrub.home To: Blaisorblade cc: Tom Rini , linux-kernel@vger.kernel.org, julian@sektor37.de, mcr@sandelman.ottawa.on.ca, sam@ravnborg.org Subject: Re: [patch 2/2] kbuild: fix crossbuild base config In-Reply-To: <200411032132.37947.blaisorblade_spam@yahoo.it> Message-ID: References: <20041102232001.370174C0BC@zion.localdomain> <20041103183415.GH381@smtp.west.cox.net> <200411032132.37947.blaisorblade_spam@yahoo.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1379 Lines: 36 Hi, On Wed, 3 Nov 2004, Blaisorblade wrote: > You later say "If possible, I'd avoid this patch at all". Why? Is this code > too intrusive, or implementing a wrong check, or bloating the source? It adds a special case to the kconfig core to make it behave differently, but it shouldn't behave differently depending on how the kernel is compiled. > > > E.g. if someone wrote a patch which stores the arch in .config and warns/ > > > refuses to load it for a different configuration, I would accept it > > > happily. > Yes, this is another idea, which is also fine, while not excluding the other > IMHO. This is the better solution, because it solves the more general problem, when a .config doesn't match the Kconfig and not just your special case. > > We already have part of this, except I don't know for certain of > > CONFIG_ARCH == CONFIG_$(SUBARCH) (... to mix syntax all the hell up). > > No warning is output. Or better, yes, you get warnings, but tons of not clear > ones, like "warning, undefined symbol". I don't really expect to use CONFIG_$(SUBARCH) and rather add a real CONFIG_ARCH to Kconfig. bye, Roman - 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/