Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Tuesday, April 22, 2008 - 8:12 am

On Tue, 22 Apr 2008 13:13:39 +0100 Will Newton wrote:


Is there any reason that this couldn't (and shouldn't) be done
in the Kconfig space and done as documented in
Documentation/kbuild/kconfig-language.txt ?

<quote:>
Adding common features and make the usage configurable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is a common idiom to implement a feature/functionality that are
relevant for some architectures but not all.
The recommended way to do so is to use a config variable named HAVE_*
that is defined in a common Kconfig file and selected by the relevant
architectures.
An example is the generic IOMAP functionality.

We would in lib/Kconfig see:

# Generic IOMAP is used to ...
config HAVE_GENERIC_IOMAP

config GENERIC_IOMAP
	depends on HAVE_GENERIC_IOMAP && FOO

And in lib/Makefile we would see:
obj-$(CONFIG_GENERIC_IOMAP) += iomap.o

For each architecture using the generic IOMAP functionality we would see:

config X86
	select ...
	select HAVE_GENERIC_IOMAP
	select ...



---
~Randy
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 5:13 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Tue Apr 22, 6:15 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Randy Dunlap, (Tue Apr 22, 8:12 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 8:16 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:21 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:24 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Tue Apr 22, 8:34 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Tue Apr 22, 8:38 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:38 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Tue Apr 22, 8:42 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Wed Apr 23, 7:36 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Arnd Bergmann, (Wed Apr 23, 7:59 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Kyle McMartin, (Wed Apr 23, 8:40 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Wed Apr 23, 8:50 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 9:05 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 10:59 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Sam Ravnborg, (Wed Apr 23, 11:44 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Michal Simek, (Wed Apr 23, 2:16 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Mike Frysinger, (Wed Apr 23, 2:38 pm)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Will Newton, (Thu Apr 24, 2:18 am)
microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 4:11 am)
Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS, Adrian Bunk, (Thu Apr 24, 7:51 am)
Re: microblaze syscall list, Michal Simek, (Thu Apr 24, 11:42 am)
Re: microblaze syscall list, Michal Simek, (Thu Apr 24, 1:51 pm)
Re: microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 2:21 pm)
Re: microblaze syscall list, Arnd Bergmann, (Thu Apr 24, 2:37 pm)
Re: [microblaze-uclinux] Re: microblaze syscall list, John Williams, (Fri Apr 25, 2:36 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, Matthew Wilcox, (Fri Apr 25, 3:06 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, Geert Uytterhoeven, (Fri Apr 25, 4:32 am)
Re: [microblaze-uclinux] Re: microblaze syscall list, John Williams, (Sat Apr 26, 7:04 pm)
Re: microblaze syscall list, Michal Simek, (Sun Apr 27, 8:52 am)
Re: microblaze syscall list, Alan Cox, (Sun Apr 27, 9:50 am)
Re: microblaze syscall list, Arnd Bergmann, (Sun Apr 27, 1:15 pm)
Re: microblaze syscall list, John Williams, (Sun Apr 27, 5:15 pm)
Re: microblaze syscall list, Arnd Bergmann, (Mon Apr 28, 5:31 am)
Re: microblaze syscall list, Arnd Bergmann, (Thu May 1, 12:17 pm)
Re: microblaze syscall list, John Williams, (Thu May 1, 10:38 pm)
Re: microblaze syscall list, Michal Simek, (Fri May 2, 1:18 am)
Re: microblaze syscall list, John Williams, (Fri May 2, 8:49 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 2:16 am)
Re: microblaze syscall list, Ulrich Drepper, (Sat May 3, 8:56 am)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 2:14 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sat May 3, 2:57 pm)
Re: microblaze syscall list, Michal Simek, (Sun May 4, 2:12 am)
Re: microblaze syscall list, Arnd Bergmann, (Sun May 4, 12:37 pm)
Re: microblaze syscall list, H. Peter Anvin, (Sun May 4, 3:09 pm)
Re: microblaze syscall list, H. Peter Anvin, (Sun May 4, 3:53 pm)
Re: microblaze syscall list, Arnd Bergmann, (Sun May 4, 3:54 pm)
Re: microblaze syscall list, John Williams, (Sun May 4, 6:09 pm)
Re: microblaze syscall list, Michal Simek, (Sun May 4, 11:18 pm)
Re: microblaze syscall list, Arnd Bergmann, (Mon May 5, 7:08 am)
Re: microblaze syscall list, Michal Simek, (Tue May 6, 1:33 am)