Index: Kconfig =================================================================== --- Kconfig (Revision 3272) +++ Kconfig (Arbeitskopie) @@ -70,3 +70,97 @@ endmenu +menu "Boot order" + +choice + prompt "First item" + default BO_1_FILO +config BO_1_FILO + bool "FILO" +config BO_1_GRUB2 + bool "GRUB2" +config BO_1_ETHERBOOT + bool "Etherboot" +config BO_1_OFW + bool "OpenFirmware" +endchoice + +choice + prompt "Second item" + default BO_2_GRUB2 +config BO_2_FILO + depends on !BO_1_FILO + bool "FILO" +config BO_2_GRUB2 + depends on !BO_1_GRUB2 + bool "GRUB2" +config BO_2_ETHERBOOT + depends on !BO_1_ETHERBOOT + bool "Etherboot" +config BO_2_OFW + depends on !BO_1_OFW + bool "OpenFirmware" +endchoice + +choice + prompt "Third item" + default BO_3_ETHERBOOT +config BO_3_FILO + depends on !BO_1_FILO && !BO_2_FILO + bool "FILO" +config BO_3_GRUB2 + depends on !BO_1_GRUB2 && !BO_2_GRUB2 + bool "GRUB2" +config BO_3_ETHERBOOT + depends on !BO_1_ETHERBOOT && !BO_2_ETHERBOOT + bool "Etherboot" +config BO_3_OFW + depends on !BO_1_OFW && !BO_2_OFW + bool "OpenFirmware" +endchoice + +choice + prompt "Fourth item" + default BO_4_OFW +config BO_4_FILO + depends on !BO_1_FILO && !BO_2_FILO && !BO_3_FILO + bool "FILO" +config BO_4_GRUB2 + depends on !BO_1_GRUB2 && !BO_2_GRUB2 && !BO_3_GRUB2 + bool "GRUB2" +config BO_4_ETHERBOOT + depends on !BO_1_ETHERBOOT && !BO_2_ETHERBOOT && !BO_3_ETHERBOOT + bool "Etherboot" +config BO_4_OFW + depends on !BO_1_OFW && !BO_2_OFW && !BO_3_OFW + bool "OpenFirmware" +endchoice + +endmenu + +# Map the config names to an integer. +config BOOTORDER_1 + string + default "payload/filo" if BO_1_FILO + default "payload/grub2" if BO_1_GRUB2 + default "payload/etherboot" if BO_1_ETHERBOOT + default "payload/ofw" if BO_1_OFW +config BOOTORDER_2 + string + default "payload/filo" if BO_2_FILO + default "payload/grub2" if BO_2_GRUB2 + default "payload/etherboot" if BO_2_ETHERBOOT + default "payload/ofw" if BO_2_OFW +config BOOTORDER_3 + string + default "payload/filo" if BO_3_FILO + default "payload/grub2" if BO_3_GRUB2 + default "payload/etherboot" if BO_3_ETHERBOOT + default "payload/ofw" if BO_3_OFW +config BOOTORDER_4 + string + default "payload/filo" if BO_4_FILO + default "payload/grub2" if BO_4_GRUB2 + default "payload/etherboot" if BO_4_ETHERBOOT + default "payload/ofw" if BO_4_OFW +