Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: bcm47xx: Move the BCM47XX board types under a choice symbol
@ 2015-04-23 12:28 Markos Chandras
  2015-04-23 12:28 ` Markos Chandras
  2015-04-23 12:33 ` Rafał Miłecki
  0 siblings, 2 replies; 5+ messages in thread
From: Markos Chandras @ 2015-04-23 12:28 UTC (permalink / raw)
  To: linux-mips; +Cc: Markos Chandras, Rafał Miłecki

Since the build system expects one of the two types to be selected,
it's better if we move these symbols under a new choice symbol.
Moreover, this fixes the following build problem when no board is
selected:

In file included from arch/mips/bcm47xx/irq.c:32:0:
./arch/mips/include/asm/mach-bcm47xx/bcm47xx.h:34:1: error: expected identifier
before '}' token };
                 ^
Cc: "Rafał Miłecki" <zajec5@gmail.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
 arch/mips/bcm47xx/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/mips/bcm47xx/Kconfig b/arch/mips/bcm47xx/Kconfig
index fc21d3659fa0..39e24407709e 100644
--- a/arch/mips/bcm47xx/Kconfig
+++ b/arch/mips/bcm47xx/Kconfig
@@ -1,5 +1,9 @@
 if BCM47XX
 
+choice
+	prompt "Board type"
+	default BCM47XX_SSB
+
 config BCM47XX_SSB
 	bool "SSB Support for Broadcom BCM47XX"
 	select SYS_HAS_CPU_BMIPS32_3300
@@ -34,4 +38,6 @@ config BCM47XX_BCMA
 
 	 This will generate an image with support for BCMA and MIPS32 R2 instruction set.
 
+endchoice
+
 endif
-- 
2.3.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-23 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-23 12:28 [PATCH] MIPS: bcm47xx: Move the BCM47XX board types under a choice symbol Markos Chandras
2015-04-23 12:28 ` Markos Chandras
2015-04-23 12:33 ` Rafał Miłecki
2015-04-23 12:51   ` Markos Chandras
2015-04-23 13:30     ` James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox