From: "Matthias Maier" <tamiko@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-firmware/ipxe/
Date: Sun, 18 Jun 2023 03:47:15 +0000 (UTC) [thread overview]
Message-ID: <1687059967.1112a96564118f3449b46e3d02e47e33663b7587.tamiko@gentoo> (raw)
commit: 1112a96564118f3449b46e3d02e47e33663b7587
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 18 03:31:14 2023 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Sun Jun 18 03:46:07 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1112a965
sys-firmware/ipxe: add 1.21.1_p20230601
- update to a git snapshot from early 2023-06-01
- add efi32 and efi64 use flags for compiling/installing 32bit and
64bit variants of the ipxe.efi binary
Bug: https://bugs.gentoo.org/882393
Bug: https://bugs.gentoo.org/888827
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sys-firmware/ipxe/Manifest | 2 +
sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild | 127 +++++++++++++++++++++++++
sys-firmware/ipxe/metadata.xml | 3 +-
3 files changed, 131 insertions(+), 1 deletion(-)
diff --git a/sys-firmware/ipxe/Manifest b/sys-firmware/ipxe/Manifest
index 9d8bdecfe24a..03e4b585e3cd 100644
--- a/sys-firmware/ipxe/Manifest
+++ b/sys-firmware/ipxe/Manifest
@@ -1,2 +1,4 @@
DIST ipxe-1.21.1-bin.tar.xz 1860424 BLAKE2B 9d621c92be1058389758f885a02b601169d645335bba366a18d16326a7616345e44eb0cd5007d32ac034e7e3c8f8eecd90ade3346e34ca0df899622321f38017 SHA512 85afacfb70e562a935380b7d14ab7328e418478a6f6124eaec7cd0fefb9ba13b8a3f04833fab7b724ceb4c94897a7be2c67faa8be59373719a972ad51e6a5ab3
DIST ipxe-1.21.1.tar.gz 3934045 BLAKE2B 03871b5f89c6228a9082bb89c7b102d85e5f3afcd5fe0d93762e220fe162c9c3037a9918f30251fd103835d949335f99109a12559f560a5b686e65a7c24c6501 SHA512 47400975110ed4ab95835aa1b7c8d5a6917c19c5713c6ab88bc0741a3adcd62245a9c4251d1f46fffc45289c6b18bf893f86dbc3b67d3189c41b7f198367ecaa
+DIST ipxe-1.21.1_p20230601-bin.tar.xz 2248076 BLAKE2B aac91488a4df65548b857980283fc66b3d6d245e400a8dc1115be1708439d09aafb9d6fe93366feafa889035bdfb13edd15be34bf47aa52b75f14f75a1956618 SHA512 2dbcc5b6bf764f9fecf0fd18e304d4ac21ae081a590ceda710a2984e2cd500cff3f26f36d4abb15f806ee64f11ee1b1eb299e6e184f54d85ce74843918a4f02a
+DIST ipxe-1.21.1_p20230601.gh.tar.gz 4137586 BLAKE2B 51d8e0f5c95e77707d934a0d8c16104c0d7c500ca33f408c2d94b77244d4b198e7a4b40ee091eb059a55bc0f780572bee8d3556de28f9fdae498206c24139276 SHA512 3fbb803bd679adbeb805c7d3a8ac952e14ff41fdbb7b0c30d8ccb196e39da346faf4c3e2588466bc82400b9f113f08aa8a8056d4ed2393d1aa0fee0d22b67111
diff --git a/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild b/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild
new file mode 100644
index 000000000000..8123927dca19
--- /dev/null
+++ b/sys-firmware/ipxe/ipxe-1.21.1_p20230601.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit savedconfig toolchain-funcs
+
+# for 1.21.1_p20230601
+COMMIT_SHA1="4fa4052c7ebb59e4d4aa396f1563c89118623ec7"
+
+DESCRIPTION="Open source network boot (PXE) firmware"
+HOMEPAGE="https://ipxe.org/"
+SRC_URI="
+ !binary? ( https://github.com/${PN}/${PN}/archive/${COMMIT_SHA1}.tar.gz -> ${P}.gh.tar.gz )
+ binary? ( https://dev.gentoo.org/~tamiko/distfiles/${P}-bin.tar.xz )"
+S="${WORKDIR}/${PN}-${COMMIT_SHA1}/src"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~mips ~ppc ppc64 ~riscv x86"
+IUSE="+binary efi efi64 ipv6 iso lkrn +qemu undi usb vmware"
+REQUIRED_USE="!amd64? ( !x86? ( binary ) )"
+
+SOURCE_DEPEND="
+ app-arch/xz-utils
+ dev-lang/perl
+ iso? (
+ app-cdr/cdrtools
+ sys-boot/syslinux
+ )"
+BDEPEND="
+ !binary? (
+ amd64? ( ${SOURCE_DEPEND} )
+ x86? ( ${SOURCE_DEPEND} )
+ )"
+
+src_configure() {
+ use binary && return
+
+ cat > config/local/general.h <<-EOF || die
+ #undef BANNER_TIMEOUT
+ #define BANNER_TIMEOUT 0
+ EOF
+
+ if use ipv6; then
+ cat >> config/local/general.h <<-EOF || die
+ #define NET_PROTO_IPV6
+ EOF
+ fi
+
+ if use vmware; then
+ cat >> config/local/general.h <<-EOF || die
+ #define VMWARE_SETTINGS
+ #define CONSOLE_VMWARE
+ EOF
+ fi
+
+ restore_config config/local/general.h
+
+ tc-ld-disable-gold
+}
+
+ipxemake() {
+ # Q='' makes the build verbose since that's what everyone loves now
+ emake Q='' \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ AS="$(tc-getAS)" \
+ AR="$(tc-getAR)" \
+ NM="$(tc-getNM)" \
+ OBJCOPY="$(tc-getOBJCOPY)" \
+ RANLIB="$(tc-getRANLIB)" \
+ OBJDUMP="$(tc-getOBJDUMP)" \
+ HOST_CC="$(tc-getBUILD_CC)" \
+ "$@"
+}
+
+src_compile() {
+ use binary && return
+
+ export NO_WERROR=1
+ if use qemu; then
+ ipxemake bin/808610de.rom # pxe-e1000.rom (old)
+ ipxemake bin/8086100e.rom # pxe-e1000.rom
+ ipxemake bin/80861209.rom # pxe-eepro100.rom
+ ipxemake bin/10500940.rom # pxe-ne2k_pci.rom
+ ipxemake bin/10222000.rom # pxe-pcnet.rom
+ ipxemake bin/10ec8139.rom # pxe-rtl8139.rom
+ ipxemake bin/1af41000.rom # pxe-virtio.rom
+ fi
+
+ if use vmware; then
+ ipxemake bin/8086100f.mrom # e1000
+ ipxemake bin/808610d3.mrom # e1000e
+ ipxemake bin/10222000.mrom # vlance
+ ipxemake bin/15ad07b0.rom # vmxnet3
+ fi
+
+ use efi && ipxemake PLATFORM=efi BIN=bin-i386-efi bin-i386-efi/ipxe.efi
+ use efi64 && ipxemake PLATFORM=efi BIN=bin-x86_64-efi bin-x86_64-efi/ipxe.efi
+ use iso && ipxemake bin/ipxe.iso
+ use undi && ipxemake bin/undionly.kpxe
+ use usb && ipxemake bin/ipxe.usb
+ use lkrn && ipxemake bin/ipxe.lkrn
+}
+
+src_install() {
+ insinto /usr/share/ipxe/
+
+ if use qemu || use vmware; then
+ doins bin/*.rom
+ fi
+ use vmware && doins bin/*.mrom
+ use efi && newins bin-i386-efi/ipxe.efi ipxe-i386.efi
+ use efi64 && newins bin-x86_64-efi/ipxe.efi ipxe-x86_64.efi
+ # Add a symlink for backwards compatiblity, in case both variants are
+ # enabled the x86_64 bit variant takes presedence.
+ use efi && dosym ipxe-i386.efi /usr/share/ipxe/ipxe.efi
+ use efi64 && dosym ipxe-x86_64.efi /usr/share/ipxe/ipxe.efi
+
+ use iso && doins bin/*.iso
+ use undi && doins bin/*.kpxe
+ use usb && doins bin/*.usb
+ use lkrn && doins bin/*.lkrn
+
+ save_config config/local/general.h
+}
diff --git a/sys-firmware/ipxe/metadata.xml b/sys-firmware/ipxe/metadata.xml
index 75c7fde1f5bc..11d78499e871 100644
--- a/sys-firmware/ipxe/metadata.xml
+++ b/sys-firmware/ipxe/metadata.xml
@@ -11,7 +11,8 @@
</maintainer>
<use>
<flag name="binary">Use pre-built binaries</flag>
- <flag name="efi">Build an EFI program for using PXE</flag>
+ <flag name="efi">Build a 32bit EFI program for using PXE</flag>
+ <flag name="efi64">Build a 64bit EFI program for using PXE</flag>
<flag name="iso">Build a bootable ISO for using PXE</flag>
<flag name="lkrn">Build a linux kernel bootable file for using with grub/etc...</flag>
<flag name="usb">Build a bootable USB image for using PXE</flag>
next reply other threads:[~2023-06-18 3:47 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-18 3:47 Matthias Maier [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-02 12:46 [gentoo-commits] repo/gentoo:master commit in: sys-firmware/ipxe/ Joonas Niilola
2024-11-02 12:46 Joonas Niilola
2024-07-03 21:08 Matthias Maier
2024-01-07 17:19 Andrew Ammerlaan
2023-08-17 7:49 Andrew Ammerlaan
2023-07-15 7:39 David Seifert
2023-07-15 7:14 David Seifert
2023-06-18 3:01 Matthias Maier
2022-09-24 20:52 Andreas Sturmlechner
2022-05-19 12:19 WANG Xuerui
2022-01-23 8:05 Yixun Lan
2021-05-17 7:49 Agostino Sarubbo
2021-05-17 7:47 Agostino Sarubbo
2021-05-16 23:43 Sam James
2021-05-16 0:03 Sam James
2021-04-24 16:51 David Seifert
2021-04-24 16:51 David Seifert
2021-04-05 1:06 Matthias Maier
2020-12-18 9:00 Michał Górny
2020-11-07 3:49 Georgy Yakovlev
2020-08-19 22:40 Sam James
2019-08-19 11:37 Agostino Sarubbo
2019-08-18 21:51 Agostino Sarubbo
2019-07-28 20:20 Matthias Maier
2018-06-23 13:48 Mikle Kolyada
2018-06-17 23:29 Thomas Deutschmann
2018-06-10 3:41 Matthias Maier
2018-02-12 0:01 Matthias Maier
2018-02-12 0:01 Matthias Maier
2016-12-20 13:29 Tobias Klausmann
2016-06-23 14:30 Mike Frysinger
2016-06-21 6:24 Mike Frysinger
2016-06-21 4:33 Mike Frysinger
2016-06-21 4:33 Mike Frysinger
2016-06-21 4:33 Mike Frysinger
2016-04-19 20:05 Ian Stakenvicius
2015-08-30 1:09 Mike Frysinger
2015-08-30 1:06 Mike Frysinger
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=1687059967.1112a96564118f3449b46e3d02e47e33663b7587.tamiko@gentoo \
--to=tamiko@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/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