From patchwork Tue Apr 29 16:49:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 343928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id C4512140104 for ; Wed, 30 Apr 2014 02:49:57 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE6E5899CF; Tue, 29 Apr 2014 16:49:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7iO13zSlZd31; Tue, 29 Apr 2014 16:49:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 34DB389A03; Tue, 29 Apr 2014 16:49:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D486A1C1079 for ; Tue, 29 Apr 2014 16:49:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8540F89324 for ; Tue, 29 Apr 2014 16:49:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J7T+MnKp-BFY for ; Tue, 29 Apr 2014 16:49:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9C11389E6A for ; Tue, 29 Apr 2014 16:49:33 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id q59so494484wes.16 for ; Tue, 29 Apr 2014 09:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=kKVhYMavrDRhyK3U4b4uIIbaPkKUZREdXo46XuRFWk4=; b=vKrQMTeeLHdzkDhmGx6Vy6/DUelxw3Ae1Zp8IdqqXn9U6P4JXtMHsL/eWh3DUZOdL/ gAMeBRlMFQurkA9j+alNFzRSf+NPFXmH5zPX5GAjERWPshlLiCRjpjlxcVxED27IYHs8 xlo6d/QHkAHLQ5llNUCkbgblBbmDWsXzNq7gMqiPGosno4QHcmm+/3jcd4iboWWyVTcx 1UuvuDMk0QT41KhEiN5YKT/kt9A3Ra9pI/GNGbn2F0kIl+7Mz7uEFsu1e5wZht8fq22u 2nLi/7wO86bc2a47Rmt5SiqwasWK0cQ07ykvVfoFbDy+BAgeGIWtpWOkfqrsq6L1AJC8 BTMQ== X-Received: by 10.180.76.244 with SMTP id n20mr1426676wiw.4.1398790172140; Tue, 29 Apr 2014 09:49:32 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id cj9sm6117155wid.1.2014.04.29.09.49.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 09:49:30 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Tue, 29 Apr 2014 18:49:17 +0200 Message-Id: <8643aef1dfbf257e6cd7a0721d4cfd9f9e3a6dea.1398789775.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 9/9] boot/syslinux: add an option to install an MBR blob X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" 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 --- Changes v1 -> v2: - slightly expand the help entry --- 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 5f0fe97..b6e8673 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 bf0bae5..c614b1d 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