diff options
Diffstat (limited to 'recipes-extended/ipxe/ipxe_git.bb')
-rw-r--r-- | recipes-extended/ipxe/ipxe_git.bb | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/recipes-extended/ipxe/ipxe_git.bb b/recipes-extended/ipxe/ipxe_git.bb index d7c60ab0..08ed519a 100644 --- a/recipes-extended/ipxe/ipxe_git.bb +++ b/recipes-extended/ipxe/ipxe_git.bb @@ -1,38 +1,48 @@ DESCRIPTION = "Open source network boot firmware" HOMEPAGE = "http://ipxe.org" -LICENSE = "GPLv2" +LICENSE = "GPL-2.0-only" DEPENDS = "binutils-native perl-native syslinux mtools-native cdrtools-native xz" LIC_FILES_CHKSUM = "file://../COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263" +# syslinux has this restriction +COMPATIBLE_HOST:class-target = '(x86_64|i.86).*-(linux|freebsd.*)' + SRCREV = "18dc73d27edb55ebe9cb13c58d59af3da3bd374b" -PV = "gitr${SRCPV}" +PV = "1.20.1+git" PR = "r0" -FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SRC_URI = " \ - git://git.ipxe.org/ipxe.git;protocol=https \ + git://github.com/ipxe/ipxe.git;protocol=https;branch=master \ file://ipxe-fix-hostcc-nopie-cflags.patch \ file://ipxe-intel-Avoid-spurious-compiler-warning-on-GCC-10.patch \ file://ipxe-golan-Add-explicit-type-casts-for-nodnic_queue_pair_.patch \ file://build-be-explicit-about-fcommon-compiler-directive.patch \ " -FILES_${PN} = "/usr/share/firmware/*.rom" +FILES:${PN} = "/usr/share/firmware/*.rom" -EXTRA_OEMAKE = " \ +EXTRA_OEMAKE = ' \ ISOLINUX_BIN="${STAGING_DIR_TARGET}/usr/share/syslinux/isolinux.bin" \ CROSS_COMPILE="${TARGET_PREFIX}" \ EXTRA_HOST_CFLAGS="${BUILD_CFLAGS}" \ - EXTRA_HOST_LDFLAGS="${BUILD_LDFLAGS}"" + EXTRA_HOST_LDFLAGS="${BUILD_LDFLAGS}" \ + NO_WERROR="1" \ +' S = "${WORKDIR}/git/src" do_compile() { - oe_runmake + # Makefile.housekeeping:111: GNU gold is unsuitable for building iPXE + # Makefile.housekeeping:112: Use GNU ld instead + sed -i 's#\(^LD.*$(CROSS_COMPILE)ld\)$#\1.bfd#g' -i ${S}/Makefile + oe_runmake } do_install() { install -d ${D}/usr/share/firmware install ${S}/bin/*.rom ${D}/usr/share/firmware/ } + +TOOLCHAIN = "gcc" |