commit:     d69ccd0a137cf5e1b0754137dce645623a6925c7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 11 20:51:38 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 11 20:51:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d69ccd0a

sys-kernel/gentoo-kernel-bin: Bump to 5.10.91

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel-bin/Manifest              |   6 +
 .../gentoo-kernel-bin-5.10.91.ebuild               | 131 +++++++++++++++++++++
 2 files changed, 137 insertions(+)

diff --git a/sys-kernel/gentoo-kernel-bin/Manifest 
b/sys-kernel/gentoo-kernel-bin/Manifest
index e103f0623cae..c7d908c7962f 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-96.base.tar.xz 2787744 BLAKE2B 
0d845fc9e5eb4cee41eb60756661
 DIST genpatches-5.10-96.extras.tar.xz 3852 BLAKE2B 
cd431b92e31f333d913f8607df5d3656dfb924c4dca63e86ac30e52b636773f82287481b4a51af57d51685bf55db2d0d5028bf3e5a3255de0481d277842681a7
 SHA512 
3612c26007ea77b2ef0657a1c11174f1468bbc1cce46cc189a829f66f1b242a54f29305ff405ed49356427f0283ffb23e5299ccefd7dc083492eb0143855bcd5
 DIST genpatches-5.10-97.base.tar.xz 2802920 BLAKE2B 
09d1dad0c97f969f645631ed73963c561e03caf32c777047352e838553c63802bddb45908c0fa72debbbc481838125e2e20eff9e022a75e7d5cfeb6b45cc871a
 SHA512 
d53660b318b5b68ab57613360294b816bd5d041a6c10048a3942186be0500a43d3313dd8a8b2d0337dab914f6d3a16d48acd06dc6c095e63f75e87ad8d3fc8c8
 DIST genpatches-5.10-97.extras.tar.xz 3852 BLAKE2B 
5a00cefa5655fd06944c70ead8e8dcad1759b98fd898a7c6dd40e1f6d3e7f25185b1b9a5d1ececc09a4896ce2cf47d2d58f23f1326f0ff626ed31b05386408dd
 SHA512 
afa2e426035ed8cc88d93f40a19e4978973f29434e94cc44cb18f585b4c8a377ec2c3d1212b9f53e2ddcf6cb70b47daec7b7154cba5646f5c31189587819f9a6
+DIST genpatches-5.10-98.base.tar.xz 2811304 BLAKE2B 
ff1de92fa1d8187366ff55b6603fe6f7deaa3fba4ed858d965be4dee9a4370df854afba5b6786ac9dc10b229b774b123cdc3bebdf689d42e1cb8b410ac06754e
 SHA512 
b256e9d14d6b75f175bd448180c9a92c8c001884815d99fca771cfa9f624383a3ac573b6fe904f225dd2f29cf024a46748e3d290d5f82ab45d4cf973291649d7
+DIST genpatches-5.10-98.extras.tar.xz 3852 BLAKE2B 
feb152aad31e7d10787e56e5c08d8c56c8b1feb05b62a92017dabdd83076ab60a7f78647e267c220445e5018450c33d357e4bf43a4fdd57e2c1b7248ca851710
 SHA512 
9d52b8172e2674f2bfc2161d191fe836a42f3b05c13e9874d4b1b5d65df8401fbb942cbe382a5ea02fc367780aa85c9e6ae86a038de66dd5be86a3330aaec93a
 DIST genpatches-5.14-24.base.tar.xz 865892 BLAKE2B 
5855b54e7ad2fe9fec353706d026b774c939f82967af5b57c41245762e0ea7fd18731faf1251b1b7aa814c2949d354ff24ce9f078dc68a5c8409490e5517462b
 SHA512 
d83feb3e3c9a32df559fd25b598cb358987f076c107a233a8503390f85132fe6d2a62ee163482439308fa7a62d15aa83ebf9bebaabe0e631eb831fbbbfb700c8
 DIST genpatches-5.14-24.extras.tar.xz 3844 BLAKE2B 
b11a8019a920d12c848fdc34514ed7352217e41f659bb7935c6211132897e8f948a8ebfd281b89e67e3993e3e5a03f2f32b0b4d3b73f5d1228e65812cf6cbeea
 SHA512 
a2b757955740078aa3891a6a696bd50fa35606bfc6dac0e739abe2869d5322554417b4bfd6a989d23a2d31bea14c06294747578025ffac3d77e8a91ea16f4ee6
 DIST genpatches-5.15-13.base.tar.xz 604984 BLAKE2B 
c674c2eefbc18f2a8d182fa95606714b9a74420d7a3ebb32138b714743f11a7c7b278d77d33747bd1fa1a46e8f8e8364a9238ce3acee6134f889fae267ab0239
 SHA512 
0741c183cf8def586fc17fcb2a44d81dd5494ac9430a5ca07d239079f41a7a24bb686406e0ecfccdeb8a38e33e99831d2b355d0e8e65e8dd2e30db5f4b0bbe4d
@@ -32,6 +34,10 @@ DIST gentoo-kernel-5.10.90-1.amd64.xpak 65604969 BLAKE2B 
ecd4a8a7777fe42b90cd4db
 DIST gentoo-kernel-5.10.90-1.arm64.xpak 60907501 BLAKE2B 
fd5f99f72cc7c9b68b454b5ae9b6bb3bdeb7f7d411c01d4ca3344f72e30b83b175c209eed523d1f56e896633d3be0fec89cd9c9f0e3da5ab6c07bac26cbfe085
 SHA512 
