a2f554c1bd
Although this is a "boot loader", it really is a tool that should be part of an image that acts as the bootloader. Thus, it is not in the bootloader menu. A UI is required and can be provided by ncurses, X11 or fbdev. Only ncurses is supported for now. The other two use libtwin which isn't part of Buildroot for now. Adapted from https://github.com/glevand/petitboot--buildroot Updated to work with m68k architecture rather than just PlayStation3 (focused on qemu-system-m68k virt machine) Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Thomas Huth <huth@tuxfamily.org> [Arnout: - Add missing arch and toolchain dependencies. - Remove nonexistent BR2_PACKAGE_NCURSES_TARGET_* selects. - Swap kexec/kexec-lite priority. - Add hash for license file. - Use version without v for VERSION. - Remove unnecessary --localstatedir=/var. - Add --disable-busybox. - Remove --enable-debug. - Remove --with-ncursesw and explicit libraries. - Add explicit arguments for all configure options. - Always select busybox tftp. - Add optional dependency on dtc. - Move dtc-specific options under a single condition. - Minor cleanups (whitespace, comments, ...). ] Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
config BR2_PACKAGE_PETITBOOT
|
|
bool "petitboot"
|
|
# kexec-lite arch depends is a subset of kexec arch depends
|
|
depends on BR2_PACKAGE_KEXEC_ARCH_SUPPORTS
|
|
depends on BR2_USE_MMU # lvm2
|
|
depends on BR2_USE_WCHAR # elfutils
|
|
depends on !BR2_STATIC_LIBS # elfutils, lvm2
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils, lvm2
|
|
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
|
|
depends on BR2_PACKAGE_HAS_UDEV
|
|
select BR2_PACKAGE_ELFUTILS
|
|
select BR2_PACKAGE_LVM2 # devmapper
|
|
select BR2_PACKAGE_NCURSES
|
|
# run-time dependency only
|
|
select BR2_PACKAGE_KEXEC if !BR2_PACKAGE_KEXEC_LITE
|
|
# run-time dependency only
|
|
select BR2_PACKAGE_POWERPC_UTILS if ( BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le )
|
|
# run-time dependency only
|
|
select BR2_PACKAGE_NVME if ( BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le )
|
|
help
|
|
Petitboot is a small kexec-based bootloader
|
|
|
|
http://www.kernel.org/pub/linux/kernel/people/geoff/petitboot/petitboot.html
|
|
|
|
comment "petitboot needs a uClibc or glibc 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_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC) || \
|
|
!BR2_PACKAGE_HAS_UDEV
|