From 8b59450455bb4af70e6695b2a45739a3c7d4c945 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Sat, 12 Aug 2023 11:13:32 +0300 Subject: [PATCH] sys-kernel/xanmod-kernel: add 6.4.10 Signed-off-by: Alfred Wingate --- sys-kernel/xanmod-kernel/Manifest | 3 + .../xanmod-kernel/xanmod-kernel-6.4.10.ebuild | 79 +++++++++++++++++++ virtual/dist-kernel/dist-kernel-6.4.10.ebuild | 21 +++++ 3 files changed, 103 insertions(+) create mode 100644 sys-kernel/xanmod-kernel/xanmod-kernel-6.4.10.ebuild create mode 100644 virtual/dist-kernel/dist-kernel-6.4.10.ebuild diff --git a/sys-kernel/xanmod-kernel/Manifest b/sys-kernel/xanmod-kernel/Manifest index 6e73e3d..1ab94eb 100644 --- a/sys-kernel/xanmod-kernel/Manifest +++ b/sys-kernel/xanmod-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-6.1-51.base.tar.xz 3127240 BLAKE2B 047b00560651226a3514417f10e55 DIST genpatches-6.1-51.extras.tar.xz 3808 BLAKE2B 2f188b3f2062d491118bf96735420e63c7ae85467a6789cd00316b133d254677656229f7f4b8d364bf37713a0b8f42f77acb580db0b4eed9c183008074b3eee4 SHA512 984b4c9a7e030e2687ac574dbb743bb40b0b031ca8ac55e1e632018e174a70567e3d94bee85ccac66212458e7772be6d39f119181a7252f9bca662646cb492ff DIST genpatches-6.4-10.base.tar.xz 568848 BLAKE2B d9f28beda8bd4f69e1e5d586e274df43a8661bf51733a25f320469c1e3e42d9602b0911d4e98a40942ff182f076501ce6721e534cb92aefc3d453fc43ee499bb SHA512 218c38f99a07c2be1fb25737b0a9604a9a50fe3f72c507404d92da1e8dd7823142edc2b81110e510aef7e645edefbff2265aeb3ce7f376131801c3adb292b8d0 DIST genpatches-6.4-10.extras.tar.xz 3696 BLAKE2B fa0b8d593543f3624b1cff626e2cb2dc93ff0e88fd54ec71a7e467c716481420da7f361c1dd353e36111425a74f6632f1c491e618dec47fa4bc15c6a6d9e26bc SHA512 9dbfcd1d65daca0b56360290f0a6369fa007f32dde0f1a62657d1697fb50b84668e8a14c62efcfc3d12ba6a4a911731825df260421506639d2ba9b8764962e87 +DIST genpatches-6.4-12.base.tar.xz 647340 BLAKE2B b0962b6a6b0c07aca1f27abe48e9a1e361b55b6e818d24077e989a231f44f6275b7c01b1c73303a1692fa812ee09766c58108c9efa6551263a7d117ccfddbe0d SHA512 f271fc0bc410d2faad9f08479027207ca6f1cefa0d615eb620e57fb3103d6b26ea5162c01e438ebfabb2f23b337a11c5088452e1a646bd4fb60ba464f3c5ce21 +DIST genpatches-6.4-12.extras.tar.xz 3696 BLAKE2B d5c97c078e4abe4df885f067dd2202332c607452ecba07e0797426186b7bc2fac2cf6d876a269fcd8d2b8f5a33c8f36b97cf080d61bcff58ba8247b3a5376ad0 SHA512 5fe6ba9e4b8efddb7d305fd58825080862628ccd45fafb729756592a31d1ac6cd27f62fe89270d1ac30d54b99a617e4f49c127a3752a10af493ee9df3b113002 DIST genpatches-6.4-9.base.tar.xz 483840 BLAKE2B 8f2796524871d00030c870fcb167f36bce2a990a248533b7bf481506f03937fc69ee34cc5e2b8e3fc994c8fb40c54f23ce14c922f99b46c63e9da7e449a6cbcc SHA512 ea23db4aac99667ce2393d7f639043c6169f0f452aa882060d009ead9ffe9b763acd2a88495114b1a691dfa178f0a82fc0df8f89546e2bc292ca643f918691c0 DIST genpatches-6.4-9.extras.tar.xz 3700 BLAKE2B f76074d4fef0f7a531b5cc699e83d758455727029be4ffd3470116d8475ab50d880501f920baa5fb0ef607ca057b3e1385d70ba8cf928a664d922949c325251b SHA512 35401caf459266c07369825bf2a03b5c9b8c54618e48cd5a8022bee1f2c5c6be4aa6ab714ea74152c0c88ed2fb774452f0de2c50a664979bc9d44b9f7d3951eb DIST gentoo-kernel-config-g7.tar.gz 4625 BLAKE2B 72ba0d038ee34ca5eb26d43bd373735aef3a50d02b414993ea05485e49d83d46df98a6cb0f6f3170a8ec0c99b557432fd9a11cbb92ff7c2837625a7f4469831e SHA512 2d74a8ca9f5402b4290ed93cd3ddba04a7f2ff42c8d8d3f2cbbe22fc20daa0fca119368daa8af39b7a26b1b99e4e3187c3c5d95886a651675ad94ff98d686628 @@ -14,5 +16,6 @@ DIST linux-6.4.tar.xz 137794856 BLAKE2B b59eb04a8715af9f686978812e6d4a466172bb85 DIST patch-6.1.42-xanmod1.xz 2341408 BLAKE2B 4d3e2f13bd3677f0987f041da4ababbee1e05a4c9ddde96c898f8bd057a953608eeb2701ea8c614b7bbf569e57facb625db706cb1cab3ed3d0514cb34eb39aa3 SHA512 4f0b9b38462465d5dcb51676a01ce43d8541d76da2dfaa06de341478fcef0201b6073a033e800dde5220d97002c574e3da758fb7877a02ae825aab871a6aa8f7 DIST patch-6.1.43-xanmod1.xz 2406084 BLAKE2B e6172f796a3063afba86478b53e1c6380909308a298622cb3f3672d79110022a08adfbf36893de4fc832021921e6eb0ad25027ac12c7a42313df4db5b7acae76 SHA512 c72b69f1fbc6a43c78c0da8f5dda58fd1766334975570167256e6ef6c829f42439678cf8ffaea78b9808d8e9552781e28e7ff410f3ff347698058b74dc359ef8 DIST patch-6.1.45-xanmod1.xz 2458000 BLAKE2B d0065d499fa942037a649d48e7ea035e075877e4891ad6572f0595df7d0fd69b6d2da960287770eeb612ec95a9881c57accc84bd5acf29c0a8a323ee02f15cd6 SHA512 893ea3004048e83a0001275ceee1905c39b2dee2673072ff8b3e3cc6717274dc2830173eac47f34632621cd92f1ac76c24d264ecfbd244477e8e10f291a2c98e +DIST patch-6.4.10-xanmod1.xz 775816 BLAKE2B e6df15e544df872670893c66aefaa63a7438830416850bd03de75b8438ba25f220b4e5fe66ec3ec2a5d08d6d4ba4adacebfcf7f8d148502691afd78e62451787 SHA512 92486eaab664ac00669f7955d6f42e6fc32b1fbd6e29f2044b6b76c95c861274e78ebfca6eb1513daf0573d441f97700a2c50d71644f00bf5c2367af6c7b5a9f DIST patch-6.4.7-xanmod1.xz 619396 BLAKE2B c68b5e3ae41dbb55014d6203250c0b5226b544eb51150dad12c3940cbe199d330e6ff06c47927aa4836867b1cd3f77ffe3cb70bbafb358009f03e2119da3d73e SHA512 12b2d34258b25284687681026c3a7970aa0ff0a447582de01741489b725898bbf477c38e3f9752ae9ca9842f05398aff2835ece8b68ae14d5245268ec33bc082 DIST patch-6.4.8-xanmod1.xz 700384 BLAKE2B b2d891bacfe66cf4bec05d0d88a7d64ac95d94b50b5381ce3ccd7b6cf2cd479a67168e1ddd79bf4ce42aee8b5ee6bbef3b1996d73c5d2b0c897275cb9e43c62a SHA512 383fb94ea7ae809743729d60971b14a96f1f4663dfa0224bb43f4bef7513df954cb06aa6860a933a2acb51a154614cbfb24fed8b21b7a8efc08341434ccadcf4 diff --git a/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.10.ebuild b/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.10.ebuild new file mode 100644 index 0000000..d69b0ad --- /dev/null +++ b/sys-kernel/xanmod-kernel/xanmod-kernel-6.4.10.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +GENTOO_CONFIG_VER=g7 + +DESCRIPTION="Linux kernel built with XanMod and Gentoo patches" +HOMEPAGE="https://www.kernel.org/ https://xanmod.org/" +SRC_URI=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + mirror://sourceforge/xanmod/patch-${PV}-xanmod1.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + https://github.com/mgorny/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="-* ~amd64" +IUSE="debug" + +RDEPEND=" + !sys-kernel/xanmod-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux +" + +src_prepare() { + # Remove linux-stable patches (see 0000_README) + find "${WORKDIR}" -maxdepth 1 -name "1[0-4][0-9][0-9]*.patch" -exec rm {} + || die + + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/patch-${PV}-xanmod1 + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${S}/CONFIGS/xanmod/gcc/config_x86-64-v1" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + rm "${S}/localversion" || die + local myversion="-xanmod1-dist" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + "${FILESDIR}"/no-debug-extra.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} diff --git a/virtual/dist-kernel/dist-kernel-6.4.10.ebuild b/virtual/dist-kernel/dist-kernel-6.4.10.ebuild new file mode 100644 index 0000000..9cb3a33 --- /dev/null +++ b/virtual/dist-kernel/dist-kernel-6.4.10.ebuild @@ -0,0 +1,21 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Virtual to depend on any Distribution Kernel" +HOMEPAGE="" +SRC_URI="" + +LICENSE="" +SLOT="0/${PV}" +KEYWORDS="~amd64" + +RDEPEND=" + || ( + ~sys-kernel/gentoo-kernel-${PV} + ~sys-kernel/gentoo-kernel-bin-${PV} + ~sys-kernel/vanilla-kernel-${PV} + sys-kernel/xanmod-kernel:${PV} + sys-kernel/xanmod-kernel-bin:${PV} + )"