c3a50a48530bb88c23434d8659058bcc97cfebb9d8c3514ccb948020fbc940bb365b3870f79070b351c20fb1402967dd2b6c4d575ce59bb07ef6bc13f257df57
 DIST gentoo-kernel-5.10.90-1.ppc64le.xpak 55612962 BLAKE2B 
8d2334c4abb1b78263d16a8b787fa5516d46898ab5ce6a3afad7daa15669c255ca364b0e764a28b28610b8f416f65a4084f6d384f4a2c9eaf7c9f3146722a08e
 SHA512 
558145e5fc35962d7e8f305b1d5608215686e865646b5c54c13b05de4305f8fd873336cd239b91b7705411691b3575a69da0a187234399f625292e550fbbcfdc
 DIST gentoo-kernel-5.10.90-1.x86.xpak 57248274 BLAKE2B 
c79a3152528038c87fa540613e453b85206c7c344f51cf4c0d169e59eecfcb87f017ed1c0b0e8f2f157a0807c8d8d24db3f991ac5ae79c9736f3cd8f5313a422
 SHA512 
b79a1a026303fec9f7ea347df787a6590ae3f1516d8cf2cabc8ec7b92fc000c8068e67ae116445ef66eaef941c58306d63ce179e5a7af910bc011e50bc06c6e6
+DIST gentoo-kernel-5.10.91-1.amd64.xpak 65602056 BLAKE2B 
2ce090500ca8fdcdcff9963baaf308eb8e288fb56e6c8023f9513348ffea38cea6bbc2255b4059fb3f5643a74f0b91b11427797bf06e28ee068139b46b73cd3c
 SHA512 
1e605b131b09d9a2b9b37cd504c031da694338e94a7139f6610fc3ed1844ca32bf44cbd4f5ee87857b77f5d624956df191cc3dec2df1f4220ca66f256ba2208a
+DIST gentoo-kernel-5.10.91-1.arm64.xpak 60932142 BLAKE2B 
54423f43f2ebda621e193b9b16aa9bcbd59be77421852101dfd357f6b87e8049218c334f4afb5d9e3e17a90e07e413d5e65d61e62f99da91b291315c8e28ad35
 SHA512 
43964c9f4c1ebd357a4f0f6d8e97bdd33c5891df5bda413731ff4ed50e1b0e679da515a49d3436aefb4cd65d79b4eb2f24682033a8a6738b1457f6aa3207fd74
+DIST gentoo-kernel-5.10.91-1.ppc64le.xpak 55601480 BLAKE2B 
eb159b9a8c1f1925c3d1fdefcb6f2977a4c7fee3576bdd0c71044fb234c9b5cabbc5d96d28248c8910939403bc7f84f8c38e2e24a1ea28818b68b3ec269176f2
 SHA512 
a84e7610fd35f1d1b895f3ac2a2d62a21b6d9934e3f80635a069a8cf74dba61f7cc4a02b26b90d8ef35abb3e5b1e581f380cfac75f6bafc642267bc028ab243f
+DIST gentoo-kernel-5.10.91-1.x86.xpak 57289379 BLAKE2B 
4c09c3d15824271755960d456ed98db5a25aeb9deba7ea0015c824e75cf5942e574fa2c658845a197ceffbfffdf830e8d84e8f96d94ad18433f907be305109b8
 SHA512 
46768984f99cf0b453222fe3d7846a04edad3f5158354a5c946540952dd2cfd957eca81fae6e91dcc3cd844ddb68a7e03ca22c75fad3262861cb6d02dbf9f27f
 DIST gentoo-kernel-5.14.21-1.amd64.xpak 68158912 BLAKE2B 
b9279d59dfd6efd34660ac67045510048dd308cdd44b4626d3f5d24076caf2a2cae772cfa16e8d0bb8cb0ef2ad77309bba0e54d13a1239da8fe89be5ca3166c0
 SHA512 
04d399c11ece91e39b6034748fb0fda0ce13b3edc277eabdee2107f5f1264fe183c446b5b47db8175c8eeff124f8b5cdb506c436476ded3b016621abfaeac30c
 DIST gentoo-kernel-5.14.21-1.arm64.xpak 63079807 BLAKE2B 
e9bff436f4183e55f17b923386d10afaeecedfdead7b386ace028dae0364082f76c63688d4f91fb259999e1e635dc98cfefe220d5b117a4d34b1648c90b3f93e
 SHA512 
87f9ff1f35ef16dc842dcb9dd8ed68e6c39a45f1f0887498aa61dbab1f30e551f525ebfea6c710ed2a907a54b9a92cb99e4f5f3a719d0fdc0314a37e981fcf41
 DIST gentoo-kernel-5.14.21-1.x86.xpak 59244096 BLAKE2B 
c16154db406ac9c6626e5c37a33dfaf53c4051b37dd9719a6cf164d378b8bb4f419018ce2d944e8c4b63706e53061c7f9f80dd43bb8c9fbe7ccfdb18ccf830c3
 SHA512 
5df36eca258f0258b4c66b60511c7e92c5127b448eba6930d94bec83543053169a91ad349c65616dcfd21141bae984f85b4118eb47472b8a2319a5f1a80aca78

diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.91.ebuild 
b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.91.ebuild
new file mode 100644
index 000000000000..75080d99ff99
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.91.ebuild
@@ -0,0 +1,131 @@
+# 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##*.} + 7 ))
+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
+}

Reply via email to