diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-10-13 23:22:43 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-10-13 23:27:43 +0200 |
commit | 19ce0a49ad9b336ee89e1e7b96f614dcd21bbfb7 (patch) | |
tree | 551deccb78d51e0aa5886813af41a95fab59c0b8 /sys-kernel/gentoo-kernel-bin | |
parent | virtual/dist-kernel: Bump to 5.4.153 (diff) | |
download | gentoo-19ce0a49ad9b336ee89e1e7b96f614dcd21bbfb7.tar.gz gentoo-19ce0a49ad9b336ee89e1e7b96f614dcd21bbfb7.tar.bz2 gentoo-19ce0a49ad9b336ee89e1e7b96f614dcd21bbfb7.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.14.12
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 | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.12.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 1741672624db..eef84f419fcb 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,6 +16,8 @@ DIST genpatches-5.14-11.base.tar.xz 446596 BLAKE2B c7ea616d473fb6e07af15ad0cd400 DIST genpatches-5.14-11.extras.tar.xz 3848 BLAKE2B 05f652b6f3f4052b5992c747ce8354c8bc6ab64a7197150c223f868c0060a55c289dca650d3dadc804bd39cc661dab56d7d8086c5dd9715723f17c19320960b2 SHA512 509e95a8dc4a1e2d1e28388575664006bc5c19eb5aa05e45999838c7cbaec875d784a85f852e3207a37047fb27fd5733a01f95c4d488ff1275661343cf5694ee DIST genpatches-5.14-12.base.tar.xz 459100 BLAKE2B ba32bf5be3d9e3e332659281495ecbe1b4cb683e1b5c3d1ab490d03ff3eee47db33e4f3f1c9c25f50230adaf267c23b01161d243c3acb2312352a40c8328b606 SHA512 1adc3a9ea9c7b3bbb89de6fb219f1cd0d6fb02c6f866c4a5519e70452799069d99e1b2491560bc408706ba40b0ab6cccaecfd34a1f11f76fcd8e5ee1cb78cc1b DIST genpatches-5.14-12.extras.tar.xz 3848 BLAKE2B 0bac1f83f9ebdc3b6860516313ca95d5ad2e1515bc587a3e6010bdbbd2bf3e55fe3acb835989ea874608149c3efcedf172451322ba5e5df821970cbd210a69ab SHA512 9e4c5445b0883680ff28e24d2b7af4d6dbd4d2f54c33583c5b91e0629caa5cac02b02996c52cf277909f057c8bd2f41342cd57f9e6ba9d8b4a8895fd70bcabaa +DIST genpatches-5.14-13.base.tar.xz 502028 BLAKE2B 54de53dff2214469b24b173b17aa6a4cfa2ac50d8834434c0e50c5538484e7a16c3822b677572e4d2bb444266196a272487df0264c2fc4bd25e6fc6a7b63fb8c SHA512 205d403607618c0ea1e82ac9ba48cd1e90e961e92e282a5bc2723408ddd7a85ca871e91b23cff37c3108f37f4040fbe063928161cabb175c78b7175ba8b60974 +DIST genpatches-5.14-13.extras.tar.xz 3848 BLAKE2B d595a77078bd8740dc61a5e2f35d75f19015e2d4b30716f484bc961b9631a994a3b1a8367a1ed2d1c46d3bea601013e4488870cec202dbd5b63cffaf5078ce36 SHA512 b1abcde0b14f51d60ae27e885f7b912b8531ee77fb9b6b4c2e062f5feb1eddc2687965c949ea675c1c425561244e1a3011a1c092404ce86b171ea60991c7cd2e DIST genpatches-5.14-8.base.tar.xz 315608 BLAKE2B 1a19a4aa497580d5d1ceed952899f0f19b13fa36a585206c1ce9b3c348754f6c94aeb7a697fadeda88ecd9e2b35e7d9061601bfbbc720cce00030b3b0de5d26f SHA512 5d131854f01730a807eba05109270f80d40b5f9db4fc7a9f9041200eb0025e4ef436a6df51d2020ae4cb737ff2846e080a318c92975be1d54a17e99131d6771a DIST genpatches-5.14-8.extras.tar.xz 3852 BLAKE2B 6ec8bdf43eca6d43f5e88f19e15c23e056d5f5144a5c746e3eb20170c445de82e465bdc5ef85f95a1c65582c458110437287d8f31022132fa092096147540c88 SHA512 d6a65dbe36ea6c5eb20f3df047493e3e3e31b27e4a812c9541e50deb4bfbe795de3f8eba4d901bf34a013d46ead22f849b77f3c2bd305f2b28cd039459f6c43f DIST genpatches-5.14-9.base.tar.xz 349596 BLAKE2B 801a5a1aec2e0cd1b52f1c21fd3349f91f8bbfd33c40892b28679ca89799f5589d333e5227674fed3326d0094f5932959427e31e5dc847aec261ebf164d2954d SHA512 a8463a1cda8084afd1e6613ba160c9a75b1a136331217627f9a6b7876f33e9bd4947cd6c059f481612962e430ef530fac246e8b48c38ca8f505b949296390590 @@ -54,6 +56,8 @@ DIST gentoo-kernel-5.14.10-1.x86.xpak 59178806 BLAKE2B 10a6f1e987b859ca3f1b904b5 DIST gentoo-kernel-5.14.11-1.amd64.xpak 68067146 BLAKE2B 8ce01c1f9003c298f262c23db11d837955dad760ac1fd39d9cb857500b64ce55c4a7b71823d3eff4443721e2430ca4966a304bd35023fba574de6ddc8ddd2cfd SHA512 2efe779c30023c4177b0f5d9d868f97018f887122d16a87a43ac5c32ce73b41b75838cb0d270930fe87cef788b9d1c9af7dc9e60e3ae4583b827105403beb393 DIST gentoo-kernel-5.14.11-1.arm64.xpak 63292538 BLAKE2B a4e485ebd2c1e757fabf159d676b52dbdb8be4ff3613ef1c4be4dff1cdcc928fbcaa2e7b223ed906b76d6eac559930a8da9b48c25b927b7d82ca5c5eeb0a31fe SHA512 fd2a6c74f35d9ac4843be51a8cb015af65cff36b7479b09e861fc5eae5333327792e8b4c013809e2880c7386ff00221fff02647b059842ae0b178b585c9f3ca7 DIST gentoo-kernel-5.14.11-1.x86.xpak 59165591 BLAKE2B 870935f0eddc88cb23aac651f92663a963e148a3c526bd30daa17ed3b63175c16553e8a8fc7edb7a728859d436199a12cf4bc230490805b0342de1a4a0033e39 SHA512 0ddd7b81473cb552ffd1bb20fee14191cff033145fac4ce1d6688a674db2e3f401c851021c2d39fdb05ef1b034a210adae8196c718220fc8d38508bfac1102c8 +DIST gentoo-kernel-5.14.12-1.amd64.xpak 68076172 BLAKE2B cbe6725fbbd725a2effedf4f17f6d1a91e5ebc37e355b378d4e5d4075b3d36200c3d7c0c5e0e92300c0862a49362bf182dcf23b2cb6c58a15579e4120a28978f SHA512 3c1af75b0c4215d30563b72f6e363f9d1631f2b36686740720b52c5468f59c3ddfb500cdfc95d9fab0333e7381b8fa81a4e4d45e401374f6765906feb6c41847 +DIST gentoo-kernel-5.14.12-1.x86.xpak 59179955 BLAKE2B b94956dae8d21e1a538252f402045d99ca9b464810d8df51cf3f86c4a29f7c21512fd944086711dd5e432245259233dedc068e1d1bd9e8a5de74824396a67b66 SHA512 227bce0cc990d9943a4310c5edccda99acfb71e69fa414a800a138e0c16ceb780e61fb68529680a93b72d64851914fdbb4cbff7ad70f8dafdd88d8ca82e3dccb DIST gentoo-kernel-5.14.7-1.amd64.xpak 68031586 BLAKE2B 7cc01200f01a93daf5f0c84b09e066474dc5dcef76ddadf5e43843a3bb8a69710134ee9546cbfc6da0149b96e480d59cc0ceb610608c7e6710dccbb9e9e185f2 SHA512 595ce0155ef9df5809d7c27ee310d3978bde477e6778468f467c9f07a60c43dd7ce6e39320d3e298639f01c18cfed5811de480d0afd884586d13f434c533fe6b DIST gentoo-kernel-5.14.7-1.arm64.xpak 63383693 BLAKE2B d8780cdd6306f36530d82b9a5b6a74e1d2caf9c4e9db31d6816020bc9415fe92891e418dd08f89628f3d36189c84f97c10b570091c2d1a94a494f37a21286706 SHA512 90ef111ef0ef68dd362c458c9e6ea15959713118787ebd8c68492bd204da83a212e5def456fd550c3f175565c262581855599adeb34692c65f54c2f2d7f1d06c DIST gentoo-kernel-5.14.7-1.x86.xpak 59157603 BLAKE2B 2c8d5d3786f9b2aa77d0ac7eb4b3dff0d534bebbd974ec43b8b1e7e9322d3a1b9db0554ebb3bf6943f00673e087bb1067f14d341836012bb46774e5b194f1cf5 SHA512 af337483437a9819d16235e9641cb3f9893e140091e31a06ccb1015a6e946189defb5b2d2d12afd19dffaef1828a2d101b01798f107457a53a93ada2d063f023 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.12.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.12.ebuild new file mode 100644 index 000000000000..f6712def1088 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.12.ebuild @@ -0,0 +1,117 @@ +# Copyright 2020-2021 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/~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}.xpak + -> ${BINPKG}.amd64.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 ~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 + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.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 + + # 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 +} |