6e432d5ecb
Until now, the host toolchain was used to build syslinux, as it was not possible to build a 32-bit syslinux with a x86-64 toolchain. However, syslinux requires gnu-efi, and gnu-efi is built using the target toolchain. Mixing different toolchains doesn't work well, so this commit changes the syslinux package to use the target toolchain for syslinux as well. This is made possible by patches 0003-Fix-ldlinux.elf-Not-enough-room-for-program-headers-.patch and 0004-memdisk-Force-ld-output-format-to-32-bits.patch. Since syslinux also contains some utilities that have to run on the host, those have to continue being built with the host toolchain, which requires patch 0005-utils-Use-the-host-toolchain-to-build.patch. Patch 0006-lzo-Use-the-host-toolchain-for-prepcore.patch is about building prepcore, another utility with the host toolchain as it is required at build-time. This was tested using a Buildroot's built x86_64 toolchain, and checked that the output binaries are 32-bits. It was tested as well if they actually boot on hardware. Signed-off-by: Benoît Allard <benoit.allard@greenbone.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
config BR2_TARGET_SYSLINUX
|
|
bool "syslinux"
|
|
depends on BR2_i386 || BR2_x86_64
|
|
# Make sure at least one of the flavors is installed
|
|
select BR2_TARGET_SYSLINUX_ISOLINUX \
|
|
if !BR2_TARGET_SYSLINUX_PXELINUX && \
|
|
!BR2_TARGET_SYSLINUX_MBR && \
|
|
!BR2_TARGET_SYSLINUX_EFI
|
|
select BR2_PACKAGE_UTIL_LINUX
|
|
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
|
help
|
|
The syslinux bootloader for x86 systems.
|
|
This includes: syslinux, pxelinux, extlinux.
|
|
|
|
http://syslinux.org
|
|
|
|
if BR2_TARGET_SYSLINUX
|
|
|
|
config BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
|
bool
|
|
|
|
config BR2_TARGET_SYSLINUX_ISOLINUX
|
|
bool "install isolinux"
|
|
select BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
|
help
|
|
Install the legacy-BIOS 'isolinux' image, to boot off
|
|
optical media (CDROM, DVD.)
|
|
|
|
config BR2_TARGET_SYSLINUX_PXELINUX
|
|
bool "install pxelinux"
|
|
select BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
|
help
|
|
Install the legacy-BIOS 'pxelinux' image, to boot off
|
|
the network using PXE.
|
|
|
|
config BR2_TARGET_SYSLINUX_MBR
|
|
bool "install mbr"
|
|
select BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
|
help
|
|
Install the legacy-BIOS 'mbr' image, to boot off a
|
|
local MBR-partition (e.g. prepared with 'extlinux'
|
|
or 'syslinux').
|
|
|
|
config BR2_TARGET_SYSLINUX_EFI
|
|
bool "install efi"
|
|
select BR2_PACKAGE_GNU_EFI
|
|
help
|
|
Install the 'efi' image, to boot from an EFI environment.
|
|
|
|
|
|
if BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
|
|
|
config BR2_TARGET_SYSLINUX_C32
|
|
string "modules to install"
|
|
help
|
|
Enter a space-separated list of .c32 modules to install.
|
|
Leave empty to install no module.
|
|
|
|
endif # BR2_TARGET_SYSLINUX_LEGACY_BIOS
|
|
|
|
endif # BR2_TARGET_SYSLINUX
|