mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Adrian Bunk <bunk@kernel.org>
Cc: Peter Korsgaard <jacmet@sunsite.dk>,
	linux-kernel@vger.kernel.org, sam@ravnborg.org,
	dhowells@redhat.com, andi@firstfloor.org,
	"Kirill A. Shutemov" <k.shutemov@gmail.com>,
	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
Subject: Re: architectures with ARCH_SUPPORTS_AOUT but no binfmt_aout
Date: Tue, 17 Jun 2008 12:28:33 +0100	[thread overview]
Message-ID: <1213702113.26255.996.camel@pmac.infradead.org> (raw)
In-Reply-To: <20080617101112.GE20169@cs181133002.pp.htv.fi>

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 <dwmw2@infradead.org>
---
 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(-)

diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 207196e..f80e548 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -7,6 +7,7 @@ config ALPHA
 	default y
 	select HAVE_IDE
 	select HAVE_OPROFILE
+	select HAVE_AOUT
 	help
 	  The Alpha is a 64-bit general-purpose processor designed and
 	  marketed by the Digital Equipment Corporation of blessed memory,
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8fd3ab3..2be8bd7 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -14,6 +14,7 @@ config ARM
 	select HAVE_OPROFILE
 	select HAVE_KPROBES if (!XIP_KERNEL)
 	select HAVE_KRETPROBES if (HAVE_KPROBES)
+	select HAVE_AOUT
 	help
 	  The ARM series is a line of low-power-consumption RISC chip designs
 	  licensed by ARM Ltd and targeted at embedded applications and
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig
index bfb6395..83c4338 100644
--- a/arch/m68k/Kconfig
+++ b/arch/m68k/Kconfig
@@ -6,6 +6,7 @@ config M68K
 	bool
 	default y
 	select HAVE_IDE
+	select HAVE_AOUT
 
 config MMU
 	bool
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 8fdaa70..bd066ae 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -25,6 +25,7 @@ config X86
 	select HAVE_KRETPROBES
 	select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
 	select HAVE_ARCH_KGDB if !X86_VOYAGER
+	select HAVE_AOUT if X86_32
 
 config ARCH_DEFCONFIG
 	string
diff --git a/fs/Kconfig.binfmt b/fs/Kconfig.binfmt
index 0999d5c..5592e08 100644
--- 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
-- 
1.5.5.1


-- 
dwmw2


  parent reply	other threads:[~2008-06-17 11:29 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-15 21:07 [PATCH] export linux/a.out.h Peter Korsgaard
2008-06-15 21:32 ` David Woodhouse
2008-06-16  8:29   ` [PATCH v2] " Peter Korsgaard
2008-06-16 12:01     ` David Woodhouse
2008-06-16 12:17       ` Adrian Bunk
2008-06-16 12:26         ` David Woodhouse
2008-06-17  8:42           ` architectures with ARCH_SUPPORTS_AOUT but no binfmt_aout Adrian Bunk
2008-06-17  9:46             ` David Woodhouse
2008-06-17 10:11               ` Adrian Bunk
2008-06-17 10:18                 ` David Woodhouse
2008-06-17 10:24                   ` Adrian Bunk
2008-06-17 11:28                 ` David Woodhouse [this message]
2008-06-17 12:23                   ` Sam Ravnborg
2008-06-17 12:29                     ` David Woodhouse
2008-06-17 12:37                       ` Sam Ravnborg
2008-06-17 12:54                         ` David Woodhouse
2008-06-22  9:49                   ` Adrian Bunk
2008-06-22 11:40                     ` David Woodhouse
2008-06-22 23:53                       ` David McCullough
2008-06-24 11:46                       ` Adrian Bunk
2008-06-27 16:27                         ` Jeff Dike
2008-06-27 21:12               ` [2.6 patch] remove unused asm/a.out.h files Adrian Bunk
2008-09-05 16:27               ` [PATCH 1/2] Remove redundant CONFIG_ARCH_SUPPORTS_AOUT David Woodhouse
2008-09-05 16:28                 ` Kyle McMartin
2008-09-05 17:17                   ` [PATCH 3/2] Remove asm/a.out.h files for all architectures without a.out support David Woodhouse
2008-09-05 17:17                   ` [PATCH 1/2] Remove redundant CONFIG_ARCH_SUPPORTS_AOUT David Woodhouse
2008-09-05 16:27               ` [PATCH 2/2] Introduce HAVE_AOUT symbol to remove hard-coded arch list for BINFMT_AOUT David Woodhouse
2008-06-17 11:28             ` architectures with ARCH_SUPPORTS_AOUT but no binfmt_aout Matthew Wilcox
2008-06-24  4:15             ` Paul Mundt
2008-06-16 13:48         ` [PATCH v2] export linux/a.out.h David Howells
2008-06-16 15:47           ` David Woodhouse
2008-06-16 12:20       ` Peter Korsgaard
2008-06-16 11:11         ` [PATCH 1/4] Include <asm/a.out.h> in fs/exec.c only for Alpha David Woodhouse
2008-06-16 11:18         ` [PATCH 2/4] Remove last traces of a.out support from ELF loader David Woodhouse
2008-06-16 11:18         ` [PATCH 3/4] Remove #ifdef CONFIG_ARCH_SUPPORTS_AOUT from <linux/a.out.h> David Woodhouse
2008-06-16 11:24         ` [PATCH 4/4] Export <linux/a.out.h> to userspace again David Woodhouse
2008-06-16 13:22         ` [PATCH v2] export linux/a.out.h David Woodhouse
2008-06-16 14:40       ` Andi Kleen
2008-06-16 15:15         ` David Woodhouse
2008-06-15 22:33 ` [PATCH] " Arjan van de Ven
2008-06-16  7:03   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1213702113.26255.996.camel@pmac.infradead.org \
    --to=dwmw2@infradead.org \
    --cc=andi@firstfloor.org \
    --cc=bunk@kernel.org \
    --cc=dhowells@redhat.com \
    --cc=grundler@parisc-linux.org \
    --cc=jacmet@sunsite.dk \
    --cc=k.shutemov@gmail.com \
    --cc=kyle@mcmartin.ca \
    --cc=lethal@linux-sh.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m32r@ml.linux-m32r.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=matthew@wil.cx \
    --cc=sam@ravnborg.org \
    --cc=takata@linux-m32r.org \
    --cc=ysato@users.sourceforge.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®