Skip to contentSkip to conversation

add iPXE

PATCH New Paul Eggleton 1 participant 2 messages Apr 20, 2011

lore
Share & tools
lore
#0 lore raw

cover add iPXE

From: Paul Eggleton <[email protected]>

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 <[email protected]>
---

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
Signature · 1 line
1.7.4.4
#1 lore raw

PATCH 1/1 ipxe: add iPXE from git

From: Paul Eggleton <[email protected]>

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

---
 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
common/recipes-bsp/ipxe/files/chainload.ipxe new file +5 -0
new file mode 100644
index 0000000..e5f0a9e
@@ -0,0 +1,5 @@
+#!ipxe
+dhcp net0
+kernel tftp://TFTP_HOST/boot.ipxe
+boot
+
common/recipes-bsp/ipxe/ipxe_git.bb new file +38 -0
new file mode 100644
index 0000000..662bbc4
@@ -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
+
Signature · 1 line
1.7.4.4