From 6cdb0c4935cebb2d544013f33aa92df430144657 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Fri, 2 May 2014 19:10:36 +0200 Subject: [PATCH] boot/syslinux: add an option to install a MBR blob This MBR blob will look for an active partition, and boot the bootcode present in that partition. This can be used to boot an extlinux-prepared partition. Signed-off-by: "Yann E. MORIN" Cc: Thomas Lundquist Cc: Frank Hunleth Tested-by: Frank Hunleth Tested-by: Romain Naour Signed-off-by: Peter Korsgaard --- boot/syslinux/Config.in | 8 ++++++++ boot/syslinux/syslinux.mk | 1 + 2 files changed, 9 insertions(+) diff --git a/boot/syslinux/Config.in b/boot/syslinux/Config.in index 5f0fe978fa..28c5329ca7 100644 --- a/boot/syslinux/Config.in +++ b/boot/syslinux/Config.in @@ -30,6 +30,14 @@ config BR2_TARGET_SYSLINUX_PXELINUX Install the legacy-BIOS 'pxelinux' image, to boot off the network using PXE. +config BR2_TARGET_SYSLINUX_MBR + bool "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 "efi" select BR2_PACKAGE_GNU_EFI diff --git a/boot/syslinux/syslinux.mk b/boot/syslinux/syslinux.mk index 95ece52d3b..5432d0ac36 100644 --- a/boot/syslinux/syslinux.mk +++ b/boot/syslinux/syslinux.mk @@ -60,6 +60,7 @@ endef SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_ISOLINUX) += bios/core/isolinux.bin SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_PXELINUX) += bios/core/pxelinux.bin +SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_MBR) += bios/mbr/mbr.bin SYSLINUX_IMAGES-$(BR2_TARGET_SYSLINUX_EFI) += $(SYSLINUX_EFI_BITS)/efi/syslinux.efi define SYSLINUX_INSTALL_IMAGES_CMDS -- 2.30.2