commit: ed186956ef0f499da7a33ba74d50e082a3c10df1 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Dec 8 18:48:12 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Dec 8 20:24:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed186956
sys-kernel/gentoo-kernel-bin: Bump to 5.4.226 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.4.226.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 9060c2478019..5b3a4edd188a 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -24,6 +24,8 @@ DIST genpatches-5.4-229.base.tar.xz 5214840 BLAKE2B ede38de7b09b59ab96596aa4e47f DIST genpatches-5.4-229.extras.tar.xz 1812 BLAKE2B d5d084cd21e2a4f6235f0438e8d92746fcfbc9f86170247b00ade3d2aac99e06c4b10bbe725780e8f9644c7404e8defd360c3e9d360cac1e5c5a8a2ffb17adef SHA512 c21105638451b761588caaf266d901de7a5640d72540954c3c559b675dc265cca8ea5e56de1c3c644bda4c4e09fe174ece02ed6e506d12e718e035825dda3e0d DIST genpatches-5.4-230.base.tar.xz 5241272 BLAKE2B 59a4ad6f7b2f3380e5521a2d48e7da526bb8dc177d04c147e5699b75efd76e62e94b97a96d7d2f50c70fdd684c57f76f1a0017fafc223f7a31f7d26ef24a5365 SHA512 f69615ad62cef31b53cb89ce072760e17f9f22a40217ca1057e34939ed2fbaadafea2811e68fbbb91f62aeb630d4ca71ed63442efa5448c1e44554a4cbb57b12 DIST genpatches-5.4-230.extras.tar.xz 1812 BLAKE2B 62c614ec2f856867ab6e6953fcbe533fba508263a2f0e0f9e422ba9c4f159af9564d8ad57368f4e8a9e645302b3cdc8ef1ac5a626cb8e18380c025f3290ba56a SHA512 911595072c899538d66313d24585df62a9dd4e44e46980b14e1b6d0c61a64d55b6a66e4b30cae49965900bbbe634c2ebb36aac1d084038829da2a1a59b721186 +DIST genpatches-5.4-231.base.tar.xz 5272360 BLAKE2B 9b7a19691ddb0b06bb5642d580ccf758e3a2543af7d0e8193aad6a3d7d2e51af315660194f4bcc4faf26bcc36dfdc1f96d323845af6f265d679c86b2f33a586a SHA512 fc34a0b606a07bf439975766caca7aa52cfa6ae578e46ec080941c2f08b9667c9ffbf3dc0ba50bd90c7e5ea9d3e75fd7d6686934e0345d1e66228a9b0059d1e3 +DIST genpatches-5.4-231.extras.tar.xz 1816 BLAKE2B 7200d64f7ac5ecbf7bcfa77cb5ccad1f52d77b17ceedf688bd8a7721b915efef81be0a67ec87ffff141980eff31a36040c709597c3f9777825d054e547c9f748 SHA512 75cc387c24219f62854cc786da87a88eef2567f8798e278e1abe0c3f2689779ee780957339e7a782250920b998b0df4d31b54f01bbd996cc1d4f498113df91a5 DIST genpatches-6.0-10.base.tar.xz 546380 BLAKE2B faad43e3066e880e9074c57499eef61f85a8279cb37b7c999f41194588c766bfcb529cd6bd43b234e865c837ca970706935d6fea32fbcb46c49e9a67d274f262 SHA512 c4e37e027f8c9c7ce833d4b5c887b261bbe617222d4b1203bf0ccbb35b384bb185bfa5e3bccc187e7658baaa50a015a5ce2a41a6d9c8fa5ad883a46692b00d8c DIST genpatches-6.0-10.extras.tar.xz 3804 BLAKE2B 392620ebf627c7f480b0031b9e3e712ec0005b7e83596ef192908cde5740df06cec0605b09a15ba9420919b37a61136611a9e3e13f82caa63d0337f3d9b167e0 SHA512 86511fa64c02b703426450ade1811ce5b3614a6a232cba35f016837572e34a7ea0c751eb90ffe971f6a3321e0f9f61f8f032bd1cab5b0d55f8112acff42b4f61 DIST genpatches-6.0-11.base.tar.xz 622960 BLAKE2B a8d35eea162ef85aec18ee2b1b57e0d67cf4fd336eb1827b4c2d81f85768ea0b633b8010d100b693d3359ffdc373d19c866383dd2fbfcae8d49cf406e9c6a56b SHA512 d2f07ee7314431f324684340f84cba64c008a268ed42f481a9bc885796cf4ba1dcd787bf64eb0028f2cab98afd0226f1b56cf00c7f160fc2af25276339743b31 @@ -84,6 +86,10 @@ DIST gentoo-kernel-5.4.225-1.amd64.gpkg.tar 60590080 BLAKE2B dc8493b1e23b4900e60 DIST gentoo-kernel-5.4.225-1.arm64.gpkg.tar 56821760 BLAKE2B 8f799e1766197bbfa02efee0d256cfa44a3cb7c4de38ba6fd119e93544cd4f38201dadd0771dc8fdda1e4786d7b43f5fd589b17ed99d21945c96704019f818de SHA512 3960e9f5cf644a305fa978ae28df192f4a391edc52f58097a1c7705f5d3281d9a0c17d3083010768e9b3f080ad7ed54fd5520d2c4492d4cb695ae9cd6915fd48 DIST gentoo-kernel-5.4.225-1.ppc64le.gpkg.tar 54353920 BLAKE2B 344ce9ae954e82b81766a70ffaba056c26013270c802e1c06d582859888726722b0aa6a1005fabc05926e77bb1aba0c452c45a35b1cbadd0b1455dbe3ec478df SHA512 6be76c28b9e9a819d3b3e7e3ad79122b301aa187159a25807bd1a0c656174cc121e6bb8b64c1f880e53c7e514e52004a710d2796aa63a2b79beede0dcec8e374 DIST gentoo-kernel-5.4.225-1.x86.gpkg.tar 52387840 BLAKE2B ba357a39442743f0f65bf360ccb1b4c5302e6507a7fff7d714d71a0c458da070b65f72dae1012d3a6dc7099e4b4250f7b33cd1801cdef3cd7e9738164b713b70 SHA512 b7946fa7ba73af920842b2d1190744a4d30ece5b7015fa7ff99f2f011dc5c54e06839cc7808d59d6be89d0acda7dc22d11cdc6172ade29c04c0ee6a3a6289c65 +DIST gentoo-kernel-5.4.226-1.amd64.gpkg.tar 60620800 BLAKE2B a52c29e5e4dac1140d45f311dac6b2b8d6ae36a881c6e2c9af46673f0a636e165593619ec0d03eb14210155f1c19bfd148beecd03f512c6e6eae3c56530b1753 SHA512 632c47711e16e83ee3f01125e7d5ebc8a1a40b7cfe22bfac345a7ee39d8dbac015b7790f4fb1e881ff56dd16a5d107cde5ec2f2848fcb0b0e0a17cc630967a9c +DIST gentoo-kernel-5.4.226-1.arm64.gpkg.tar 56821760 BLAKE2B 159eec9915eaf0563605f2872b8e20ec69cd09776e35466ab7d21445641f5b82da9d34dd05efe24454560f648194aa93797b8c9556eaee89da14c9e023975ad7 SHA512 6c49e915c6abc47a771067248b147509418e37dfc67fe7a21fcf69ab1695c11c315d0a81fc051b6df8651e3c973e1a96aca70b1325b860b417c2ff76cf826684 +DIST gentoo-kernel-5.4.226-1.ppc64le.gpkg.tar 54333440 BLAKE2B c44e2d5e5fdc976cb611404b098cf7e0d68ff895b1841f0a458d0c3050f695d0a1580c980635643dba7849f7756c16f4b48923524ac761bd84057135d84c07ec SHA512 9938e0eacb6cfed1ba69e8c3dc706e474fcc33c76617a5bcf2ede99e9c452b18dc8c3b8ab7d5e0860da8f911b9fcfcdde81f20162b5c27a9191e812170e38532 +DIST gentoo-kernel-5.4.226-1.x86.gpkg.tar 52408320 BLAKE2B f9bcf7d20dc28e86dcafe0ab99a92e60231d35619dc14732407596650033cd6aeffab76a9bd8e2d24de192e059db44d881fd7badfe1ce37ec5e0b543c8548cc6 SHA512 662944ae9ee78bc16d1e93e276ebb4065d590294d305c913fe323878b0cfd7511a17c56d3042d11a0ee400124ed34ce3a938ac8a52ac194cebddf0bd8bfaa1ad DIST gentoo-kernel-6.0.10-1.amd64.gpkg.tar 75939840 BLAKE2B c97960c5c989babe1e7014c62f75ccd8facab8bf4fba085706ef4fc363d5c886e2682299c502a2800667d4c8a2547233e1fc0a8fd3daebe0a6ccc022f1b573cc SHA512 5996324a9c9e27a01dbef3a481eab7a7eab102912abafbaa4939b6e780dc83784238bdc387fe58ee8d41222bfd5038c3d5684bb6272b5870f14467b79a64c428 DIST gentoo-kernel-6.0.10-1.arm64.gpkg.tar 68833280 BLAKE2B 59dc4659c3bd764768c6cd00e8bfc0db79ed61207d6dac58898b1074adba764e88f6dfec6f910f04e7615724acfc57826691cdc4453dbab1cc1a049785abfea6 SHA512 e1b27ff83e9c937072e829f7cc0753e423d4aa75776f92118d28a1f8d056c4d27c61d562ef36aeeb67aebd8112c8acb2eda7170b66e476e8c4fb62f5b6b4100a DIST gentoo-kernel-6.0.10-1.ppc64le.gpkg.tar 62146560 BLAKE2B 906a047c07a7091b3375c3a70ed84f87b2507337bac3266c86b133e3f4b4dd256449f926d5a54b76bc050ddd3dbf553e6777c8e3ef54a655a31376a00193cfee SHA512 961fc68e368d4a348b103876c6255c7ec25497a06600077b84176e25d99a782e335201a7b74a3cfd80f27c9da82c4ab323d55a7d9f1279fbcc4fbabb8f1f3f61 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.226.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.226.ebuild new file mode 100644 index 000000000000..310846ddf180 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.226.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 5 )) +BINPKG=${P/-bin}-1 + +DESCRIPTION="Pre-built Linux kernel with Gentoo patches" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + sys-devel/bc + sys-devel/flex + virtual/libelf + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + cd "${MY_P}" || die + default +} + +src_configure() { + # force ld.bfd if we can find it easily + local LD="$(tc-getLD)" + if type -P "${LD}.bfd" &>/dev/null; then + LD+=.bfd + fi + + tc-export_build_env + local makeargs=( + V=1 + + HOSTCC="$(tc-getBUILD_CC)" + HOSTCXX="$(tc-getBUILD_CXX)" + HOSTCFLAGS="${BUILD_CFLAGS}" + HOSTLDFLAGS="${BUILD_LDFLAGS}" + + CROSS_COMPILE=${CHOST}- + AS="$(tc-getAS)" + CC="$(tc-getCC)" + LD="${LD}" + AR="$(tc-getAR)" + NM="$(tc-getNM)" + STRIP=":" + OBJCOPY="$(tc-getOBJCOPY)" + OBJDUMP="$(tc-getOBJDUMP)" + + # we need to pass it to override colliding Gentoo envvar + ARCH="$(tc-arch-kernel)" + + O="${WORKDIR}"/modprep + ) + + mkdir modprep || die + cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv "${BINPKG}"/image/boot "${ED}"/ || die + fi + + # strip out-of-source build stuffs from modprep + # and then copy built files + find modprep -type f '(' \ + -name Makefile -o \ + -name '*.[ao]' -o \ + '(' -name '.*' -a -not -name '.config' ')' \ + ')' -delete || die + rm modprep/source || die + cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die +}