summaryrefslogtreecommitdiff
path: root/sys-firmware
diff options
context:
space:
mode:
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/apu2-bios/Manifest1
-rw-r--r--sys-firmware/apu2-bios/apu2-bios-4.17.0.1.ebuild30
-rw-r--r--sys-firmware/apu2-bios/metadata.xml8
3 files changed, 39 insertions, 0 deletions
diff --git a/sys-firmware/apu2-bios/Manifest b/sys-firmware/apu2-bios/Manifest
new file mode 100644
index 00000000..1c8a62ec
--- /dev/null
+++ b/sys-firmware/apu2-bios/Manifest
@@ -0,0 +1 @@
+DIST apu2_v4.17.0.1.rom 8388608 BLAKE2B d2f226edc5edf9eca6ad332b3e526d55278e583627b645a621e0f054504f2317b95d518d2c8026fd43473a1f39a7c0b750e1497a4616af077683f6100b4f44a6 SHA512 6a3b56bfd737af31f974fe4b9afbdb8a6497f40405771436ebd17e4edc8e2e8e8807bcf6aa569abd2b72859e95969aaf8318cce814c6bf88af79ab5f4da171cc
diff --git a/sys-firmware/apu2-bios/apu2-bios-4.17.0.1.ebuild b/sys-firmware/apu2-bios/apu2-bios-4.17.0.1.ebuild
new file mode 100644
index 00000000..00c53365
--- /dev/null
+++ b/sys-firmware/apu2-bios/apu2-bios-4.17.0.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="PC Engines APU2 BIOS"
+HOMEPAGE="https://pcengines.github.io"
+SRC_URI="https://3mdeb.com/open-source-firmware/pcengines/apu2/apu2_v${PV}.rom"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=""
+RDEPEND="sys-apps/flashrom"
+
+src_unpack () {
+ mkdir "${S}"
+ cp "${DISTDIR}/apu2_v${PV}.rom" "${S}/apu2_v${PV}.rom" || die
+}
+
+src_install () {
+ insinto /lib/firmware/pc-engines
+ doins "apu2_v${PV}.rom"
+}
+
+pkg_postinst() {
+ einfo "Run the following to install the BIOS"
+ einfo "flashrom -w /lib/firmware/pc-engines/apu2_v${PV}.rom -p internal"
+}
diff --git a/sys-firmware/apu2-bios/metadata.xml b/sys-firmware/apu2-bios/metadata.xml
new file mode 100644
index 00000000..82f7232e
--- /dev/null
+++ b/sys-firmware/apu2-bios/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bertrand@jacquin.bzh</email>
+ <name>Bertrand Jacquin</name>
+ </maintainer>
+</pkgmetadata>