lkml.org 
[lkml]   [2008]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectKconfig question - multiple entries touching one integer
I'm trying to produce a Kconfig to deal with allocating
extra resources depending on what is selected. I'd like
to have an integer which specifies the

ie:

config ARCH_EXTRA_RESOURCES
int
default 0
help
Extra resources depending on the board selected

...

config BOARD_A
set ARCH_EXTRA_RESOURCES 32

config BOARD_B
set ARCH_EXTRA_RESOURCES 64

in this example, if board A is selected, then ARCH_EXTRA_RESOURCES
would be 32, if BOARD_B is selected then it would be 64.

doing

config ARCH_EXTRA_RESOURCES
int
default 0
default 32 if BOARD_A
default 64 if BOARD_B

doesn't work, and involves changing this part of the Kconfig
every time a new board is added.

Is there any current way of doing this, would there be any
objections to having some form of 'set' clause in a config
statememt?

--
Ben (ben@fluff.org, http://www.fluff.org/)

'a smiley only costs 4 bytes'


\
 
 \ /
  Last update: 2008-07-04 12:11    [W:0.038 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site