package/petitboot: fix ordering of comments and sub-options

Currently, the comment about availability is between the package main
symbol and its suboptions, breaking the threading in menuconfig.

Invert the order, and move the comment last. Also enclose the suboptions
between an if-block, as it is more customary.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Yann E. MORIN 2024-01-28 14:20:54 +01:00 committed by Thomas Petazzoni
parent 4f7f056569
commit 06dcbdf8ad

View File

@ -19,17 +19,20 @@ config BR2_PACKAGE_PETITBOOT
http://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/petitboot.html
if BR2_PACKAGE_PETITBOOT
config BR2_PACKAGE_PETITBOOT_GETTY_PORT
string "TTY port(s)"
default "console"
help
Specify a space-separated list of ports to run the petitboot
UI on. Wildcards are allowed. Example: "hvc* ttys0 ttyS*"
endif # BR2_PACKAGE_PETITBOOT
comment "petitboot needs a toolchain w/ wchar, dynamic library, threads, udev /dev management"
depends on BR2_PACKAGE_KEXEC_ARCH_SUPPORTS
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_PACKAGE_HAS_UDEV
config BR2_PACKAGE_PETITBOOT_GETTY_PORT
string "TTY port(s)"
default "console"
depends on BR2_PACKAGE_PETITBOOT
help
Specify a space-separated list of ports to run the petitboot
UI on. Wildcards are allowed. Example: "hvc* ttys0 ttyS*"