boot/syslinux: make the sub-options a choice
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 2 May 2014 17:10:29 +0000 (19:10 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 May 2014 19:35:41 +0000 (21:35 +0200)
Currently it is possible to choose either, both or none of
the pxelinux or isolinux images.

But it does not make sense to build none or both, as we need
at least one to boot the target, and the target can not use
more than one.

So, we need one and only one image to be selected at once.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Lundquist <thomasez@redpill-linpro.com>
Cc: Frank Hunleth <fhunleth@troodon-software.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Tested-by: Frank Hunleth <fhunleth@troodon-software.com>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/syslinux/Config.in

index 5b1122d6fc50533762cbac91f817b418020e22de..f7525b87611fc709caf9f988721000c7a7c8f62e 100644 (file)
@@ -10,12 +10,15 @@ config BR2_TARGET_SYSLINUX
 
 if BR2_TARGET_SYSLINUX
 
+choice
+       bool "Image to install"
+
 config BR2_TARGET_SYSLINUX_ISOLINUX
        bool "Install isolinux"
-       default y
 
 config BR2_TARGET_SYSLINUX_PXELINUX
        bool "Install pxelinux"
-       default y
+
+endchoice
 
 endif