aboutsummaryrefslogtreecommitdiffstats
path: root/sys-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/sifive-sources/Manifest7
-rw-r--r--sys-kernel/sifive-sources/files/5.18.8-disable-unleashed-dtb.patch9
-rw-r--r--sys-kernel/sifive-sources/sifive-sources-5.18.8.ebuild45
3 files changed, 61 insertions, 0 deletions
diff --git a/sys-kernel/sifive-sources/Manifest b/sys-kernel/sifive-sources/Manifest
index 94f54e7..c303c4a 100644
--- a/sys-kernel/sifive-sources/Manifest
+++ b/sys-kernel/sifive-sources/Manifest
@@ -1,3 +1,4 @@
+AUX 5.18.8-disable-unleashed-dtb.patch 574 BLAKE2B 3da7062fba63786ad0b666ace62f6db636cd71c25e478750b869bb042166b610e7ecd58113ee455d29237e1310a7f40c8650790d68b20bcb1e092317861a9fbd SHA512 4c719a2b1becfe0d27dbcbe6b5f640047353edaeee58be0a8bfad498cad01394022fd34c9381bce1a341addffc2ddbb526bc6220bca64f59324c225cbf789ee9
DIST genpatches-5.12-12.base.tar.xz 650292 BLAKE2B 81b5a3b95390522c328acdb390fd1e8515028e55dee9a3693992ce2aa5c2defcea37b14c385d72e0c6a9b31f239c7d02eea45e4428332f477e897fa94c02d71e SHA512 bea0fee6fade3b1322a52ec2201b828ab28bfb3c0528ea562ac7e3cfaebeb758b971820a2b1ba695dafe219ceb2548c07713b3684491b893e6055ce4f8943916
DIST genpatches-5.12-12.experimental.tar.xz 70008 BLAKE2B 6f1504992cb0c7ee60c0473a6665c4f24c86e712e922fd35ccd74120d8ac087a259a2f3a684c56d5cf92338718ed32fa43f9ef270cfc92cb0ca6b0534cf4d4cb SHA512 61b7883d2d852fbb25540072a0a05daa90d346249c13418b7e40e23e5f5aaf3e6940ea8a03bfee7a823c205a363c5be420d1e578de4bebc1187e27b9d2dc2e88
DIST genpatches-5.12-12.extras.tar.xz 3412 BLAKE2B 8fcf6c407be25db368dbb3e6be3907d3431228b5c39819dba7c67d61e5171a7ad9a86f3e117b99b9e0d626219ad9db0938c15c4b96c934b88f693a3e9661d458 SHA512 39750768e4822ea8e3f88540fc8ebad9fd721e2a3a8703102d58e30513b47069cb8a77e15e41d0f90d1d69053007bd476ce0741cd3135a428d039ebd426cdc57
@@ -25,14 +26,19 @@ DIST genpatches-5.15-26.extras.tar.xz 3872 BLAKE2B 84bf993010dbdf678e9c42e5807bc
DIST genpatches-5.16-11.base.tar.xz 516420 BLAKE2B 3e3d1a7ed60355a6d0911742fe1fe27961bd6efe16c25bf700ffc9aadbd8d02860d8b35a9fa3de61bd6d59024364e698cf4d78a7abe2eefdadd79b5aa086778e SHA512 d513a67f55edd3ea469b36ecf93eda8f623fb2f899c8cb373ee5092838283fadda029db6d97687dc27b734634e666106c054d0f35498af086aadab4aa59a2e7d
DIST genpatches-5.16-11.experimental.tar.xz 5420 BLAKE2B 3815dce79838e1162554c5e7d7a15a7cd412e7a221456142b60dfc57388d239698f5222e148bce4e2f8ad0639c6987145056f5f219df52fc16b23f88239bff2c SHA512 efa5c9a1c22319569e00ac4d06602c14e12b1da9f2a08915e7f14cedcc5a1752f1dabd68f457fec9dbdc0a373ff06c58c2ab534a63de633200adae1f1c6f3697
DIST genpatches-5.16-11.extras.tar.xz 3796 BLAKE2B d4df94755fa8b69b345c6df4b9362d1b007c3ad420a6cfcbb9cea79da1e918db6944771cefae0985c63af5ada87f13de124aa96adbb80900a4fb5faab830685a SHA512 058a18c26fc651dacf9da50ad0eaf882f6760df29c37e8ddf2188151c4ec4131c094a04339c08bf54822e37c1b94e1d2c87b4cca7ed4b84d75bc19f80ebea784
+DIST genpatches-5.18-11.base.tar.xz 547804 BLAKE2B d0550c546e93b806d96c8e64c5ea90d22f9675f2c6a020032ce5e35b7401601c79d2849c0d82cc53673e6c22fafc975035509079253f235c7db769fe20670e59 SHA512 4301f61e38ede94fa5c6e02f67e22dc32cb1078463aaf641ac81d959444e8088c1e7da6c3ac7d877f1f94777bf14de1a24207caaa8c560fdfc352a6972ea5b47
+DIST genpatches-5.18-11.experimental.tar.xz 69928 BLAKE2B 2251f78707cb08944b28db479e95ba76697f5bbf15a5460e972a58e75d19c1751068297f252448170bf883d5aac03d4e6c3bf2e8bb1d8e400ee2fafdea7656ee SHA512 ef2e4c0b7e8275685833247faf6b8a6d62b9af4b06f40a997684f479f7ee5609e9fe37ef08c3505eac8e8f74f799b8157e2652ca7677f50f862e08493c2517bd
+DIST genpatches-5.18-11.extras.tar.xz 3924 BLAKE2B de48f32f46f5d8fd8cb607490eae51338e6e7e94501e2e1ded2c990274270d80c7a883ed227203cb7306c0259f8dbe226ca3ae271eab76e367eae0ca7bd653e0 SHA512 bcb9190ba00f1028ede7ec7c18615260d8de263f508cd9c543938c6dc0fc9b0be856be386af4a86770562453e094e1794fad064baffdcb4363cb128abb35fa75
DIST linux-5.12.tar.xz 118112412 BLAKE2B 842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b SHA512 be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
DIST linux-5.13.tar.xz 119297284 BLAKE2B 9c4c12e2394dec064adff51f7ccdf389192eb27ba7906db5eda543afe3d04afca6b9ea0848a057571bf2534eeb98e1e3a67734deff82c0d3731be205ad995668 SHA512 a8edf97e9d38a49f1be2bde1e29ad96274bb2c6f7e8a2bebaa1161dd4df9cabcbaec4ff644c45bee94f86ae47725087d6deed0cd954209cec717621d137db85e
DIST linux-5.14.tar.xz 120669872 BLAKE2B 0047f5aaa3940dff97f4055ef544faafbbb5282128e6afe21d2f47d8dc8c395806a17016febfa050117d16f59e74b882cb8b9c5011d68f119c230d0a4d120524 SHA512 8e4f3ec3d36f774280f75dc7b004a43e09417af58f12e9c9f8348976659d4cfda7ad905f306f43fed66a27922e5c45db22e46bbfa7a0b9f365012380de3b6f64
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.16.tar.xz 123114100 BLAKE2B 07a90cc640ff89e1359c06cee8c38abd33e51f9b9a89833e31a1d2750526fda4a59e8884db3c1ea63df0a37f0d3de6b5a922b014b7313d8abce20d90ac08adcb SHA512 7a257dd576bc8493595ec7d6f3c9cb6e22c772a8b2dbe735d2485c4f5c56e26a08695546e7e0f1f1cd04a533f25e829361958d4da0b98bf0ba8094dd57a85aaf
+DIST linux-5.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
DIST meta-sifive-2021.05.zip 664346 BLAKE2B ca98d75c4fc255f3ec99c3e9667e1a5e43fc1db88b83010db3766ff8e70acfaf2741dde96da65265aeef5ca82e1cc93a96ea771dd48cc2c9ff4af24d3feb4b82 SHA512 e60052fc183ddd89a4b0a2a443aedfe22c20ce1134925d6c0d52946ce9a5ca04750408fcb7b191ecc30b4d4b21c9e2f262d0d2b89527923a7cd82dc01a7f2345
DIST meta-sifive-2021.08.zip 784034 BLAKE2B 941a431921f0179a54f648bbc7b34cc49f17d80c791a706ca781c3fff28a6b067e738052d730f0d5436bf4716402488ca80119c5dadca4227c37c8c4bd60f491 SHA512 3ff0bb79b8da6367166a41796217789668078bb80c32b2492263e1e80147f6898927c9842995d5358da5b1931909df325e4b36b0d00b1956cf09485038db4d1a
DIST meta-sifive-2021.11.zip 455636 BLAKE2B b2abf1e707f0dd7a12c28ec54a53754006827cda5a7d428bbd121d0df1b11c1eb776ef88c6bd30943092a2c6324e1a9961186d0f0a35aaee90446a0e1e1fea8f SHA512 4bd1c3dc11e7b9415ddc8c15d139925e29ce22532911fd426a66d753d4a9e29ee0948224b5ab40dd0c354583ca579084429021e95e32ede3f71c33ddf9625a04
+DIST meta-sifive-2022.06.zip 70476 BLAKE2B c1be47172f42a5147f1b1e9e03868d824477d4f12408b0be998e9ffc6f27c9a6a10a8edb2cba3f68df6796a8cd0bbf8151d79daaa4cbc56d75204d76796a3f1f SHA512 04373048a244059c6b33967bac042674680640a4616306ebd5901475e866f2e088d83e4d3148d0a8a687cda24c44f814372d9bd022ad25d1ebf1180a1b4e63ba
EBUILD sifive-sources-5.12.11.ebuild 1303 BLAKE2B 52e5effae7594eefa58f8107a015ab94c0ea634b033f6cc2b60bcb071ec1e7855f47e327de57244aaf83bc18dd2ecb1296155cc62897d58324b88334b9b69a87 SHA512 702387f07a537e77fa4f515e0a2ac8cb01c7a25359b058d92ddabad5530cb69f5cbd0bc5e38441566ff5b016f819095de58566d8998710410dc831104674cc5e
EBUILD sifive-sources-5.12.19.ebuild 2781 BLAKE2B 36df0ba0f147ffbf20dfbeb079d4c8a862b9f793f7b753708dde3b01533affacdb35ed349839904aa0a4489c46cd047e0a68a4303c570347002083c9059f956a SHA512 60bdc4f7356d81b60937f103c4f4356583602015a0f2984dce413d7f799ac5a72e85ba6efe5ed4a25a9a43b0ac79a6493e79b94e8294e6fd938bf1bf0a469b26
EBUILD sifive-sources-5.13.19.ebuild 1303 BLAKE2B f907a270ac7d974b4ca8b211370f8cc4f97b611a69ed0a15ad33b83c0ba88799bf86ea925d4b657419b3a2214c1cacb6e0a79d9053e195e48347a54983be31b0 SHA512 8c5f2368a2f9e687293a0aa8a468e1920d13124743ac18c231098b5350e287e46b2f160982e5395982920ce34eade286272e68ab541e2c6ee5ee75bb0ae9c443
@@ -42,3 +48,4 @@ EBUILD sifive-sources-5.14.15.ebuild 1303 BLAKE2B 87087661659fb0e5a7501d5124934a
EBUILD sifive-sources-5.14.3.ebuild 1916 BLAKE2B c222a860956f2dd045ab30c7152826681285072b0fa9aec76e27a32c40c1e977fb32d649dce269c14eaf41bda5df435dcd4716a8741f3744c770da771486aa3c SHA512 cee71532b491b001f2a9a1cffb471416c08df23f22214ef69530dca61b47eba2b872b4e88bf1c8a7b810d252e6a8480e0268248aaf9b76c603ebbfac3bc0e744
EBUILD sifive-sources-5.15.24.ebuild 1583 BLAKE2B 5ea5ec71c3817eaa88db3c160f93c0c22141effc3f4a8dd12a469a2cd31470aa7ec0fc938b7fee7e56fc30ef2c3626a59d27b0e501809595a9ac4ecdbb5de31d SHA512 c7a9a15c3ae9e7521c248c98024faaaee49674270c1ea7146d6985be2ad4d3dcad896ab1da4b31507071f1fa2880861c8d454245f4c195f2ccfe383ad3ca769d
EBUILD sifive-sources-5.16.10.ebuild 2157 BLAKE2B 66cdaadc0a3c90347cb027ac4f9614d3a7c58be0db382b644f76227c9a45829dca8dcc0f499dd6214ebc2a82a2438144781beb5003460dc8d3f0db0e345a7675 SHA512 c7faebd303f29b365ddbe903626819e2fc4145c6caec5052d02a91b633cbda66c6fc4a90b07818225a5bb30c71793a349b52b88a0440c69f4887aa05bca1a03f
+EBUILD sifive-sources-5.18.8.ebuild 2158 BLAKE2B 5e6d7f1b5ac6cae4e6116dfd4c1acf3cbcca667905163c093867bce47376032c13d3f57569d4c05ca981a365489952c0a9b274bb0dd4a09c1334e2d3118d125c SHA512 a08addd60d856799d4b081fd161989b98c5d7d25407ae9a3708eee9e2a4cef5773bbfd28599d746be45159208b9eeb6667893c7bc7bf456855677e3d6ddaac4d
diff --git a/sys-kernel/sifive-sources/files/5.18.8-disable-unleashed-dtb.patch b/sys-kernel/sifive-sources/files/5.18.8-disable-unleashed-dtb.patch
new file mode 100644
index 0000000..3475d95
--- /dev/null
+++ b/sys-kernel/sifive-sources/files/5.18.8-disable-unleashed-dtb.patch
@@ -0,0 +1,9 @@
+diff -Naur linux-5.18.8-sifive.org/arch/riscv/boot/dts/sifive/Makefile linux-5.18.8-sifive/arch/riscv/boot/dts/sifive/Makefile
+--- linux-5.18.8-sifive.org/arch/riscv/boot/dts/sifive/Makefile 2022-07-30 12:21:13.179317127 +0200
++++ linux-5.18.8-sifive/arch/riscv/boot/dts/sifive/Makefile 2022-07-30 12:21:55.203432807 +0200
+@@ -1,4 +1,3 @@
+ # SPDX-License-Identifier: GPL-2.0
+-dtb-$(CONFIG_SOC_SIFIVE) += hifive-unleashed-a00.dtb \
+- hifive-unmatched-a00.dtb
++dtb-$(CONFIG_SOC_SIFIVE) += hifive-unmatched-a00.dtb
+ obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))
diff --git a/sys-kernel/sifive-sources/sifive-sources-5.18.8.ebuild b/sys-kernel/sifive-sources/sifive-sources-5.18.8.ebuild
new file mode 100644
index 0000000..c52d495
--- /dev/null
+++ b/sys-kernel/sifive-sources/sifive-sources-5.18.8.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras experimental"
+K_GENPATCHES_VER="11"
+
+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="2022.06"
+
+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
+ rm "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/0002-riscv-sifive-unmatched-update-regulators-values.patch"
+ rm "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/0004-riscv-sifive-unmatched-add-gpio-poweroff-node.patch"
+ rm "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/fa8b369129b0706d400e1dfe150c946e64f56df5.patch"
+ rm "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/29868ae1478fe18231672da94c4e862a03218a25.patch"
+ rm "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/force_25GTs_device_probe.patch"
+ rm "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files/riscv-sbi-srst-support.patch"
+ eapply "${WORKDIR}/linux-${KV_FULL}/meta-sifive-${META_SIFIVE}/recipes-kernel/linux/files"
+ 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 "${FILESDIR}/5.18.8-disable-unleashed-dtb.patch"
+ 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
+}