All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] [meta-intel] add iPXE
@ 2011-04-20 16:39 Paul Eggleton
  2011-04-20 16:39 ` [PATCH 1/1] ipxe: add iPXE from git Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2011-04-20 16:39 UTC (permalink / raw)
  To: yocto

From: Paul Eggleton <paul.eggleton@linux.intel.com>

Add iPXE to help with NFS root setup on Intel-based machines [1].

Note that this pulls from an arbitrary (but tested) git SRCREV due to there
not being a recent enough release version at the moment.

[1] http://wiki.pokylinux.org/wiki/Poky_NFS_Root

Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: paule/meta-intel-ipxe
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=paule/meta-intel-ipxe

Thanks,
    Paul Eggleton <paul.eggleton@linux.intel.com>
---


Paul Eggleton (1):
  ipxe: add iPXE from git

 common/recipes-bsp/ipxe/files/chainload.ipxe |    5 +++
 common/recipes-bsp/ipxe/ipxe_git.bb          |   38 ++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 common/recipes-bsp/ipxe/files/chainload.ipxe
 create mode 100644 common/recipes-bsp/ipxe/ipxe_git.bb

-- 
1.7.4.4



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] ipxe: add iPXE from git
  2011-04-20 16:39 [PATCH 0/1] [meta-intel] add iPXE Paul Eggleton
@ 2011-04-20 16:39 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2011-04-20 16:39 UTC (permalink / raw)
  To: yocto

From: Paul Eggleton <paul.eggleton@linux.intel.com>

iPXE is a network bootloader primarily for Intel-based systems (the
successor to gPXE).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 common/recipes-bsp/ipxe/files/chainload.ipxe |    5 +++
 common/recipes-bsp/ipxe/ipxe_git.bb          |   38 ++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 common/recipes-bsp/ipxe/files/chainload.ipxe
 create mode 100644 common/recipes-bsp/ipxe/ipxe_git.bb

diff --git a/common/recipes-bsp/ipxe/files/chainload.ipxe b/common/recipes-bsp/ipxe/files/chainload.ipxe
new file mode 100644
index 0000000..e5f0a9e
--- /dev/null
+++ b/common/recipes-bsp/ipxe/files/chainload.ipxe
@@ -0,0 +1,5 @@
+#!ipxe
+dhcp net0
+kernel tftp://TFTP_HOST/boot.ipxe
+boot
+
diff --git a/common/recipes-bsp/ipxe/ipxe_git.bb b/common/recipes-bsp/ipxe/ipxe_git.bb
new file mode 100644
index 0000000..662bbc4
--- /dev/null
+++ b/common/recipes-bsp/ipxe/ipxe_git.bb
@@ -0,0 +1,38 @@
+DESCRIPTION = "Open source network boot firmware"
+HOMEPAGE = "http://ipxe.org"
+LICENSE = "GPLv2"
+DEPENDS = "binutils-native perl-native syslinux mtools-native"
+LIC_FILES_CHKSUM = "file://../COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
+
+SRCREV = "bd9ff16c21efef27b6c18c15dc1d4b153ec12a4a"
+PV = "1.0.0+gitr${SRCPV}"
+PR = "r0"
+
+inherit deploy
+
+SRC_URI = "git://git.ipxe.org/ipxe.git;protocol=git \
+	   file://chainload.ipxe"
+
+EXTRA_OEMAKE = "NO_WERROR=1 EMBEDDED_IMAGE=../../chainload.ipxe"
+
+S = "${WORKDIR}/git/src"
+
+do_configure () {
+	if [ -z "${IPXE_TFTP_HOST}" ] ; then
+		echo "IPXE_TFTP_HOST not set, please set it in your local.conf."
+		exit 1
+	fi
+
+	sed -i s#^ISOLINUX_BIN[\ \\t]*=.*#ISOLINUX_BIN\ =\ ${STAGING_DIR_TARGET}/usr/lib/syslinux/isolinux.bin# arch/i386/Makefile
+	sed -i s/TFTP_HOST/${IPXE_TFTP_HOST}/g ../../chainload.ipxe
+}
+
+do_compile () {
+        oe_runmake
+}
+
+do_deploy () {
+        install ${S}/bin/ipxe.usb ${DEPLOYDIR}/
+}
+addtask deploy before do_build after do_compile
+
-- 
1.7.4.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-20 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 16:39 [PATCH 0/1] [meta-intel] add iPXE Paul Eggleton
2011-04-20 16:39 ` [PATCH 1/1] ipxe: add iPXE from git Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.