summaryrefslogtreecommitdiffstats
path: root/payloads/external
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2023-11-05 01:56:07 +0000
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2023-11-11 01:25:57 +0000
commit596c6f3a2e4431cbb0468b6e3524e01953461079 (patch)
treef38fbcddf5cfc3bb757d21e13355fab372a5a95b /payloads/external
parent8fa27fa693303abe261d057d648f096b5273ecb9 (diff)
downloadcoreboot-596c6f3a2e4431cbb0468b6e3524e01953461079.tar.gz
coreboot-596c6f3a2e4431cbb0468b6e3524e01953461079.tar.bz2
coreboot-596c6f3a2e4431cbb0468b6e3524e01953461079.zip
payloads/ipxe/Kconfig: Properly guard iPXE options
Guard multiple options depending on another with an if-block. It's not needed to repeat the condition for every option. This also cleans up the ordering of the options and groups all options related to iPXE. Change-Id: I9e74ab567f619a2d5c20c6c0282b37193d9ac01b Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78925 Reviewed-by: Martin L Roth <gaumless@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/external')
-rw-r--r--payloads/external/iPXE/Kconfig48
1 files changed, 24 insertions, 24 deletions
diff --git a/payloads/external/iPXE/Kconfig b/payloads/external/iPXE/Kconfig
index 645d41b55b6d..acb5796d09e3 100644
--- a/payloads/external/iPXE/Kconfig
+++ b/payloads/external/iPXE/Kconfig
@@ -25,26 +25,6 @@ config BUILD_IPXE
endchoice
-choice
- prompt "iPXE version"
- default IPXE_STABLE
- depends on BUILD_IPXE
-
-config IPXE_STABLE
- bool "2022.1"
- help
- iPXE uses a rolling release with no stable version, for
- reproducibility, use the last commit of a given month as the
- 'stable' version.
- This is iPXE from the end of January, 2022.
-
-config IPXE_MASTER
- bool "master"
- help
- Newest iPXE version.
-
-endchoice
-
config PXE_ROM_FILE
string "PXE ROM filename"
depends on PXE_ROM
@@ -67,6 +47,27 @@ config PXE_ROM_ID
Under GNU/Linux you can run `lspci -nn` to list the IDs of your PCI devices.
+if BUILD_IPXE
+
+choice
+ prompt "iPXE version"
+ default IPXE_STABLE
+
+config IPXE_STABLE
+ bool "2022.1"
+ help
+ iPXE uses a rolling release with no stable version, for
+ reproducibility, use the last commit of a given month as the
+ 'stable' version.
+ This is iPXE from the end of January, 2022.
+
+config IPXE_MASTER
+ bool "master"
+ help
+ Newest iPXE version.
+
+endchoice
+
config PXE_SERIAL_CONSOLE
bool "Enable iPXE serial console"
def_bool y
@@ -79,14 +80,12 @@ config PXE_SERIAL_CONSOLE
config PXE_NO_PROMPT
bool "Do not show prompt to boot from PXE"
default n
- depends on BUILD_IPXE
help
Don't wait for the user to press Ctrl-B.
The PXE still can be run as it shows up in SeaBIOS's payload list.
config PXE_ADD_SCRIPT
bool "Embed an iPXE script for automated provisioning"
- depends on BUILD_IPXE
default n
help
Enable to embed a script that is run instead of an iPXE shell.
@@ -105,10 +104,11 @@ config PXE_SCRIPT
config PXE_HAS_HTTPS
bool "Enable HTTPS protocol"
default y
- depends on BUILD_IPXE
help
Enable HTTPS protocol, which allows you to encrypt all communication
with a web server and to verify the server's identity
+endif # BUILD_IPXE
endmenu
-endif
+
+endif # PXE