summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-07-06 14:30:04 +0200
committerMichał Górny <mgorny@gentoo.org>2023-07-06 14:32:02 +0200
commit0fdbc33f866d238dc985b1ada3f3dac86cae7fe9 (patch)
tree80bdeb3d9af58b25f7d611e4afff03372c162ee0 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 6.1.38 (diff)
downloadgentoo-0fdbc33f866d238dc985b1ada3f3dac86cae7fe9.tar.gz
gentoo-0fdbc33f866d238dc985b1ada3f3dac86cae7fe9.tar.bz2
gentoo-0fdbc33f866d238dc985b1ada3f3dac86cae7fe9.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.120
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.15.120.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 7803352ca742..18983a67d175 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -22,6 +22,8 @@ DIST genpatches-5.15-124.base.tar.xz 4885784 BLAKE2B 7ae33a4205652539bb61901bb1c
DIST genpatches-5.15-124.extras.tar.xz 3932 BLAKE2B d995682455be830c9920de5bd7a0c51e1093df752e1ed4848fcec77924718f8a702ae754a0a9bdaf2c01190193778dcad33282fc8b8b0c1b63f5ea16e33ac317 SHA512 ff054292b61efaac5a9936aadf9de4eaafbb0be06e45a7b6f82855b52bf0695fdb576244dfda48b9c869b2fdfbc2cfd7d2e19ca50a4181efe9807c2048c96958
DIST genpatches-5.15-125.base.tar.xz 4915860 BLAKE2B 96229c43a47f523ea88a8085aa3ef976b6b07ef4d438fc9118fbd8abc6868548ba807c51b6aa44f7fed99269381872af39d1c77eabf14f4b34dfed7a04af9be1 SHA512 7c65da0e4fe7772d3e9d631c707eda473990386d70851e533f47c52dd9ec4362be18caab5b685d2abbfcca25ef91705fc353c77c2cd0c4f209ba70e39a225e53
DIST genpatches-5.15-125.extras.tar.xz 3932 BLAKE2B 9cd0bb8e60765eeb2ffb6b7470879ae235c8dce5a1ded0b29e2b4dd69612ba9613a0bf57477dbccaee445d99cd4fbca9cce47a6ca4b2c5d8f63c88d416e9063e SHA512 161b7052020538722417f0f2c4408e4e2505636798d960320ff14854bc167037e1479e9505c0ce52be8d9e4ac4066b3ff976d6175ea23838272d508a4732fbe6
+DIST genpatches-5.15-126.base.tar.xz 4920632 BLAKE2B b35059e13c2c9fab04f23fd8b41ad37dc1eae2d7e8e505c87506109471e0546f68428c06065da496be3a9213a4e3ad288dd507d7b71b5d9549d7f1c60c378ab2 SHA512 3bcce914eaffcae0f732267f3d4cbef1592a4cbce4ed7277e6aa1b791f006fbbd0858e788ebdaba9502b871c0c9750e74df7b05e98f68318932090f7a9cbfb38
+DIST genpatches-5.15-126.extras.tar.xz 3936 BLAKE2B 7bc9d712efe225829760abd48dfac3bf1556750189f99dd77590fdac8d4f5aa1491a49da029e9faf6dcabeb32aa0b2b725223566bddd3d43a41ca0432348420e SHA512 f196a93dc976eba4bf3a8fe5d52229de0e4a4cde31c58be63be35ab65c4753969e4f0ff86b77ef0d7375392b55cfecfa93a4d963d79f3c5753efbfede6a19a17
DIST genpatches-5.4-251.base.tar.xz 5798892 BLAKE2B a519f23086a440d560e5301b77aa1a627e97d9c2545adddc6fdfe9b55b35dcbef285a6e92d4ab615b517177723875a53b6b5f1dc9c237dec3f23acb511e08be7 SHA512 c8d228cb18f2c64631ee5a40d7de58e78c7fd2c452f54101d0e6f67149d5d3df30076b461dada5bd862e4b97daf30a6d15c3f50526b46156d9ffca946b3c65d7
DIST genpatches-5.4-251.extras.tar.xz 1812 BLAKE2B 440f5d63b80e31753c46c2c2bb07bfdd257cac6847dfaed63a19c9e255da0e6ca31f5535718572afa143918bbab9d8651b0d8462f5bce619866d78acbc063682 SHA512 54d1ea7625daff0c8d50f8abfba616378d8bc4c62cdfdc03648bec9312803464d0c662bfa619c357a73247c00b22b9725896cec5aaefc66ef811e0f97ff62e91
DIST genpatches-5.4-252.base.tar.xz 5808300 BLAKE2B d5cb4fe312f469a331269eca8604d9c43feca79bc6778af670fad859de3098c31cf0408fb58d95f233564e0ab2eff7a45ad041b8fc6bb97be0f93dd911224b62 SHA512 4970b66f064f53db230877fed6434e39aebb727438465667af6eca8603b712089830789c16bae5fe0249dfed0cb4bdbf1ce695cc7a1ebb6ab64bb61b1b38a5cb
@@ -114,6 +116,10 @@ DIST gentoo-kernel-5.15.119-1.amd64.gpkg.tar 69539840 BLAKE2B a239e9c01376db99ce
DIST gentoo-kernel-5.15.119-1.arm64.gpkg.tar 62504960 BLAKE2B 8b7071d478e124e8dd30045dbe0c5036dd733a08779dfa7d6ad43a83919837906b0566ee9e4640e21f5b2876d11409238e7ec1e03776778cf1e1133fe0bee225 SHA512 1043efbb4f19d7fe6659127a94dc307925d33b397967e3c851363b6ecfc9bcc17733929deff98176e3ee99da8ed86242e552ebe0c85fff376dfaf45aa31d1551
DIST gentoo-kernel-5.15.119-1.ppc64le.gpkg.tar 57098240 BLAKE2B a2df0752cf27dae8b8faa318742dd664b719e80e3776f1cf4b5f0d6586a5dc802371f947896d86537c67b23f30a039ecc3adafcdb9380a26d014945dc3aab428 SHA512 ffd7d66308e006d42fc21ccc984dd1b2c650988b4763595bf79abb52f3b9896798868e66566fc47ba528050be2b2b77d29fc7cb604f9ae38d008345a55e2310a
DIST gentoo-kernel-5.15.119-1.x86.gpkg.tar 59115520 BLAKE2B f0e624897ba26d0a7152fb49b85015f10481c734592531ff926906c23c758b009f8797fd446df43bf46657e1f8bb8404bdc94fe724d1b40b43c698bcfed5068e SHA512 f5cfb22d7d58615e9d5fa6748fbcd22c360dc69202dc61e1f60546cb86c1c881b126065fa0250fa6a2b197ef6b309ff6e5feba0a2e96d3a4b47cf41875a46300
+DIST gentoo-kernel-5.15.120-1.amd64.gpkg.tar 69509120 BLAKE2B 7836d1b163b803fa52d1a59d9dced20b5ed0ba6cf0b7cbd828e1ac03af095d9a0e1867ef72c6f093b4a74cb8b2e793c87df31b05ce1a1d187359cf3199afdf84 SHA512 935579730ccc367b0afbfeab5f54334a738fc4c4b5ceeaefae9f59bced8107d941ea712fd072370eb718f74e56bea51b03e7fa6d87a6e751f95b906f81d636fe
+DIST gentoo-kernel-5.15.120-1.arm64.gpkg.tar 62515200 BLAKE2B 37e13308537e4f99e44ccd7c334a60e3d9e037772bcf86302af868f307a65819b72f053eaa7cee5891280afaf5e579accb73d2e9ad4fed1310ec1574d9aedbdb SHA512 fa11558fcfeec38932215d9ce83fdfcb364c7f3be15f93668c8c5d493d7f44f38c624396575f498c1330f0ed565854c22f85e04334dab65e0c1d402841aa91e8
+DIST gentoo-kernel-5.15.120-1.ppc64le.gpkg.tar 57098240 BLAKE2B d322c95ef94c89116dc51dbc348016b3868c002aba1fec13707fe2d4bf7781043ff0d68b1bc833106c9a347b02f732c5912d5719f8a98c4742ddde59b851a3c7 SHA512 a8197ba844047722f758a464cca25c3ae1d32df5952c29aa33a5da65e25972667931c75442ae61bf9c8dee149b39b074da3dd32d74bcc19f5df8f7e5376a4471
+DIST gentoo-kernel-5.15.120-1.x86.gpkg.tar 59125760 BLAKE2B 6ec9894a6fb8b1ce9281d9ef6358b3aca1eb4b79939c01e526391443fbcd048475ed97d65ea343a7299e8584a2860e3b31c709b48211086d52176851cce5d65f SHA512 6e6d90d96f090e3b6b3c27f0fb50b4cc5be46e3fbcfa8cc7cd786990cb0fb38401a768256b7624bacf0a95f16a815de7f92e2c708c58915b2aedc5d4cc030b0d
DIST gentoo-kernel-5.4.244-1.amd64.gpkg.tar 60528640 BLAKE2B 304077b1c25137f15984e4ce6593519186eccdf491eb98046a12194651ad973d9cc3a9bc83f9806b637e3898443c9fc0f97449528df6dd91c03ff1948dadb528 SHA512 a518e841d3b02afec7118cc344476fea2d643c9e71289bff6085e3bdd7b77e098e609b1d24336426192b5c22789f34e779d97441c6d5d22cd2b9d61b5712a9ff
DIST gentoo-kernel-5.4.244-1.arm64.gpkg.tar 56535040 BLAKE2B 11eb5cdfaa750cb84a64f804af672834d971e8bc8df67d3c86dcb3274d710f4d4fca4ff8d611b520dcc3a9fb4c36be1892b7fc38d06bca84545ecdb4ac21cfdd SHA512 ba63594c7546afbace4eee7102c05d66f8d93d596baf889b0224d753d806c96715a8f2088237ae1142ab7b1b5cda96fab38a2af1600711402ee25aa2b5ce016d
DIST gentoo-kernel-5.4.244-1.ppc64le.gpkg.tar 54210560 BLAKE2B 879d7c2ea090a0f09a5852cacd2409baa0efcc8436f266f02730f107ec3dfd90ba561a35bd83c5b5a7bbd68a193a4e5062f5bae1cd5fd7aa7079ea4d59b2f2cc SHA512 2bc13bc6f4823c2316d31c25494345abb79db4261320209cbce07b504eae4e70e41bc95af6ab4c01685fdba610836d5dc4de21e446972c31073ac0ef8ab80da4
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.120.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.120.ebuild
new file mode 100644
index 000000000000..83c6a5e4fa8f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.120.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##*.} + 6 ))
+BINPKG=${PF/-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
+}