diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /sys-kernel/vanilla-kernel-bin | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'sys-kernel/vanilla-kernel-bin')
9 files changed, 531 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel-bin/Manifest b/sys-kernel/vanilla-kernel-bin/Manifest new file mode 100644 index 000000000000..ef17ed2cf8ca --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/Manifest @@ -0,0 +1,24 @@ +DIST tinycorelinux-10.1-amd64.qcow2 16842752 BLAKE2B e013e76503c335739a9623c0901ca791937a0e6b177854535cadec1e2c2cd2df588283ed3128cf652595f32264fbfe5b3bd3a8c97665fd4da344e308535be366 SHA512 c3aeb20ff8769da9211694b7f701907cc7ae7582cdfad2c2fdc008d97ebcbd9dc08245b4e8f8450e1cb304bd705345a11fe79f901a47979fee91443841d55641 +DIST tinycorelinux-10.1-x86.qcow2 14876672 BLAKE2B 3c760eb7438b13261e52ecfaa33a53649ced95f1ab40aae52134b8cdc31a16d7aa0d6a6dd716e268ed148e9d77a10b7c700b141b61d70c82d271ffe88e8e2a3c SHA512 9964538dc42f232a11949f74b61d46422ea5da3bdc253a217119bd0b8a750c40fd2da0b07157067be9ac0226472614f210a1248114df0d331df390979867a895 +DIST vanilla-kernel-4.19.94-1.amd64.xpak 61341217 BLAKE2B 0d83e6e831b30368ea866eed3470cfef743a07ed32705871e212233914af6081305c36cdc1ffe8b9184c6a15995168beace8d3ac77249f205cc5955d1f1186ab SHA512 351d93eeac30fc550fc491f8ba36827951845eb546d4075f77ba3a0b573fdfee2e1f81852c7bfd943df172430799af304d6bc02c45a6ee9d393a82c97c89602c +DIST vanilla-kernel-4.19.94-1.x86.xpak 53592115 BLAKE2B b648dd9d4c90c3754cd2d8bba614ceb4c1c0fc30c9fd5624624651ba1d2f106ad7584115c84b16f132d6cf9e292f088107ca711f6c60f72a9e82e0b920975eb3 SHA512 1a435efacbf3e5bccaa78e1a5852da08d21df56e83a49254ffdd1db467f1de28148448c368c9b42f846988ea508f24e0ddcedd48a81b167105db617b99f96bb2 +DIST vanilla-kernel-4.19.95-1.amd64.xpak 61328132 BLAKE2B da9ad18c05df0301ab56767e678d4c8561f93609faceaba7a6e6912cfcc9025f30fba648e94079d783c3b06c99e9144007fbe495ef217e0eeb190323786f33f0 SHA512 97c252ab3e7f55e8b56c608ac2854cd89ccc67f3b2d40f7ab06b4499d02fc5b29b51535c99939d46b172d7db56b28f8687aac7101e0f4dcfa1dfe7e1b54388dd +DIST vanilla-kernel-4.19.95-1.x86.xpak 53598871 BLAKE2B ada3debb8338012bb4372dd531805710528e7f80116086ae4c88910837319c9f3092ab709e5dc64388f7a2027e0db448bee146502a2b439720bf3eabb64bc8da SHA512 fd1f58a796a22c62048845222c5b255ea2db4c7acfcdea7d87638d716c750cd555eb1956a7839d607a043f0772fa9541b0a2ee9b231090f6ee2d2a80f099233a +DIST vanilla-kernel-4.19.96-1.amd64.xpak 61330551 BLAKE2B 0e4cb07973ce47297c59a7989418a6dccce2723da96c50332d0f6df3af8a74ef98cfa85d1aa7dbb0a43138769c39663acceffd16779b8360a9bfb68b964867c6 SHA512 20f30ee5ad5bcd43c96404920c82a55b3ba3f51268819b94581c303bf187bd902232ef9c2dbd432f7ae0d44e087555f73fff05f203a4d92eca92e104c6ad0814 +DIST vanilla-kernel-4.19.96-1.x86.xpak 61330551 BLAKE2B 0e4cb07973ce47297c59a7989418a6dccce2723da96c50332d0f6df3af8a74ef98cfa85d1aa7dbb0a43138769c39663acceffd16779b8360a9bfb68b964867c6 SHA512 20f30ee5ad5bcd43c96404920c82a55b3ba3f51268819b94581c303bf187bd902232ef9c2dbd432f7ae0d44e087555f73fff05f203a4d92eca92e104c6ad0814 +DIST vanilla-kernel-5.4.10-1.amd64.xpak 64966959 BLAKE2B 8ad67a79ecdb7e53a41f4b02d3f1e9dafd169e2e74b179664d7b798e816c8f31b1a3c0f4a7f0e216761c4751f6044889c39f2bdd8783de2a926c64a7e1d601bd SHA512 00a5c4365594968705580d68c8d86fd251632db43d5cafc54ecce8ab83a951de4be3c0eb0934e905f3ca84634b464d4d333b6417e148402dc0ea1b1fa16c5a9e +DIST vanilla-kernel-5.4.10-1.x86.xpak 56405752 BLAKE2B 86ca7aefff05c0ba222cd4f165b229182850f0c698417edcbe07da784e988b2e870f7dfad9f74c20421dc8068c4bf82475abf4ba3281b0f5c157ef27fa99a88a SHA512 dcf5e333a87219434c2741217ad29137469c85464234c625aa57521d3f0c1613e83a121f5541646586d0b4938d60f82afc823c9ed4dc02ec1994ed0e0bb80540 +DIST vanilla-kernel-5.4.11-1.amd64.xpak 64959470 BLAKE2B af2b1c707950a0592f0551ec3b4163c22346a37f308c4b1752a6c9284f2f61b2fb96a65d357146c7a44813b4bc82788c479a300e6df37388de7782cfe98ab0fc SHA512 a8be0a5a8c398cf7ed12de96f262ab526700de51faf40a3a4a1d3332c36d3756298edbc5d624a2773f6e8c09589b85e18c12549f42ccfa52f9b71eccda53df8f +DIST vanilla-kernel-5.4.11-1.x86.xpak 56379611 BLAKE2B 3446ae6db4f526b00ea448874f7cec2917744c93f7908aa9437e2c91177a3c715a17fe8fd0e79f4d7b712b033b3d4d82a80d77aa200c8b573453e00ab530cf8c SHA512 6a271baa837d0c7ff0affea9aed2a24b2f21eed525510f3bbb525c2fb504778a9775752fd96e1401a69f5350101840d94367ef62aa9c5538d5f431b062252982 +DIST vanilla-kernel-5.4.12-1.amd64.xpak 64949751 BLAKE2B c65f58763ca58a21b0e8981309646a8502c9ba55fb9eb835bd9dd0afe0ae33e16198fd54ba7cd768906a329a2910a196558fa16e2168df5a67233986f410f7dd SHA512 95bee704124462d0bbd0ae7a33674c56fa9e9d1f01690b638c5691b82b0af9649edfeb437d177bb773f861a77b31ec7afb2a6fe611684d4fee107c8fb4961cdc +DIST vanilla-kernel-5.4.12-1.x86.xpak 56393584 BLAKE2B 89ebc921148a3cfd6950c4e6d8094c3a4c79f699ec4a911c440c16858ef878020065986ebfb8173290b8c18398c47f0de16235fddbd9fa12901ccc067cec6bea SHA512 9e7f096d267c28839595a776cd1c7ad2b325dcc41b8ec6bfff196f6f762084a23eaa56d24b6658c1d0925434bcc3efb88bcb398cb9e1a79697bc5be79701f71c +DIST vanilla-kernel-5.4.7-1.amd64.xpak 67980060 BLAKE2B 6bff3c16edc33dc65eedc55290d83cd26bf23bcf70addff39f43ba0d2fe9a678bc8bd2ba259802c95032132dce14e6866f15c30d66c4be23d82b88fa7e33d2f1 SHA512 edad0f70a46d2398702beeed442a84818d9d34cbd057372ad1175e7c2d944d59f6c5dbe2731658ed4c74eb66ffc3dd542b2589b1e776095c457b6347872d3dc4 +DIST vanilla-kernel-5.4.7-1.x86.xpak 59512079 BLAKE2B be8b611d164cb0e17fc9232eebdd642ea3e7926acf0c8628dde6bfe4de9d5600fca8f33aeba039bffce574926d7f1dff5bfa9910ed42553fa168e6104207fa13 SHA512 9d2a59824f7ce0cd01ea5aced3a95c4e2ac44ca4ad82cf5997987f9b0df730650cb8c8c5a83476084e427af345ad4d5515eb996dd2db5d5c7fa21c0eb1d8871e +EBUILD vanilla-kernel-bin-4.19.94-r1.ebuild 1243 BLAKE2B cfdfd76b8eb56ba00928f6396b65d5427167994bf33ac00b01c2168322d4a8f726d881365ca4e13c9224ce8721d2b0db0beb27cd96be66748c454974252a2af7 SHA512 239376d8d8e223e135ffe70a53b5f3e5fd653fcda9aad08d5ba4a2b674dd0004bd9b99e541a6ac126d6a5c73aeee2d85c33daafb5a2cfc8e12aae353cd2907f6 +EBUILD vanilla-kernel-bin-4.19.95.ebuild 1243 BLAKE2B cfdfd76b8eb56ba00928f6396b65d5427167994bf33ac00b01c2168322d4a8f726d881365ca4e13c9224ce8721d2b0db0beb27cd96be66748c454974252a2af7 SHA512 239376d8d8e223e135ffe70a53b5f3e5fd653fcda9aad08d5ba4a2b674dd0004bd9b99e541a6ac126d6a5c73aeee2d85c33daafb5a2cfc8e12aae353cd2907f6 +EBUILD vanilla-kernel-bin-4.19.96.ebuild 1243 BLAKE2B cfdfd76b8eb56ba00928f6396b65d5427167994bf33ac00b01c2168322d4a8f726d881365ca4e13c9224ce8721d2b0db0beb27cd96be66748c454974252a2af7 SHA512 239376d8d8e223e135ffe70a53b5f3e5fd653fcda9aad08d5ba4a2b674dd0004bd9b99e541a6ac126d6a5c73aeee2d85c33daafb5a2cfc8e12aae353cd2907f6 +EBUILD vanilla-kernel-bin-5.4.10-r1.ebuild 1243 BLAKE2B cfdfd76b8eb56ba00928f6396b65d5427167994bf33ac00b01c2168322d4a8f726d881365ca4e13c9224ce8721d2b0db0beb27cd96be66748c454974252a2af7 SHA512 239376d8d8e223e135ffe70a53b5f3e5fd653fcda9aad08d5ba4a2b674dd0004bd9b99e541a6ac126d6a5c73aeee2d85c33daafb5a2cfc8e12aae353cd2907f6 +EBUILD vanilla-kernel-bin-5.4.11.ebuild 1243 BLAKE2B cfdfd76b8eb56ba00928f6396b65d5427167994bf33ac00b01c2168322d4a8f726d881365ca4e13c9224ce8721d2b0db0beb27cd96be66748c454974252a2af7 SHA512 239376d8d8e223e135ffe70a53b5f3e5fd653fcda9aad08d5ba4a2b674dd0004bd9b99e541a6ac126d6a5c73aeee2d85c33daafb5a2cfc8e12aae353cd2907f6 +EBUILD vanilla-kernel-bin-5.4.12.ebuild 1243 BLAKE2B cfdfd76b8eb56ba00928f6396b65d5427167994bf33ac00b01c2168322d4a8f726d881365ca4e13c9224ce8721d2b0db0beb27cd96be66748c454974252a2af7 SHA512 239376d8d8e223e135ffe70a53b5f3e5fd653fcda9aad08d5ba4a2b674dd0004bd9b99e541a6ac126d6a5c73aeee2d85c33daafb5a2cfc8e12aae353cd2907f6 +EBUILD vanilla-kernel-bin-5.4.7.ebuild 4537 BLAKE2B 138236be358819b75a539e0dffce5a04449181d19089a4b8de41508078fe97a471c5d1abf79e7ba88019b82bf2dc548802127e19ffe25015ef037a3eddcf857e SHA512 3923499cb4b7b41feed707492171a0ee5844607b7bad995ee15e2617b0d387143f4630d808620d2de6a730d3561d5eddd00ad6df000bc4c0b6bed57bbc434dda +MISC metadata.xml 460 BLAKE2B 44708a7e31f1ad9f59efb3e945b0b7dba7644df038566d652c18bb80aa1931181e38098b142b204008723057ec517824eec61539d776bdf37d7e6769b7ad70a1 SHA512 b9604dfb203052349588f30cabf71a8ceb9561f24754d699bdcb80cc1075e8154c55955ecbeb22e1519ac0e57a92df4a74e02149826ad4e7e1eec34651645286 diff --git a/sys-kernel/vanilla-kernel-bin/metadata.xml b/sys-kernel/vanilla-kernel-bin/metadata.xml new file mode 100644 index 000000000000..b78799ea4a87 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>dist-kernel@gentoo.org</email> + <name>Distribution Kernel Project</name> + </maintainer> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <use> + <flag name='initramfs'>Build initramfs along with the kernel.</flag> + </use> +</pkgmetadata> diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.94-r1.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.94-r1.ebuild new file mode 100644 index 000000000000..db05c9266903 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.94-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install + +MY_P=${P/-bin/}-1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT}" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + kernel-install_test "${PV}" \ + "${WORKDIR}/usr/src/linux-${PV}/$(kernel-install_get_image_path)" \ + "lib/modules/${PV}" +} + +src_install() { + mv * "${ED}" || die +} diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.95.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.95.ebuild new file mode 100644 index 000000000000..db05c9266903 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.95.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install + +MY_P=${P/-bin/}-1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT}" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + kernel-install_test "${PV}" \ + "${WORKDIR}/usr/src/linux-${PV}/$(kernel-install_get_image_path)" \ + "lib/modules/${PV}" +} + +src_install() { + mv * "${ED}" || die +} diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.96.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.96.ebuild new file mode 100644 index 000000000000..db05c9266903 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-4.19.96.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install + +MY_P=${P/-bin/}-1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT}" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + kernel-install_test "${PV}" \ + "${WORKDIR}/usr/src/linux-${PV}/$(kernel-install_get_image_path)" \ + "lib/modules/${PV}" +} + +src_install() { + mv * "${ED}" || die +} diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.10-r1.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.10-r1.ebuild new file mode 100644 index 000000000000..db05c9266903 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.10-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install + +MY_P=${P/-bin/}-1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT}" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + kernel-install_test "${PV}" \ + "${WORKDIR}/usr/src/linux-${PV}/$(kernel-install_get_image_path)" \ + "lib/modules/${PV}" +} + +src_install() { + mv * "${ED}" || die +} diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.11.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.11.ebuild new file mode 100644 index 000000000000..db05c9266903 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.11.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install + +MY_P=${P/-bin/}-1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT}" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + kernel-install_test "${PV}" \ + "${WORKDIR}/usr/src/linux-${PV}/$(kernel-install_get_image_path)" \ + "lib/modules/${PV}" +} + +src_install() { + mv * "${ED}" || die +} diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.12.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.12.ebuild new file mode 100644 index 000000000000..db05c9266903 --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.12.ebuild @@ -0,0 +1,52 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install + +MY_P=${P/-bin/}-1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + !sys-kernel/vanilla-kernel:${SLOT}" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + kernel-install_test "${PV}" \ + "${WORKDIR}/usr/src/linux-${PV}/$(kernel-install_get_image_path)" \ + "lib/modules/${PV}" +} + +src_install() { + mv * "${ED}" || die +} diff --git a/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.7.ebuild b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.7.ebuild new file mode 100644 index 000000000000..998f07ed5e9b --- /dev/null +++ b/sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.7.ebuild @@ -0,0 +1,180 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit mount-boot + +MY_P=vanilla-kernel-${PV}-1 +TCL_VER=10.1 +DESCRIPTION="Pre-built vanilla Linux kernel" +HOMEPAGE="https://www.kernel.org/" +SRC_URI=" + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.amd64.xpak + test? ( + https://dev.gentoo.org/~mgorny/dist/tinycorelinux-${TCL_VER}-amd64.qcow2 + ) + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/vanilla-kernel/${MY_P}.xpak + -> ${MY_P}.x86.xpak + test? ( + https://dev.gentoo.org/~mgorny/dist/tinycorelinux-${TCL_VER}-x86.qcow2 + ) + )" +S=${WORKDIR} + +LICENSE="GPL-2" +SLOT="${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+initramfs test" +RESTRICT="!test? ( test ) test? ( userpriv )" + +# install-DEPEND actually +# note: we need installkernel with initramfs support! +RDEPEND=" + || ( + sys-kernel/installkernel-gentoo + sys-kernel/installkernel-systemd-boot + ) + initramfs? ( >=sys-kernel/dracut-049-r2 ) + !sys-kernel/vanilla-kernel:${SLOT}" +BDEPEND=" + test? ( + dev-tcltk/expect + sys-kernel/dracut + amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] ) + x86? ( app-emulation/qemu[qemu_softmmu_targets_i386] ) + )" + +QA_PREBUILT='*' + +pkg_pretend() { + mount-boot_pkg_pretend + + ewarn "This is an experimental package. The built kernel and/or initramfs" + ewarn "may not work at all or fail with your bootloader configuration. Please" + ewarn "make sure to keep a backup kernel available before testing it." +} + +src_unpack() { + ebegin "Unpacking ${MY_P}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak") + eend ${?} || die "Unpacking ${MY_P} failed" +} + +src_test() { + local image_arch=${ARCH} + local qemu_arch=$(usex amd64 x86_64 i386) + + dracut \ + --conf /dev/null \ + --confdir /dev/null \ + --no-hostonly \ + --kmoddir "lib/modules/${PV}" \ + "${T}/initrd" "${PV}" || die + cp "${DISTDIR}/tinycorelinux-${TCL_VER}-${image_arch}.qcow2" \ + "${T}/fs.qcow2" || die + + cd "${T}" || die + cat > run.sh <<-EOF || die + #!/bin/sh + exec qemu-system-${qemu_arch} \ + -m 256M \ + -display none \ + -no-reboot \ + -kernel '${WORKDIR}/usr/src/linux-${PV}/bzImage' \ + -initrd '${T}/initrd' \ + -serial mon:stdio \ + -hda '${T}/fs.qcow2' \ + -append 'root=/dev/sda console=ttyS0,115200n8' + EOF + chmod +x run.sh || die + # TODO: initramfs does not let core finish starting on some systems, + # figure out how to make it better at that + expect - <<-EOF || die "Booting kernel failed" + set timeout 900 + spawn ./run.sh + expect { + "Kernel panic" { + send_error "\n* Kernel panic" + exit 1 + } + "Entering emergency mode" { + send_error "\n* Initramfs failed to start the system" + exit 1 + } + "Core 10.1" { + send_error "\n* Booted to login" + exit 0 + } + timeout { + send_error "\n* Kernel boot timed out" + exit 2 + } + } + EOF +} + +src_install() { + mv * "${ED}" || die +} + +pkg_preinst() { + : +} + +pkg_postinst() { + if [[ -z ${ROOT} ]]; then + mount-boot_pkg_preinst + + if use initramfs; then + ebegin "Building initramfs via dracut" + # putting it alongside kernel image as 'initrd' makes + # kernel-install happier + dracut --force "${EROOT}/usr/src/linux-${PV}/initrd" "${PV}" + eend ${?} || die "Building initramfs failed" + fi + + ebegin "Installing the kernel via installkernel" + # note: .config is taken relatively to System.map; + # initrd relatively to bzImage + installkernel "${PV}" \ + "${EROOT}/usr/src/linux-${PV}/bzImage" \ + "${EROOT}/usr/src/linux-${PV}/System.map" + eend ${?} || die "Installing the kernel failed" + fi + + if [[ ! -e ${EROOT}/usr/src/linux ]]; then + ebegin "Creating /usr/src/linux symlink" + ln -f -n -s linux-${PV} "${EROOT}"/usr/src/linux + eend ${?} + else + local symlink_target=$(readlink "${EROOT}"/usr/src/linux) + local symlink_ver=${symlink_target#linux-} + if [[ ${symlink_target} == linux-* && -z ${symlink_ver//[0-9.]/} ]] + then + local symlink_pkg=${CATEGORY}/${PN}-${symlink_ver} + # if the current target is either being replaced, or still + # installed (probably depclean candidate), update the symlink + if has "${symlink_ver}" ${REPLACING_VERSIONS} || + has_version -r "~${symlink_pkg}" + then + ebegin "Updating /usr/src/linux symlink" + ln -f -n -s linux-${PV} "${EROOT}"/usr/src/linux + eend ${?} + fi + fi + fi +} + +pkg_prerm() { + : +} + +pkg_postrm() { + rm -f "${EROOT}/usr/src/linux-${PV}/initrd" && + rmdir --ignore-fail-on-non-empty "${EROOT}/usr/src/linux-${PV}" +} |