Skip to content

Commit

Permalink
sys-kernel/gentoo-kernel-bin: Bump to 5.15.72
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Oct 5, 2022
1 parent fc7253e commit 4443f69
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys-kernel/gentoo-kernel-bin/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ DIST genpatches-5.15-74.base.tar.xz 3006272 BLAKE2B aa1fb6c630e8ec452a067f56682b
DIST genpatches-5.15-74.extras.tar.xz 3932 BLAKE2B 56ab108ca50876eede0c3aa9abdb7c1b4aba485b9ebd5f72b065d95e5f75c776b5454f457886cb9f3d3107438312f66af94543b3b95cad9b4dda20b512aaaa2c SHA512 dbea0a898270dbfed6f9622de259a54dfc2f858f32f7b456b71c5de7e614f390e87e200e08fedeb930622808c1d70d611931f4e4b36f227ab9b0b35307e35623
DIST genpatches-5.15-75.base.tar.xz 3037892 BLAKE2B 33132be38bf46fc9a17a51708139f49f99bc66b839c5ce4f24147df859a5a781374b617c4b65bde9fba539aee681b5db89f0a326737e7c08b68c187c45752480 SHA512 b4837b6a8ddef64d717b2d92ad932523821b50c3d1c649c87a7a7cd9c8a345f09894f82ac41a5974ec24ae6407b754558b39e06cb1eb83e0a128c450ec2cc755
DIST genpatches-5.15-75.extras.tar.xz 3932 BLAKE2B 7338afccdbd2831cd862ffb7a1aa4b694c62a292b4e72a9ad379899cbb010c3091944c0684bfbb81376ab833dca7e46745a02ebdaa6d33817de36b6506e6bb2e SHA512 ccbf4f6a5c5f3c527c19b5819597e1057018745176c16c159f497aa4ef158af9dd7d0e2c353dd83ec3e05e87a7db213030c9c23dd41a668c2a69351ededcfd41
DIST genpatches-5.15-76.base.tar.xz 3052120 BLAKE2B 679e6bf674b8ee6d550984af7c3603c6327ecd94b6dc2d6dc3dc44129353efb15ffc2993dc6d7d84f00457a7e81ed3038471f8286503d8954abd859ff24f8ab9 SHA512 d357e1991c65a2dee3346d247c3bdb71e1af1eaaf250e3dc09bf1aed11b1bc4ec8650ff902d281a5c9ff3d97184008061d0b9c60e7f416a5fbe43337aecb70b3
DIST genpatches-5.15-76.extras.tar.xz 3932 BLAKE2B 32f0645af1e0c0e4f2312a4310e955c3c12d9b802e3ebce2639f3e0f331a10cc2be237e43819921b5478c5ac6e430ea77671b5f08a0e6398744f018103875c24 SHA512 7cccdf49806cc6ede16dd3f0e16be89fdf8022f01005db3026467ceb680a36c131e3342b4ace26d77e25dad628de98dbdfed0658ab9ad7e41acbe6573dd1cabc
DIST genpatches-5.19-11.base.tar.xz 766852 BLAKE2B bc8fa5969dd4c75920a094b5135f60d728a36a431fb5213c338f6308761b7f8ce24e3991a2de70b7c2d87a9256cafa3b22db7c683e38fe10363b15043073092f SHA512 6cd414842f48d9ecf85e0f07fd930e526db089720efaf95916b8ec9394f458a6b1bf178c8e55d6ecf9a7ec5520cc43c50cf1248a8c3467ed069594123586ee1c
DIST genpatches-5.19-11.extras.tar.xz 3804 BLAKE2B 3186d10e8a31ca501f36ae3e7945acbba7a17cd7d006b51a7a4136d2c1064efb070fb7870f4b1959eb87456131608b5d31a91987c79f8720b267537a38643211 SHA512 10c4b7c51bf4a891ee04826df0da29096e31601126435bcde168f7c3d32416395844e03d3fd55b9b225c7c8dc0216ae8691705c53786f06e0350f6fb1ec03f69
DIST genpatches-5.19-12.base.tar.xz 780072 BLAKE2B fe63576626355f3fa1638ca4de11e63342b6302c068401bd6990b56ab96d28f7bfe3066dbacd28022e5117347980e19df06dce20b021d67fe5830c71bc722470 SHA512 ae55b6c32eabe68ea2a1d4a319b0ecd5204be1236275b6d113c9fb44ff449df61e9a10c28399b4c1853763779145c71708f67206e98ca51fa535a90e3b316ebb
Expand Down Expand Up @@ -70,6 +72,10 @@ DIST gentoo-kernel-5.15.71-1.amd64.gpkg.tar 69775360 BLAKE2B df73c81ec231b309f1f
DIST gentoo-kernel-5.15.71-1.arm64.gpkg.tar 62853120 BLAKE2B 120dd43f0084d71603fe249fb4d96d9c5f2a9777022cada511c5694e597c687e9584e5f64b604f4d97c7e825c36d93de328ecb663ad6a7adea954ecd1f213f6a SHA512 a9fd970a6923a37b3cf31524fd85c3ffdb60354f3e02b10cb52df10dc8ae6547b2da0a20cf87b47d3b2cbf262ac16c481e16b74b0bbf7d400b83ed5a6e34839c
DIST gentoo-kernel-5.15.71-1.ppc64le.gpkg.tar 57200640 BLAKE2B 293bb67d4ec38db63440cc217f21901376479df29e28efa2a6187dcda09f1de0bd75c4cf870bcb0916372a9b9ba2954ef1eaaf93e42c55b129595e15cf030b13 SHA512 e2e8c62c1a14fcaef0c41d1ea7bc3229c4437c39e29bc03882b25b3195ab9a8075ef42b20e9126f33a37eb170ab5ec7ec45b09f83c8799d6bf3a24f7e2c412f5
DIST gentoo-kernel-5.15.71-1.x86.gpkg.tar 59115520 BLAKE2B 6a4736b49b8fb2394efd5011eab1327a99170dd672f30d1be2af064bfa9648a0641c9d0ecb1cc450fd661efd5f8bd8efcb3806f0aed8b0063c7d6339009b2d1b SHA512 e4f4c47cdea52a5c4c32fe646897775eca5e798fabdd885b57c634fb9c31a7d8fce64f2a391be7ab486a97718ac52e181dcd7e95f2b91695a1efb7ceb417fc23
DIST gentoo-kernel-5.15.72-1.amd64.gpkg.tar 69785600 BLAKE2B f8a046fab5b3fce34612cf2a257d85d178a7384ddc91f0a58bf1bbbb6387151295747cdbaaa610ea74ae10cc74703fe9a966e4d7577e30b0e9d4406ce0495130 SHA512 4c4a2e3094af3835808b375625faf251ffce5a9548f99bcb9db1af8601af84d571ae8dda7f9391be315f9e465de4f28448d758c0a4d9ee98bf49dc35312d90ff
DIST gentoo-kernel-5.15.72-1.arm64.gpkg.tar 62853120 BLAKE2B 2d39a044dff9faea295ab33214b89f30bda38d329182779d440a5e2f138aafc798bc4f199961586e040152bf45868eee9e9f3ba35b99b048b7ffb2b75b849dd1 SHA512 3c63e8b8f8776668c9fe677d710c8e0f4cdbdafa2718f721d1cc9f2c9eb8070dcb61ac1c967adccdac0a6ee143dd5fb93d3aea4edba75f6d570cd92042142650
DIST gentoo-kernel-5.15.72-1.ppc64le.gpkg.tar 57200640 BLAKE2B 81023fb379ed75a613ec08f0dcebc16db028fe8dfcadc6f70b73a7ea04b2d17be3a45920996a9209ab5e45feac13347e0d0912ad425527e7d53442d532cd3c5a SHA512 fc54d901d2e7bf49be3c5d841a1314dfad7ca774729f6b8610aeb196ee91f287cfb81564d4eb255500f13ec6435ca4320dcb9649f00321effeb47c712ff0fca1
DIST gentoo-kernel-5.15.72-1.x86.gpkg.tar 59115520 BLAKE2B 17798706d9ed3d4d13b83e5c729e12090e8b59a346f54bcd78720eff9c8c27f2d352e45e7e67dc8238e564bda23d1dcb4cf32e3ba0db00a5fcc27f4b541b044b SHA512 18e3e0c26725134a1dd273da56f31a08b16eb23576bad3d9cf6618b8e916b79150752d8d82971be41ee88e4fe45386c5642d4a620c2036177d637b074655b771
DIST gentoo-kernel-5.19.10-1.amd64.gpkg.tar 72509440 BLAKE2B 0ead0bad313b87aa2a048afa2d1a6385a00ef6dcc309c6c8df51568501c5d0c8b0383dd76a545ede68037a556a7b587284e35eb5e92e765ba1b5a067f735d547 SHA512 1cd2f4131fa593cc295eb48b71a58032fd453b5dac7b1ff694800fc10338941105982e771b26ccaac2dee61a00d01f3bde6c650a0fa5ccedf183eed0d53ef996
DIST gentoo-kernel-5.19.10-1.arm64.gpkg.tar 65054720 BLAKE2B 3bd5a40ea707f2e8b3187027761b68b8c391bb3cbccd178ee557d94fb6edc084631cd6161f034b01ca8978394f4d030232db9ae461584a1ae1a7136c3650eb84 SHA512 76b88713f00dec08f0520693a6562ccc149651e141def7b28347450d05effa0e27a6eb105b107eda1bee22c299c4231c61f1c13279da0d642977c1ea5da46653
DIST gentoo-kernel-5.19.10-1.ppc64le.gpkg.tar 59002880 BLAKE2B 3d35164e4e8213900bfd32d09af1c4e056c98bf165d008acf3adbd8cdfefca570b769ab1b9f6775ec6dded45cf161c15d97fa14daf7d63877ac03fdea482ad95 SHA512 2e2b8a58537de0f63001803ba810fa86fec7f3d963e0ecee3f9360b104507f91f20fd96e415956dc5ad184201b15f943f2949561796f183664e0568efef30631
Expand Down
127 changes: 127 additions & 0 deletions sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.72.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Copyright 2020-2022 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##*.} + 4 ))
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
virtual/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 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
}

0 comments on commit 4443f69

Please sign in to comment.