From 212000bb5eabdfeb9a6e7a9b8f28e2740cae555a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 3 Nov 2024 03:04:04 +0000 Subject: gentoo auto-resync : 03:11:2024 - 03:04:03 --- sys-firmware/Manifest.gz | Bin 4403 -> 4399 bytes sys-firmware/ipxe/Manifest | 1 + sys-firmware/ipxe/ipxe-1.21.1_p20230601-r1.ebuild | 138 ++++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 sys-firmware/ipxe/ipxe-1.21.1_p20230601-r1.ebuild (limited to 'sys-firmware') diff --git a/sys-firmware/Manifest.gz b/sys-firmware/Manifest.gz index ab89f5c65310..1d44cf771f45 100644 Binary files a/sys-firmware/Manifest.gz and b/sys-firmware/Manifest.gz differ diff --git a/sys-firmware/ipxe/Manifest b/sys-firmware/ipxe/Manifest index c967999deb97..39c573e017e7 100644 --- a/sys-firmware/ipxe/Manifest +++ b/sys-firmware/ipxe/Manifest @@ -3,5 +3,6 @@ DIST ipxe-1.21.1.tar.gz 3934045 BLAKE2B 03871b5f89c6228a9082bb89c7b102d85e5f3afc 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 EBUILD ipxe-1.21.1.ebuild 2703 BLAKE2B 998139a0a232644e088b356dcf074aaca01e38a822603c60b98dbbac7c7e9b5776bc2c6e12877069b80b130646a5521a7c58eb1f2fe181952396d1ed19561985 SHA512 a476d996df255cdf6b5e200534df42f53b6468d4a6ccbc066cefbb9b13b2962bc12deda331b7131f2afb49c952220d69b2eeb7a141fb8c9e7bc1be72e239d733 +EBUILD ipxe-1.21.1_p20230601-r1.ebuild 3421 BLAKE2B 62c5668a8d5445daa7b384d20ed951682ed5c3eda6d01981041a385b2573e7eeea6e2b5c895a020fe578828b3b37fd8bd45072d35573c0a0f7df727aad943fbe SHA512 2757cdf08bd03026ccde2fef12539a067d4b333b3293fdaa471f6b768a3805044d800943ebe139303b3b4b6ad731f9644acba12a06ed563ac679f77a249b7c82 EBUILD ipxe-1.21.1_p20230601.ebuild 3397 BLAKE2B f431599d287e189d15f38829c58649d3b7deba708bbfec711b338a4ddcff63901cec4c595b839ebe8f2e7ef3b69c0abce0a15165b101259cf9430646c87261d7 SHA512 64790c1146606e45c29525fcd49b559d55ce15e9e706a7a709f5aa10c8cbdbf1a8f0601c510895f08e828cd39d40ffd86f8fca287cbcfa6091ba7954aa387039 MISC metadata.xml 1061 BLAKE2B 0a6871d7dcada062fb953de1cd5add17c09297c73ae3f7e4cfc31d232c4f7873a4c609fdb328212269261f2f828148a35cd7cd4b0d803409db9f1146017dac2c SHA512 e43fc9628086bfac3e8bb2572ba65d663aec52ba3757fe96ab1b197142bc778ddf38da2898bf059ad74e9abbf98cbdbd0ee1d270545eb235f9d2ef389b58ba62 diff --git a/sys-firmware/ipxe/ipxe-1.21.1_p20230601-r1.ebuild b/sys-firmware/ipxe/ipxe-1.21.1_p20230601-r1.ebuild new file mode 100644 index 000000000000..188167274da9 --- /dev/null +++ b/sys-firmware/ipxe/ipxe-1.21.1_p20230601-r1.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit savedconfig secureboot 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 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86" +IUSE="+binary uefi32 uefi64 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} ) + )" + +pkg_setup() { + if use uefi32 || use uefi64; then + secureboot_pkg_setup + fi +} + +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='' \ + VERSION="${PV}" \ + 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 uefi32 && ipxemake PLATFORM=efi BIN=bin-i386-efi bin-i386-efi/ipxe.efi + use uefi64 && 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 uefi32 && newins bin-i386-efi/ipxe.efi ipxe-i386.efi + use uefi64 && 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 uefi32 && dosym ipxe-i386.efi /usr/share/ipxe/ipxe.efi + use uefi64 && 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 + + if use uefi32 || use uefi64; then + secureboot_auto_sign --in-place + fi + + save_config config/local/general.h +} -- cgit v1.2.3