lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080704100829.GC24620@fluff.org.uk>
Date:	Fri, 4 Jul 2008 11:08:29 +0100
From:	Ben Dooks <ben-linux@...ff.org>
To:	linux-kernel@...r.kernel.org
Subject: Kconfig 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@...ff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