diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-03-23 17:17:50 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-03-23 17:38:43 +0100 |
commit | e596f6bd1bd48aa80454cda05eca877b10351c86 (patch) | |
tree | 2a3af247f28db77e3fca9526e500a8ca27dc4cdf /sys-kernel/gentoo-kernel-bin | |
parent | virtual/dist-kernel: Bump to 5.4.187 (diff) | |
download | gentoo-e596f6bd1bd48aa80454cda05eca877b10351c86.tar.gz gentoo-e596f6bd1bd48aa80454cda05eca877b10351c86.tar.bz2 gentoo-e596f6bd1bd48aa80454cda05eca877b10351c86.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.16.17
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.17.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 7f4e135773b1..abf50a3177f1 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.15-32.base.tar.xz 1289524 BLAKE2B 4fc3b82df9a96c5e91cfb93bc685 DIST genpatches-5.15-32.extras.tar.xz 3876 BLAKE2B 6dc352a080f10cafc7a24503d515a451996a3c6940b7cb44dd661bee0125ff993b1c4594e808a087b2d15e640b8b921b37a4607e0e8312645fd0ba5c84fd214c SHA512 8d6565a8a5a39267b682d592cf757dcfe2e7f33789fe26a596ad5d400f1821f37081a37bd25cb6fc8cea28e83448cef937e772b138314fb239ba83a288e94d44 DIST genpatches-5.16-17.base.tar.xz 753196 BLAKE2B 8f4be6ddb70a7407f6515d180ae8a65eed54c7a7aa3ffa4175500f532036bd13dc718a77fc9cb442f6053b1cf0f8e3bf2de2c0954a5bbfd8957a99162675980b SHA512 9550fd794ffcb29ed26be5f99116f8b53a5bc9ce3a9fd6a79d221e7f7e5e81be809eda7a8becd253361ac069526b141c414e132f11d8e1eeef84f5737c03afd0 DIST genpatches-5.16-17.extras.tar.xz 3800 BLAKE2B 9224e534e09bf58189462be87516fa21fc37228fe60399ef670e40320a8bcc5edbcd0371b5da5ed445ca84c0127ae6541a07999edd62f67a8619f977c70d08bb SHA512 92a0580b4e38c43c3e594fcae0cd6ad1c04621e8ea543ee7c039bd47bec9229c23f72585d98d4f237e5c80fd1a3a21205a4b688ccd67df77e048d4b417dd3884 +DIST genpatches-5.16-18.base.tar.xz 761144 BLAKE2B f4d4b5225a2ef03e422230497861714663b430397d3118c8e1cd880eea9fbd2393a4b6848c674cce8892fdb145c06e4b3d828be05836d76a1c56501e07d840b4 SHA512 472f456ff01545dad0a9e21a3560eadca63dbbaa5dfea0cb4496d3ea8f10fc968967a97a7d483ab573312de53b6d719f8baa21761feb7b7474597af53e50abd0 +DIST genpatches-5.16-18.extras.tar.xz 3800 BLAKE2B df1212d36eec642a4c5eff67afe7b531b1ff85ee74e594f7ca3ff1274a85ac380c986458f40a5d378392c36600a122a929b0ff5bd730e9442e34d77f625671df SHA512 14700769fb872ab062cccd49e45fb530aeb75198bf9f5715a98c2d106ba088230282d120d71d694e3aa405a6aac1bd23fcff11864ff738cd38aa766862edefc9 DIST genpatches-5.4-189.base.tar.xz 4492528 BLAKE2B 9fc86ea4e71968c77f4fe705f5e01220545becc1f062a53875e4cc451a880a2482d70c1830b98ba447c77131422cd8305f2636c702737a94cda749f0927b2706 SHA512 f4c9946b88d8b61df0d267d915fa047de8774603c0e98fa6ef2cbd930e5c3d83fe4755327dce54739a580d674260ce45c3cffef9180369821f947170398a5de7 DIST genpatches-5.4-189.extras.tar.xz 1812 BLAKE2B 04e839c3c648cebfa8e15aa956670ecfd1c7a830960e7facff9015ad37c9b8ec0a85f510a559846163a277da9b669a0512d22b45b6ac7c1dfc9fdde99acbe9da SHA512 9357b36b51ffc30e92197affa4e60e0e01180c218cfdd17c91538b2ac12ca79fc534ca0b4f6a019ff3db97c8d41298fbd383d8c4c7fd0d8b1baaaac0494a330e DIST genpatches-5.4-190.base.tar.xz 4508904 BLAKE2B 89aa6c02b3f145a6b5efc42fc880c297e1a4f685f622d6554c3a8a3a614c980bbc3d76b7b4e57e54d98db7279cc4a979a441d1ce4a0812380a677dc99aed48db SHA512 b9955dcc6ef00928b0dfd0ee4e13c5646068c488f0b4ded998a47d73532aa6fcb615c34415eefa8f70a2a850b42fc13f0c0b753ddadece6a10737c628238af7b @@ -32,6 +34,10 @@ DIST gentoo-kernel-5.16.16-1.amd64.xpak 69716835 BLAKE2B 961d065169c1f657e949214 DIST gentoo-kernel-5.16.16-1.arm64.xpak 65166903 BLAKE2B febed4db841a18c45e63440a4b517401592b2fd25a1dcdfda5107ffdb4e5c1d4284af2f2ea61964f1bf9519069f5c8a7fecdc1eb9c19ea0cdfd269911870481e SHA512 bb7cd2fd38a10d0608b7fec6a818e323292747616171411ba5a47886ef92c3df3cf7402124f0740f3a12724db1c64a94c1c76a5c6d4ec329018af12196fd24c7 DIST gentoo-kernel-5.16.16-1.ppc64le.xpak 58506473 BLAKE2B 8d66bae7d90141c67d7355740d13028f8aa475b829e94ef26f9e338db3564d758009e4e3fd3ae2dc209e7bf6dbd823c1d08b06d39c3dd92613002c0555a06ce8 SHA512 c9121593ea8c810a49120d2230c51b1e1335386415a390f5b37b80b02adae4efde7d4d5efc1b6be3e00e3266cd2c7cc57ee0815b4d85aadafbe1b8c45ccf8e70 DIST gentoo-kernel-5.16.16-1.x86.xpak 60520565 BLAKE2B ad6c70e2635187fa47d57fb98891f3403f0938fa76c4ae112207868721eca61255b38e3941b6ac39f8e533cd7553710adb165b21c7d48c40426af887d7597ebf SHA512 1da03d0227738f6c7e0f9d906343aac97fe3c899f0af5a54676fbfa56787d904b84ad9c88ed53f5434df95134150d1c5ddd4b33cd6483085c97e8d4d1550d95b +DIST gentoo-kernel-5.16.17-1.amd64.xpak 69758884 BLAKE2B 5217ed16f00a163000b6e2de2ea9f23c8a782215bc180f9455bcdb407f8fd674976b0c3652a72b094ee32117c389ad7ff83c5cd6bc47cc7cfa99e4f2b6a13979 SHA512 ef1c281e0b5ef8b63c454957c1c6451805d70a3ebd3ea99ff4e5729bb15bff670b9c2de0a908419afc1c7e6fb9d020035c6926144b2f62c648961268c32c0f70 +DIST gentoo-kernel-5.16.17-1.arm64.xpak 65173778 BLAKE2B 87b439dcde51d629631f5198bcae0b67cd4f0ce5d3be70e969463b38e6c2179af46fa102a13d855fe4ee1600ea1f88be5aa19f8d3e6719a675084af0b0f64f66 SHA512 40dce11de662131be7617532b21f6fc6c2e05a3ac7e9b84cfa52a76b1132a767054520e51b5584c5831e0d84d0f1731f9632ee199c23d4e2878441b2f162f913 +DIST gentoo-kernel-5.16.17-1.ppc64le.xpak 58411662 BLAKE2B 88fc0e03e85a1322f70d6a7487912444d5fea44f764a2abc9549d4cef562b64a58e0c4a1091bba2846f1ce318b45471a047f1239302fde578ac31e32022b0459 SHA512 4b2014c7b0a1caba79edd355243d069c4497f562926f4998b6cf4258843385a06f90b19089e70b4e5b5351c65a0a09419e6ed3f58a7af9a8bdfa8d50400274ee +DIST gentoo-kernel-5.16.17-1.x86.xpak 60531348 BLAKE2B edef98044c6ad89c41ad50918f492d283061c8d98ea057acb4a427eb510980635a8e6d3a2a0f8e6aa2ea8e3f0655fda65bdab691e426d6ad17424d9bba7e2b5a SHA512 ea83060c8f1ebf89c232f2d1a4653627ca4cc09374e38636aa85e0a1cba19c235c3a820e65907be7a4b63458d53602879133b23ba520312cb852d7cf0e96b925 DIST gentoo-kernel-5.4.185-1.amd64.xpak 61445114 BLAKE2B 4ebf21c0948b9c962811da81190911efd138af002286a2d0c6790cf7914eea150809bc192be91314a6fe40fcc0664e924491ce5642af4ba247ee51f35265eead SHA512 1f9e43457b0a1c0e486ce15d2d425cad9204c07bad4bc687bf84f607c4be6ba9e561876b0ec872bb8751ac7a1a3532e635f1fa52e840776c45e8ef69bce570b6 DIST gentoo-kernel-5.4.185-1.arm64.xpak 57658156 BLAKE2B 1985c2f23353876feb23b9ddd225cc21e1915c7a56135c75b99119201902f0caba318f5507d932a14e023adc547bd05d66cae202eb49070f99aee6d0def7d96f SHA512 0bea18b340d86d7515aa5f5e17d5476d5550c7a0a4c3ff4ae937bf77ccede95f1de0e1afda1fc47d19e2c59b95ad03b678850b58bde2d33f31e981c9859054ad DIST gentoo-kernel-5.4.185-1.ppc64le.xpak 54842628 BLAKE2B 4b356f2f5aa08ed370c9ab3bad90041018c2be1ad8a26cf25f97d244f868657963a01fb63dd0b560dc4d13cd47cf169ade5a9232a7945854fa3ea6a01d7d9301 SHA512 4043c5e7c7c28073617b10b34b404b56d75d969d32a1bb863f942a3d4dd3d398b8227cf5089f6ebb02fea29e4a687f9fe4c92451c1e2fa4b303fe291822ef1e6 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.17.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.17.ebuild new file mode 100644 index 000000000000..f348ae3114a4 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.17.ebuild @@ -0,0 +1,135 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +BINPKG=${P/-bin/}-1 + +DESCRIPTION="Pre-built Linux kernel with genpatches" +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/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz + amd64? ( + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.x86.xpak + ) +" +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 + virtual/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_unpack() { + default + # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg. + ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak") + eend ${?} || die "Unpacking ${BINPKG} failed" +} + +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 "usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${KPV}" +} + +src_install() { + mv lib usr "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv 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 +} |