summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-03-30 12:42:56 +0200
committerMichał Górny <mgorny@gentoo.org>2022-03-30 12:42:56 +0200
commit02240354a9dc63307593eb3afa3a96d6ffd08aff (patch)
tree99e704f16e47036dcd5208e7b000da3db0b82d16 /sys-kernel
parentsys-kernel/gentoo-kernel: Bump genpatches in 5.15.32 (diff)
downloadgentoo-02240354a9dc63307593eb3afa3a96d6ffd08aff.tar.gz
gentoo-02240354a9dc63307593eb3afa3a96d6ffd08aff.tar.bz2
gentoo-02240354a9dc63307593eb3afa3a96d6ffd08aff.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.16.18-r1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.18-r1.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 506339e9d9d4..842d41a1c647 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -20,6 +20,8 @@ DIST genpatches-5.16-18.base.tar.xz 761144 BLAKE2B f4d4b5225a2ef03e4222304978617
DIST genpatches-5.16-18.extras.tar.xz 3800 BLAKE2B df1212d36eec642a4c5eff67afe7b531b1ff85ee74e594f7ca3ff1274a85ac380c986458f40a5d378392c36600a122a929b0ff5bd730e9442e34d77f625671df SHA512 14700769fb872ab062cccd49e45fb530aeb75198bf9f5715a98c2d106ba088230282d120d71d694e3aa405a6aac1bd23fcff11864ff738cd38aa766862edefc9
DIST genpatches-5.16-19.base.tar.xz 770100 BLAKE2B 2633ec6c3161c7d58e778b8bc20b125e511973204371f2642b73a01b5195729be3d0ffe1a63677afaba2331538d2f45b3cf14380f9395cc8c59c39b7582617fc SHA512 c05e9e41b8bf259ae75c429a1014818bd517620fcdc3873343cda29c1b6338d8776af0ae97e24c75d79bf8382b3fac84dff8c3b066ec95a428de60569ee5e123
DIST genpatches-5.16-19.extras.tar.xz 3800 BLAKE2B a833a2ebd95684ff8f56b6ef78198353a06df41b41d41003b34a551e8ab901b34bece5f79132550c2d167a4bab782cd13fe4b4e22115cbc8306c5d48ed197f06 SHA512 0c82d90d8fd749c33b79c84171fa11c55b18d2f907bd97c544d08ab8a622b31d025930b9f93c4b43f669ac0f75e066fbdd06c169e7ff0ed3648901bcbc78f78e
+DIST genpatches-5.16-20.base.tar.xz 772164 BLAKE2B f29e052926e6c72417d93b7e114f7dd688def99891508b358414ea3930e3761d6e79e7d09722c4479ab7e0d495d53cbc1084270f8782a579d4ed56f58caa157c SHA512 00a034d6a2a79daf856c0cf8e6dd30753d89b95fb9de9a5aff4f5a0dad651eb53eea24aef7c582f866749ad3fc533ed7087f7dfd11600fef8cebf85d2cc9c58b
+DIST genpatches-5.16-20.extras.tar.xz 3800 BLAKE2B c815ea22d067c98f82650726a6c8a2e937c7bddb8b941e9d54c3014f4d8ea173cb1e54e76e23b6f767ae247fafbe02a8def6f39e5c6523e8c8cb12f098b8a34e SHA512 788ad08dfb0639c5ad42bb761d99bb534fdc5a9be54e9cededf90e0da34f13089b82609d8c7ccddc6fc1a28b913d4012c0e44b6768c84927e582f3a04be7ae55
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
@@ -72,6 +74,10 @@ DIST gentoo-kernel-5.16.18-1.amd64.xpak 69751992 BLAKE2B 33ebfd67c9f24d5aaf9132e
DIST gentoo-kernel-5.16.18-1.arm64.xpak 65160244 BLAKE2B 1f3f2311cdcce0639aec7acf34de091d4d23729b2424d825d55543221061cdcc70369324cf64c4347ee3cad8ff96e620215e1945dcba6f56eff7383f05aa0212 SHA512 8e107995f567ff08c29bc958ed61a3daa27fb9299cd0fd09fc2991e9f4baa11bfe6a99e555f3094349b645e8bf387d5452d2306c96d1ef74131d9b2f256a2971
DIST gentoo-kernel-5.16.18-1.ppc64le.xpak 58383255 BLAKE2B 7fd2c7614a283565b730d2f0abb6eafe17a13c54c1d54eb85153bf6ce027b10eb38b0521e498c418f463b4d1e4e8705709397167815a9896a8b7f521cf3c41e8 SHA512 eb0a9d5246f35869fce5ace063adca3f4e4fd06501d953d1be3ce63c19a7cc4d182a88bf6c61e0054ac55cfe5ba681323d2d7be4a50a91f1f81b89d82d5d9445
DIST gentoo-kernel-5.16.18-1.x86.xpak 60537655 BLAKE2B 5994b2977ed21cd76ac17879a4217e4da96b443274ff7fd1717545896fa72e03a587044a8cab598138aeb84290ee40fb993d951c897cff59e5bc80dd18e38096 SHA512 1da0d358e2b0f17633f94ba290a75ab70ba3676f68d045c38442fd40c3614f5b7d88a3aea6871ab1518a0a6940a85543dc18fd5350f527ceb6f10b66c618a130
+DIST gentoo-kernel-5.16.18-r1-1.amd64.xpak 69748607 BLAKE2B 89d9d6116eb5c4039f14dfd34876b7cd9df4d5c0ececed5eb1926633b0da76a715d9acf08462c9b8b55fa00dc484ba3f6acb3128246220f68d9cf16e82c86b8c SHA512 aad75b8cbd79334314578dd59925fe26ae63ca167b2f66470626db0ebdb2a31c30f7a309e4e6ddf0d3af461d4500316cea878af2796edf3f2a8cd79927ae6f3e
+DIST gentoo-kernel-5.16.18-r1-1.arm64.xpak 65173357 BLAKE2B 16c913c63557801659384a31767326968b309ba2d2966b7da59daa654226b7257aa9c9446f0268fa6671f3d687660f7c98bef8845f76b717d8b72737060dfcde SHA512 8dbc0fe7827cb095103324b81d038f6289120774c1b532fb0067afc1f795ec7ab9364302261d58aba9407561f56341c13f3976ed98b6951d5b998a47afc185aa
+DIST gentoo-kernel-5.16.18-r1-1.ppc64le.xpak 58464396 BLAKE2B aa8027e24e84fc4272eb3bdf90c468b3964cba65ecd2f433618b506f63fa9f6f62b07ae7550ad8041a9f37816f6e96f02becb60bf21fc15b251a409d9520f47a SHA512 a6ef4ec647f8a10fc915394ee4f98f53f41ed11fe188ac7b942be68c7f035d0a2bc843e2096129923248f22f888836856bd5fb1a7e89daad06dfb2069e8416bb
+DIST gentoo-kernel-5.16.18-r1-1.x86.xpak 60525309 BLAKE2B c8e4e7a38258e156eb72100c9c8d61a3f59f2a10c6c781707d10ca678792f8177f86aa277786d3387ec539311f3146d1a1432304b0800122079e06dfd352ef45 SHA512 e2878e3f8687587cfd92d45dd8a2db34ce52f1d58e1fba51c566a3f375d55bcfb6055e1cc315607ca80484a15227bd6cc7502fdbed81b3974ea1830e072ab441
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.18-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.18-r1.ebuild
new file mode 100644
index 000000000000..94c2cda7587f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.18-r1.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##*.} + 2 ))
+BINPKG=${P/-bin/}-r1-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
+}