From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 18 Feb 2016 22:33:12 +0000 Subject: [PATCH] ARM: Allow MULTIPLATFORM to select XIP In-Reply-To: References: <1455816310-11308-1-git-send-email-chris.brandt@renesas.com> Message-ID: <20160218223312.GT19428@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Feb 18, 2016 at 07:42:20PM +0000, Chris Brandt wrote: > On Thu, 18 Feb 2016, Nicolas Pitre wrote: > > > > Is there some way you can do a PLATFORM_COUNTER++ for each device that > > > is selected, and then XIP_KERNEL would depend on PLATFORM_COUNTER == 1 > > > ? > > > > I don't know all the Kconfig possibilities. > > > > But would something like this work? > > > > config FOO > > depends on !(XIP && CHOICE_MADE) > > select CHOICE_MADE > > I follow your logic and that might work: If you made multiple choices, it would just take the first one. > > However...I just tried it and it crashes. > > scripts/kconfig/mconf Kconfig > make[2]: *** [menuconfig] Segmentation fault (core dumped) > make[1]: *** [menuconfig] Error 2 > > > It looks like you can't depend on something not being set that you are going to set yourself. Basically..."do as I say, not as I do" It's missing a bool/tristate. Every config option needs to be typed. -- RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.