From 0523480c1af070323145ea6a06ecf3b47cd8f4e8 Mon Sep 17 00:00:00 2001 From: PA4WDH Date: Sat, 31 Jul 2021 09:36:08 +0200 Subject: Add new versions to sys-kernel/sifive-sources --- .../sifive-sources/sifive-sources-5.12.19.ebuild | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 sys-kernel/sifive-sources/sifive-sources-5.12.19.ebuild (limited to 'sys-kernel/sifive-sources/sifive-sources-5.12.19.ebuild') diff --git a/sys-kernel/sifive-sources/sifive-sources-5.12.19.ebuild b/sys-kernel/sifive-sources/sifive-sources-5.12.19.ebuild new file mode 100644 index 0000000..d85c83a --- /dev/null +++ b/sys-kernel/sifive-sources/sifive-sources-5.12.19.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +ETYPE="sources" +K_WANT_GENPATCHES="base extras experimental" +K_GENPATCHES_VER="22" + +inherit kernel-2 +detect_version +detect_arch + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +HOMEPAGE="https://github.com/sifive/meta-sifive" +IUSE="experimental" + +META_SIFIVE="2021.05" + +DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree and meta-sifive-${META_SIFIVE} patches" +SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} https://github.com/sifive/meta-sifive/archive/refs/heads/${META_SIFIVE}.zip -> meta-sifive-${META_SIFIVE}.zip" + +src_prepare() { + unpack meta-sifive-${META_SIFIVE}.zip + local SIFIVE_PATCH + local SIFIVE_PATCHES=" + 0002-riscv-sifive-fu740-cpu-1-2-3-4-set-compatible-to-sif.patch + 0003-riscv-sifive-unmatched-update-for-16GB-rev3.patch + 0004-riscv-Add-3-SBI-wrapper-functions-to-get-cpu-manufac.patch + 0005-riscv-Introduce-alternative-mechanism-to-apply-errat.patch + 0006-riscv-sifive-Add-SiFive-alternative-ports.patch + 0007-riscv-sifive-Apply-errata-cip-453-patch.patch + 0008-riscv-sifive-Apply-errata-cip-1200-patch.patch + 0009-riscv-enable-SiFive-errata-CIP-453-and-CIP-1200-Kcon.patch + 0010-clk-sifive-Add-pcie_aux-clock-in-prci-driver-for-PCI.patch + 0011-clk-sifive-Use-reset-simple-in-prci-driver-for-PCIe-.patch + 0012-MAINTAINERS-Add-maintainers-for-SiFive-FU740-PCIe-dr.patch + 0013-dt-bindings-PCI-Add-SiFive-FU740-PCIe-host-controlle.patch + 0014-PCI-fu740-Add-SiFive-FU740-PCIe-host-controller-driv.patch + 0015-riscv-dts-Add-PCIe-support-for-the-SiFive-FU740-C000.patch + 0016-riscv-sifive-unmatched-add-D12-PWM-LED.patch + 0017-riscv-sifive-unmatched-add-gpio-poweroff-node.patch + 0018-riscv-sifive-unmatched-add-D2-RGB-LED.patch + 0019-riscv-sifive-unmatched-remove-A00-from-model.patch + 0020-riscv-sifive-unmatched-define-LEDs-color.patch + 0021-riscv-enable-generic-PCI-resource-mapping.patch + 0022-SiFive-HiFive-Unleashed-Add-PWM-LEDs-D1-D2-D3-D4.patch + 0023-riscv-sifive-unleashed-define-opp-table-cpufreq.patch" + + local SIFIVE_PATH="${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files" + for SIFIVE_PATCH in $SIFIVE_PATCHES + do + eapply "${SIFIVE_PATH}/${SIFIVE_PATCH}" + done + + cp "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/defconfig" "${WORKDIR}/linux-${KV_FULL}/arch/riscv/configs/unmatched_defconfig" + rm -R "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}" + eapply_user +} + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} -- cgit v1.2.3