summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-31 19:07:44 +0200
committerMichał Górny <mgorny@gentoo.org>2023-03-31 19:09:25 +0200
commit415f8793f69f7d3270bb03f0f11635f9045a3262 (patch)
tree8dc7c1fc457d7739eecf834fcd719d1b4dff59af /sys-kernel
parentvirtual/dist-kernel: Bump to 5.4.239 (diff)
downloadgentoo-415f8793f69f7d3270bb03f0f11635f9045a3262.tar.gz
gentoo-415f8793f69f7d3270bb03f0f11635f9045a3262.tar.bz2
gentoo-415f8793f69f7d3270bb03f0f11635f9045a3262.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.2.9
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-6.2.9.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index dccfab056fc3..21387871753c 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -40,6 +40,8 @@ DIST genpatches-6.1-25.base.tar.xz 1200876 BLAKE2B 7050f6e95a28f5886cce9b53823f6
DIST genpatches-6.1-25.extras.tar.xz 3812 BLAKE2B f73698c57031c9d7f5edd9ba2b865e32064c38b528649a8144f856bacf35ae3570d1fc936ee25a88bd52fd0765fff05bec42686b8b3fc5566df187bd57d59be5 SHA512 ac2bdccbc6bd1de82cbdfe4edac978e068445b8e064bcc6a833b04f15b86592304c19651884dc0769719ade1b220c8c0f704beca240ce24ab370621ad6849aee
DIST genpatches-6.2-10.base.tar.xz 477872 BLAKE2B e95784495c97ccdb838e9a9d206c372545b3b06e5bd58c29c30d14a6fd615fae205934c665ce018b58b0f53534e5d440240079489da5c26de64913c50456281a SHA512 6f3730dc20c6a700f403fd8a01e0cf0b5d871e10c415a808ce91c53fb43e0c636c9e2767eddbc61d52137675a2a620d0efc7c5b48b06906ccbdfbbac8c927bb1
DIST genpatches-6.2-10.extras.tar.xz 3812 BLAKE2B f4a8c6c516e523bdd18ea881469ea19d8b5ab77b989ff79a71690cd321ae8c8f323801bb25f0861e1f648cd4162bdfff3a0858137fcfc20db6a2414088c8b994 SHA512 098b6c26dff1e420314cc9bf3e716d3c946b7f3ee8f2117744dd050d9a1cb266e4622d25b5d61990902dbec4e98ed46b991b10f15e43697ee61ffccbbf88f485
+DIST genpatches-6.2-11.base.tar.xz 543376 BLAKE2B d034518061bff5104d3659da0cccdb7c9a17cb1c158ba123192def3b5b9e7ac49a4cdc3a4f040bf1c2c785941a84a17b2aa051d0f6ae5e52b5f589233f1796ce SHA512 6a6bb723a981b9fe935763e496c50316349e5b2d3d2dda8638b5500a9b6b398009c038eb1a1806c39fd4057f72b95074e38d649c04a33cd22b7bc6a0b21e1797
+DIST genpatches-6.2-11.extras.tar.xz 3812 BLAKE2B 73b6bd3e03d9cdfcd854ff29fe3184cc3c69003fa00955bc38ad756a488d35075b3db976784fb393b07afb98b99857a3ef09746d0849f2c6cc1c5d38dff52304 SHA512 e56b74f01db62f21cd4075283cb108f415035ea3775a67421adeede42bae42b88e463a900c19b4ace394926c901272a7658b85ce13e2a6c76c1b820ecbe9f462
DIST genpatches-6.2-8.base.tar.xz 378352 BLAKE2B bfdf83b6ed486ad759f6021e48fad9b980a87ba5c54c0f06dbb2af3dccc79b41c7065d5a3a11933d761da759d9b33b314c456b458c9c65f49de75dd2cd4402ee SHA512 48521d82fbb2475b7a477bcd87dbba073f6c72cfde784adb77e9b92c44bc1fae188179199aee9face7bf53538cc5f2cae491173da686a54182579d69585b54e6
DIST genpatches-6.2-8.extras.tar.xz 3808 BLAKE2B 3bb072914898f6f80f3ceef2ac92d44b3dba7aba6232febd7f7ad48232a2d76c3de4414a0822d0c7d45f632f02441e640a0911fa38a24ca88373807e04806ed0 SHA512 a4c3ca924859b487463b20fd470c2f157e404c0380cc8721d9a9c787519b1471c88f72daf57398d0c8582ec966bd9939c2082ad3b3cd71f93b761bf4443f3a35
DIST genpatches-6.2-9.base.tar.xz 419680 BLAKE2B 9c206118605a2da947feb5b7e4b5c0a022a8f88936af354679ea50fba6f7b99b27794693ea18b7511feb5c46ef9d7cfaa55a1d426d6181e977c73e8c41a5343e SHA512 ccc911b481597853d5ce05fb8c2e2436c1d67a30f567ceb219cc724f5ffc311b7e6a3c13c66ed964ca9d314ab9f00bcd27ea7f078260956b003c59de903c6e6d
@@ -136,6 +138,10 @@ DIST gentoo-kernel-6.2.8-1.amd64.gpkg.tar 82626560 BLAKE2B 1c5a4255a590d8cd62b20
DIST gentoo-kernel-6.2.8-1.arm64.gpkg.tar 71792640 BLAKE2B 204966d1d5d310f7f7cee93b6a26ffe18218abdc4fc757aea01a22ab2a128f8727f709464e1715a7939bf2c211c212686559df3b0410179b4a00c4e42928cdc5 SHA512 1b68503e319eb10477bd5975bd9fc5d5327407e131281a81ab93bd1f7b34abdd5b80f1c898665d404743cfbd65c23704181b4fbe2fc0933e718fc04394fc4cdb
DIST gentoo-kernel-6.2.8-1.ppc64le.gpkg.tar 63907840 BLAKE2B 8f41fd2e84be826ce6e069a98ac86a2ba1b5f08b4bbbe171ead013811207271aee2f132f0ea74b0ba22aa0987062a5f790513f29fbe0520f09fcdd9b75a01add SHA512 bc1cec7bc4a01fe9654722b5be55c3f3a7a6ae1ecad78f601b05fccb699e6a36202b484a6f1361e118399c6d60161c1cd4bf7b705986ad78a63d3ea2b73d65ca
DIST gentoo-kernel-6.2.8-1.x86.gpkg.tar 66304000 BLAKE2B 88cf2f25ae07d989e87e80a613c145eff171fdd52635c6da7dbc110429bfa5c9420e1aef3898b69b4659270b232ce897c49e29e91a51f77933d2e68915411bcb SHA512 382293570d9ee6e8c6541bc8da597125201a9c8d7b6348510379eef863b3951bba916183b302a7a05cee8af157ec97738adf35a60531a4d10255e2b6e94dd8a2
+DIST gentoo-kernel-6.2.9-1.amd64.gpkg.tar 82636800 BLAKE2B 3b73c1bb333d4a5d7b55cf11d0ced212820bb1de6eeb395b8807ee910c2b8df02f9230ba71dd45180c8b4f25d14bee8ac388999edae71693eceeb293d6b75880 SHA512 3d17a3895432ccd07f1e2cb58a5904b2e0e9e53ffbdf61f53819e9ca8b76df0fd8ea21973a0eff80483909ae3b1821699a29cfe0986fb0374a04b0f2fdeb4efb
+DIST gentoo-kernel-6.2.9-1.arm64.gpkg.tar 71772160 BLAKE2B 526c09448a90eba996c6e8f386941ca87fd2ed477d58f9a8fd351a36ed17ff8bd5cb6654b088d544d656eb4d5e6a636e3021781f7e3a4bdd0dc3e14941dbfc92 SHA512 49b7d2b68111d96116b19258b39805d0e58abc451aa9f7075e9341cec9d84fe8536056521078ad11cd2f6f8a745728584820a779b2a63a10ddac7ecd06b45ca6
+DIST gentoo-kernel-6.2.9-1.ppc64le.gpkg.tar 63918080 BLAKE2B f89362324ae125cbc8448aed7888e76f67527c64d4490cc2b4ff495070515a1a37a123a61d6566bc71d0dfa8d945cc3c56ba29c622e59a8b91dfa1105e207e08 SHA512 afb11b58f2eef7cdb9651dd03ee820b3e7cbf1c6679db9db2dbd470a74f4aabc4612ade41b10f6070d999fd8ebf092281a47dc7d2612e06f8d19e8721ab5b46b
+DIST gentoo-kernel-6.2.9-1.x86.gpkg.tar 66324480 BLAKE2B 71a95decd4ade26f976d74be9a39a9b8a7b74b1bbf543215b7ce97a50cf20441db7e4b239d30a845e9c8e3377dd1593bc03c5a316a47245bd469932ba6c37d6e SHA512 8bfa545e243d5fbd84b7b790a3812dab518d0713967665c27cdbd7e1132ade326174a2b11c5b87229f654192aeb4f573b46861f2456082cf77a6bd8a63901a8d
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.9.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.9.ebuild
new file mode 100644
index 000000000000..ed76d510db0b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.9.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
+BINPKG=${P/-bin}-1
+
+DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
+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}.gpkg.tar
+ -> ${BINPKG}.amd64.gpkg.tar
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.arm64.gpkg.tar
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.ppc64le.gpkg.tar
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.x86.gpkg.tar
+ )
+"
+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
+ app-alternatives/yacc
+"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
+ mv "${BINPKG}"/image/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
+}