Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972AbYFVJvO (ORCPT ); Sun, 22 Jun 2008 05:51:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751468AbYFVJu6 (ORCPT ); Sun, 22 Jun 2008 05:50:58 -0400 Received: from smtp6.pp.htv.fi ([213.243.153.40]:42964 "EHLO smtp6.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435AbYFVJu4 (ORCPT ); Sun, 22 Jun 2008 05:50:56 -0400 Date: Sun, 22 Jun 2008 12:49:07 +0300 From: Adrian Bunk To: David Woodhouse Cc: Peter Korsgaard , linux-kernel@vger.kernel.org, sam@ravnborg.org, dhowells@redhat.com, andi@firstfloor.org, "Kirill A. Shutemov" , ysato@users.sourceforge.jp, takata@linux-m32r.org, linux-m32r@ml.linux-m32r.org, kyle@mcmartin.ca, matthew@wil.cx, grundler@parisc-linux.org, linux-parisc@vger.kernel.org, lethal@linux-sh.org, linux-sh@vger.kernel.org, linux-arch@vger.kernel.org, gerg@uclinux.org Subject: Re: architectures with ARCH_SUPPORTS_AOUT but no binfmt_aout Message-ID: <20080622094907.GF27069@cs181133002.pp.htv.fi> References: <1213565555.26255.522.camel@pmac.infradead.org> <1213604973-7073-1-git-send-email-jacmet@sunsite.dk> <1213617663.26255.708.camel@pmac.infradead.org> <20080616121727.GB10854@cs181133002.pp.htv.fi> <1213619214.26255.721.camel@pmac.infradead.org> <20080617084235.GA20169@cs181133002.pp.htv.fi> <1213696004.26255.960.camel@pmac.infradead.org> <20080617101112.GE20169@cs181133002.pp.htv.fi> <1213702113.26255.996.camel@pmac.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1213702113.26255.996.camel@pmac.infradead.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2222 Lines: 64 On Tue, Jun 17, 2008 at 12:28:33PM +0100, David Woodhouse wrote: > On Tue, 2008-06-17 at 13:11 +0300, Adrian Bunk wrote: > > The pattern for this stuff is to provide a HAVE_AOUT kconfig variable > > that gets select'ed by these architectures. > > http://git.infradead.org/users/dwmw2/aout-2.6.git?a=commitdiff;h=a5db5179 > > Subject: [PATCH] Introduce HAVE_AOUT symbol to remove hard-coded arch list for BINFMT_AOUT > > HAVE_AOUT doesn't quite do the same thing as the recently removed > ARCH_SUPPORTS_AOUT config option. That was set even on platforms where > binfmt_aout isn't supported, although it's not entirely clear why. > > So it's best just to introduce a new symbol, handled consistently with > other similar HAVE_xxx symbols; with a simple 'select' the arch Kconfig. > > Signed-off-by: David Woodhouse > --- > arch/alpha/Kconfig | 1 + > arch/arm/Kconfig | 1 + > arch/m68k/Kconfig | 1 + > arch/x86/Kconfig | 1 + > fs/Kconfig.binfmt | 5 ++++- > 5 files changed, 8 insertions(+), 1 deletions(-) >... > --- a/fs/Kconfig.binfmt > +++ b/fs/Kconfig.binfmt > @@ -59,9 +59,12 @@ config BINFMT_SHARED_FLAT > help > Support FLAT shared libraries > > +config HAVE_AOUT > + def_bool n > + > config BINFMT_AOUT > tristate "Kernel support for a.out and ECOFF binaries" > - depends on (X86_32 || ALPHA || ARM || M68K) > + depends on HAVE_AOUT > ---help--- > A.out (Assembler.OUTput) is a set of formats for libraries and > executables used in the earliest versions of UNIX. Linux used What about m68knommu? I don't know whether it was intentionally available there, but the removal in your patch does not seem to be intentional. > dwmw2 cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- 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/