From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758236AbYEYBbr (ORCPT ); Sat, 24 May 2008 21:31:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754380AbYEYBbh (ORCPT ); Sat, 24 May 2008 21:31:37 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42692 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751526AbYEYBbg (ORCPT ); Sat, 24 May 2008 21:31:36 -0400 Date: Sat, 24 May 2008 18:30:40 -0700 (PDT) From: Linus Torvalds To: Sam Ravnborg cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , linux-kbuild , LKML , Andrew Morton , Roman Zippel , Jeremy Fitzhardinge Subject: Re: [PATCH] x86: use defconfig as last resort In-Reply-To: <20080524203748.GA2343@uranus.ravnborg.org> Message-ID: References: <20080524192540.GA28067@uranus.ravnborg.org> <20080524203748.GA2343@uranus.ravnborg.org> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 24 May 2008, Sam Ravnborg wrote: > > When using "make oldconfig" with no .config > present try the list from init/Kconfig DEFCONFIG_LIST > before resorting to use one of the defconfigs. Hmm. Why does placement matter here? Also: > +config DEFCONFIG_LIST > + string > + depends on X86_32 > + option defconfig_list > + default "arch/x86/configs/i386_defconfig" > + > +config DEFCONFIG_LIST > + string > + depends on X86_64 > + option defconfig_list > + default "arch/x86/configs/x86_64_defconfig" > + Wouldn't this be cleaner as just *one* entry, and then just have different default statements, ie something like config DEFCONFIG_LIST string option defconfig_list default "arch/x86/configs/i386_defconfig" if X86_32 default "arch/x86/configs/x86_64_defconfig" if X86_64 instead? Linus