Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Sverdlin <alexander.sverdlin@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add syslinux installer host package
Date: Sun, 11 Nov 2018 16:06:47 +0100	[thread overview]
Message-ID: <20181111150652.17459-2-alexander.sverdlin@gmail.com> (raw)
In-Reply-To: <20181111150652.17459-1-alexander.sverdlin@gmail.com>

Add host installer for syslinux bootloader which allows to pre-install
syslinux in the generated firmware images. BR2_ROOTFS_POST_IMAGE_SCRIPT
can do something like this:

	${HOST_DIR}/usr/bin/syslinux -d /syslinux/ -i ${IMGFILE}

if the rest of syslinux is installed under /syslinux inside the firmware
image.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
---
 package/Config.in.host                    |  1 +
 package/syslinux-installer/Config.in.host |  7 +++++++
 package/syslinux-installer/syslinux.mk    | 25 +++++++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 package/syslinux-installer/Config.in.host
 create mode 100644 package/syslinux-installer/syslinux.mk

diff --git a/package/Config.in.host b/package/Config.in.host
index 16b474fc9d..24a51d0e79 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -59,6 +59,7 @@ menu "Host utilities"
 	source "package/squashfs/Config.in.host"
 	source "package/sunxi-tools/Config.in.host"
 	source "package/swig/Config.in.host"
+	source "package/syslinux-installer/Config.in.host"
 	source "package/tegrarcm/Config.in.host"
 	source "package/ti-cgt-pru/Config.in.host"
 	source "package/uboot-tools/Config.in.host"
diff --git a/package/syslinux-installer/Config.in.host b/package/syslinux-installer/Config.in.host
new file mode 100644
index 0000000000..d82e7f00d7
--- /dev/null
+++ b/package/syslinux-installer/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_SYSLINUX_INSTALLER
+	bool "host syslinux installer"
+	depends on BR2_TARGET_SYSLINUX
+	help
+	  Host installer for syslinux bootloader
+
+	  http://syslinux.org
diff --git a/package/syslinux-installer/syslinux.mk b/package/syslinux-installer/syslinux.mk
new file mode 100644
index 0000000000..cbcf49d47a
--- /dev/null
+++ b/package/syslinux-installer/syslinux.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# host syslinux installer
+#
+################################################################################
+
+SYSLINUX_INSTALLER_VERSION = $(SYSLINUX_VERSION)
+SYSLINUX_INSTALLER_SOURCE = $(SYSLINUX_SOURCE)
+SYSLINUX_INSTALLER_SITE = $(SYSLINUX_SITE)
+
+SYSLINUX_INSTALLER_LICENSE = $(SYSLINUX_LICENSE)
+SYSLINUX_INSTALLER_LICENSE_FILES = $(SYSLINUX_LICENSE_FILES)
+
+HOST_SYSLINUX_INSTALLER_DEPENDENCIES = syslinux
+
+define HOST_SYSLINUX_INSTALLER_BUILD_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) \
+		-C $(@D) installer
+endef
+
+define HOST_SYSLINUX_INSTALLER_INSTALL_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/bios/mtools/syslinux $(HOST_DIR)/usr/bin/syslinux
+endef
+
+$(eval $(host-generic-package))
-- 
2.19.1

  reply	other threads:[~2018-11-11 15:06 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 15:06 [Buildroot] [PATCH] libtool: Make libltdl a separate package Alexander Sverdlin
2018-11-11 15:06 ` Alexander Sverdlin [this message]
2018-11-11 20:33   ` [Buildroot] [PATCH] Add syslinux installer host package Thomas Petazzoni
2018-11-12  0:03     ` Carlos Santos
2018-11-11 15:06 ` [Buildroot] [PATCH] linux-tools: Add liblockdep Alexander Sverdlin
2018-11-11 21:53   ` Thomas Petazzoni
2018-11-11 15:06 ` [Buildroot] [PATCH] Add mini-snmpd package Alexander Sverdlin
2018-11-13 21:52   ` Thomas Petazzoni
2018-11-22 17:55     ` Alexander Sverdlin
2018-11-11 15:06 ` [Buildroot] [PATCH] acpid: Add systemd service Alexander Sverdlin
2018-11-11 20:46   ` Thomas Petazzoni
2018-11-11 15:06 ` [Buildroot] [PATCH] acpid: Make bundled event files optional Alexander Sverdlin
2018-11-11 20:50   ` Thomas Petazzoni
2018-11-11 23:36     ` Carlos Santos
2018-11-11 15:06 ` [Buildroot] [PATCH] systemd: Explicitly configure split-usr=false and split-bin=true Alexander Sverdlin
2018-11-11 16:34   ` Yann E. MORIN
2018-11-11 20:55   ` Thomas Petazzoni
2018-11-11 23:41     ` Alexander Sverdlin
2018-11-12  8:08     ` Yann E. MORIN
2018-11-13 22:19     ` Alexander Sverdlin
2018-11-11 21:17 ` [Buildroot] [PATCH] libtool: Make libltdl a separate package Thomas Petazzoni
2018-11-11 22:15   ` Arnout Vandecappelle
2018-11-12  8:06     ` Yann E. MORIN
2018-11-22 19:02       ` Alexander Sverdlin
2018-11-23  8:04         ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181111150652.17459-2-alexander.sverdlin@gmail.com \
    --to=alexander.sverdlin@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox