From 49abde49bdbe087112f88111227b7b1078e138ee Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sat, 2 Oct 2021 10:32:18 +0200 Subject: Add sys-boot/opensbi-0.9_p1 --- sys-boot/opensbi/Manifest | 3 +++ sys-boot/opensbi/opensbi-0.9_p1.ebuild | 45 ++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 sys-boot/opensbi/opensbi-0.9_p1.ebuild (limited to 'sys-boot') diff --git a/sys-boot/opensbi/Manifest b/sys-boot/opensbi/Manifest index 3ea0225..40aac82 100644 --- a/sys-boot/opensbi/Manifest +++ b/sys-boot/opensbi/Manifest @@ -1,3 +1,6 @@ DIST meta-sifive-2021.05.zip 664346 BLAKE2B ca98d75c4fc255f3ec99c3e9667e1a5e43fc1db88b83010db3766ff8e70acfaf2741dde96da65265aeef5ca82e1cc93a96ea771dd48cc2c9ff4af24d3feb4b82 SHA512 e60052fc183ddd89a4b0a2a443aedfe22c20ce1134925d6c0d52946ce9a5ca04750408fcb7b191ecc30b4d4b21c9e2f262d0d2b89527923a7cd82dc01a7f2345 +DIST meta-sifive-2021.09.zip 768472 BLAKE2B d141d535c5ce66d5deb0d088dc13bf049c8d5a3e69b9d494a3271a64490c83c4c66c6c3c153528d9cb1a76c12448971061b521e07223a96a357f8678248826aa SHA512 c37a0edbe690efc68d8c007f152938031bc0346068e38249405d378b791fbd2ea9d6277a3aa1aa3f2ee5b2f417c34450b3361ed165c3716f47974bf12429a835 DIST opensbi-0.9.zip 290818 BLAKE2B 5a8903c118faea18fc8e6b023ca0b1a393da2deb57f8b2d685c0547d9dadb1ebf7dc60e442a8976f10809e3ef54d03dfd81c853bc75991f193427cc28c68b360 SHA512 2caf042db0437207f33791d6e2a250311b2c805c0da79bfbb6cbec193e24c2ba26a69ef9c4f56d0c3d4a7a66cf2c656c8e453a8da0f492382464145b231cc690 +DIST opensbi-0.9_p1.zip 356165 BLAKE2B 5d714bce95940d4e02effdffc9beaafaa47c919c0715c7ece1a26653368550f933e8a577126a4fc04cfe8e37e340e24af26601879795671815d09438b6fe6724 SHA512 3c1f7d07b6ff0063c33d2e2248d3abf2ccf63025fa0922bf44dad567dc125925ebb67e557c94c83ba7399201e47d12ef0f643c12e9c2bfcf46f2570fe1486e7a EBUILD opensbi-0.9.ebuild 1078 BLAKE2B e0c862d73eeeac60869c95acdc3a8138a4b0169d90fa2a38d65fdf53bf132e306defa4971f004132e093136bc8a1c4e2a5407cfd2f20ef312f1fe9323c6e1397 SHA512 2d1c2ecb7a663ff637eab3f383d3c046834ebd7018d85bde7a7efe4a0bb47965f140488de4cbd39911dac8029c941410f1baa5384d81349f6f84a2d4b16c8fba +EBUILD opensbi-0.9_p1.ebuild 1201 BLAKE2B 5a40e1b15605a6f355066fd27e60dd56266cea432b891f2d6994f02dad50b3491d4bc8231d0a5e6ee63eb3b7316c937d4260d14ab65b46d89ca731036861bb21 SHA512 adfd1ed96d6a467ff554f19a6bc3186be8ed88babb2e15d3ea3ed1dcfc569cacb3c3a8289bdbd7b72dbe23dc90daf8ab925bdbe9dbe08ae89778fbc196b7a95b diff --git a/sys-boot/opensbi/opensbi-0.9_p1.ebuild b/sys-boot/opensbi/opensbi-0.9_p1.ebuild new file mode 100644 index 0000000..7155c2e --- /dev/null +++ b/sys-boot/opensbi/opensbi-0.9_p1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +META_SIFIVE="2021.09" +OPENSBI_COMMIT="bd355213bfbb209c047e8cc0df56936f6705477f" + +DESCRIPTION="RISC-V Supervisor Binary Interface (SBI) with meta-sifive-${META_SIFIVE} patches" +HOMEPAGE="https://github.com/riscv/${PN}/tree/v${PV}" +SRC_URI="https://github.com/riscv-software-src/${PN}/archive/${OPENSBI_COMMIT}.zip -> ${P}.zip + https://github.com/sifive/meta-sifive/archive/refs/heads/${META_SIFIVE}.zip -> meta-sifive-${META_SIFIVE}.zip" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~riscv" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_unpack() { + unpack ${P}.zip + unpack meta-sifive-${META_SIFIVE}.zip + mv "${WORKDIR}/opensbi-${OPENSBI_COMMIT}" "${WORKDIR}/${P}" +} + +src_prepare() { + eapply "${WORKDIR}/meta-sifive-${META_SIFIVE}/recipes-bsp/opensbi/files" + default +} + +src_compile() { + emake PLATFORM=generic +} + +src_install() { + mkdir -p "${D}/usr/share/${P}" + cp "${WORKDIR}/${P}/build/platform/generic/firmware/fw_dynamic.bin" "${D}/usr/share/${P}" + elog "Installed OpenSBI at /usr/share/${P}/fw_dynamic.bin" + dodoc CONTRIBUTORS.md + dodoc COPYING.BSD + dodoc README.md + dodoc ThirdPartyNotices.md +} -- cgit v1.2.3