summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-09-02 19:33:40 +0200
committerMichał Górny <mgorny@gentoo.org>2023-09-02 19:34:50 +0200
commit4f01962aee7ec26afae4ccd50bd40fb531228487 (patch)
tree1e8356b4338b8417ceaa6fb253955bef092cea84 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.194 (diff)
downloadgentoo-4f01962aee7ec26afae4ccd50bd40fb531228487.tar.gz
gentoo-4f01962aee7ec26afae4ccd50bd40fb531228487.tar.bz2
gentoo-4f01962aee7ec26afae4ccd50bd40fb531228487.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.256
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.4.256.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 34258f53a592..7ba8c6d934b1 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-5.4-261.base.tar.xz 6100368 BLAKE2B 1333f1a5aae4faabe031192eee4e
DIST genpatches-5.4-261.extras.tar.xz 1812 BLAKE2B fcc06d16147422b0ea123b116644539b3527e44bca78d46cf5795d44e42575c7017ec3b5c9dd566c5523e3b23f14b4d817846502d4ef353180c3a3c79caa4c2b SHA512 5cc879a4333aa3e162a5da4bf118a12ae5694c2fb98f11f9e1eee57f91b707974d735c290790942a14b2df5bdf092f58d1cf03f7058aea6f8e588700ec185dbf
DIST genpatches-5.4-262.base.tar.xz 6139068 BLAKE2B 61c2f6a1b307d4e89fd6ddfa57985eefb7b1778ee8ffe346be8967ef528ece98bfbe52c56eff2cf356dc0d2087b59ed353591d508e35e6214130abbd586f1fdc SHA512 c16b5036a6a4a1832a3e95ceda7e77cfdfddb99b92d1091354cdfcc8868a8ac7d4f692ce522e7167d171664b65273c8ea29009fb2911e9f20d3da6ebcb2a9837
DIST genpatches-5.4-262.extras.tar.xz 1812 BLAKE2B ec2675611ea57400bf07f248730d8101e09a2102158e71d654069c3d3d63e47543541f8d39625334c58bbf6f2b9ba72fbbb4a53b8c4b98c00c06d18bb586ad17 SHA512 f98ca1becea213d6ea1a54b2c6e3206a30eb85597af36622f3fb877133e8e9c07a62228ea4c42ce719c840ade6a6a038166d5ca867bc792e8dae1561d522d718
+DIST genpatches-5.4-263.base.tar.xz 6140940 BLAKE2B 7a33829d7a85497a6a6c8ae89cc9a3eefa1eae1e7aaee5a8375f8a1a77d6615fda4d4d18bc68a506d86924bd9549f98820bce35aa30a628c676cbadc4dc6a1b2 SHA512 e4b403e31994d804724e31f3795b4e8a202ff19ea6842754e34e6fd5156b0493fc8573c19decc425ab0d18bbbe55636b181200bb92d1ada54f73233ef01bc9aa
+DIST genpatches-5.4-263.extras.tar.xz 1812 BLAKE2B 67a75053cc93216cd0b6f34e11c2cdb4d4606e7356424006d08d35583344ec09211d95d0e5613b7352a1b3317053c4c964d373736f387d76d0209bb915d9256d SHA512 64b041945553ca97df6291848e4a9875fb2a2526b82d730e6d84c6838c761803a819c9765cdf953130695e2c91af28b6b0a64a4e7d37473306b26d0db6c16f2c
DIST genpatches-6.1-52.base.tar.xz 3173368 BLAKE2B 429b5bc3af457d91b9c178737e573d150e337859c0f07a25043c86b834829e749b92c57fa2d80b2acfe9864f916ebe77c830249be23391d6553f5469b1934708 SHA512 0f003893b6c24fa9bb79722d6d83edb25e77fff11a526f86052980ee175d6dd599784cfcc7ad82055de9663a178fb9de38a766cfe61fe17fbde696a5292f023f
DIST genpatches-6.1-52.extras.tar.xz 3808 BLAKE2B 6a67986309840e14bd4759c0aabb1af5d6b3653660d1a12d8706567470a28b3a56d5a09cbdd3df9068bed7a845206b5a81fca3a1be0ffe7122579d9b3ff63401 SHA512 0476ec7af5906dfd4dd48c96799568f8ed7d24d7d43717979e03a16219b732461e0afc7af1c5a4f528a08c4b5c2c35d249e81be1c6d0f854f7993da2e0c7aad3
DIST genpatches-6.1-53.base.tar.xz 3225656 BLAKE2B d701a2920347788f343b14babfdd113b62b78218e8b19a5ee4f36d76b8571e697d9f3a3a9aa8364344e4d0ccaa60eccaab27b24036504b3ea1d011c4492a1eb2 SHA512 10aed454a5d7d7a763ec3008ceb17e30d989abcd76e1ca54d47b8946cf20a9de5991e09158a4e0b182ba58b41760a8de3bbd1979ff23fa9a84aa094c5c31094d
@@ -72,6 +74,10 @@ DIST gentoo-kernel-5.4.255-1.amd64.gpkg.tar 57569280 BLAKE2B cd4c3e7178ae0783fc9
DIST gentoo-kernel-5.4.255-1.arm64.gpkg.tar 53841920 BLAKE2B 659829c5715d69f3b6269c1cbb5ea38293346f4d0f7367ed11ae995c66756cbe2954f072a81859a749a93607a2d102f4c8988c5b866d624a1ff127cbeb48f0c7 SHA512 d0352d58850c195dbdd2b5e2585b287bd6c1a367cc926d2b0190d64bffe1ba19243fe20803bf9b885b0205d25b1bbddb28255d0b45b1a6a77bc9f199ab83cd4d
DIST gentoo-kernel-5.4.255-1.ppc64le.gpkg.tar 52305920 BLAKE2B 65db3e5cbd3669eab6fc06df5602205a072d0e87c8d8034fe990223e51aff1a1a5c91b733c4d1682502d74f96fd39f3af85576b774c6db68cb27b6436047ad4c SHA512 724fd13345625a3201b6d057db6725ce0ed3af6c1c8928ac11cb1dbcd5888a874f5a1a2dcf01ef790a77c805b81c2f4826bcfe045145f97393702b9769e69715
DIST gentoo-kernel-5.4.255-1.x86.gpkg.tar 49612800 BLAKE2B 30f7d5bee3929096a9d547b5dbf6191da01c7b156a7c27010ec056ba2b86e5b1d092da9bd796815c45c5527752c7acf3e511886f826458e9a3e219f6dbbbb20b SHA512 3ded5710b9863c29d4abd96d87fd32ea0d6be5be1478848a8c9323d4fc9f29cbe8a998584e5436b2926f6ee57fc6e319f3509a88117249e4e64ac638efa7c525
+DIST gentoo-kernel-5.4.256-1.amd64.gpkg.tar 57579520 BLAKE2B 2e37ed126d241dcdc14e67d36bfa17e01f39a2e25ccf36ddd36d51358755dc845dc0eeb6b6293180751ee6e5d6777e0453c2e77ed6c733e9ca3d19d7c42b1111 SHA512 e18b3e2151b86674386dd5e14322b52deb5475708a6defaf3e1ed231ab1487d2124bf98967600762db3b32dfbba3006e32c8d9abb6c7e968433b20a2de07ed12
+DIST gentoo-kernel-5.4.256-1.arm64.gpkg.tar 53841920 BLAKE2B a43bde9f0ff3832181e2f8731989f45435ab09119b90aea3e2a7ebdaeb27159618b3b0ec8ca8002ccfa2cdbb6f3e6df1eb62be70cfdc109bd6d7e5e9040ce0c5 SHA512 9aa62b7719d1defb995fa615977297c88caed5d4f05e078b56c48445d2e1592549c5e1959465c1b067f020621721788935084b63af65e9d8206851e9ca3d438f
+DIST gentoo-kernel-5.4.256-1.ppc64le.gpkg.tar 52305920 BLAKE2B 3e4494ce09e9d0e047fba0c91b6491e6d47ff4c0dbcc7307aa971b7f2d82bc3243559fab5332f54308c93da1a4468ad27fa634a61fe63fd329303daabeca9406 SHA512 4f5cf2b95550e8a2af3d6769c0515dfc73f76e9502a1d484e5b2b13b4d9d3311fda2b755b5fab11a77dd11893a7cc6438c953bc4ce79ce1947905108f6a060d5
+DIST gentoo-kernel-5.4.256-1.x86.gpkg.tar 49612800 BLAKE2B 5f6603a15a9240988f9218ec5b0dbfcb7790cd7113a38dc1d292a31f9dcc13abca96eaf4c9721f3fa6a054488b3b402263ca01f906f578eb985e7b36f6414417 SHA512 0f1e8afb57263eb43c3503aa018dafefaa3a12351c6686afffe442355378b4c413237bacbc56825ebbd918910e1cb706f654f066526ccbd9dd579c415b60a1af
DIST gentoo-kernel-6.1.46-1.amd64.gpkg.tar 76861440 BLAKE2B e9d5b7c9017adc5122759190368abfcff3db9e0dba72a091c3f44a3a2495ddbadc464eb4bd9f0a89a7629cda56e33103523f986bf05439c3a9d1c9b57a18728e SHA512 17d55b018b1f196e6dcc11779fb17c02c47a39d6b88fcd86a0f967ad4fd8ec44f55105e1425b8be07750981ec92dd21421a787861f50abba65f590210e0f2e2d
DIST gentoo-kernel-6.1.46-1.arm64.gpkg.tar 69488640 BLAKE2B a72e190c5455f087b811ad68eb818a67efae7be3a2f7f2dca41c1ad4397c1b5f45db58f02360bf05516b61e871e0f4cdd1daa0c0ea3c3aaa0d40f88673e890af SHA512 ddcba28035f1b084097cfb3b58bb90a37e29d6abe3043d3c5464363da095750a9675e287641fd782da29ee02077bfbaa5ee784f579df09a90b01728b9c697230
DIST gentoo-kernel-6.1.46-1.ppc64le.gpkg.tar 62832640 BLAKE2B a8e45f7ecde91ed96d440e4261ef00fd7e27d4dc50d5f92d9b530d2d1f6438e010c76caea95e6d5015c617fe71cae541c52cfa747ba7388b4ccafd592373cf75 SHA512 60295b457d4bda5dfdfceb1a28049522238c983ec951eb0b46c42192408574131d82eeff515e97862160050b4b2f77bdd1799458a238d75f724f8d652c1758d0
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.256.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.256.ebuild
new file mode 100644
index 000000000000..70e2f755ed95
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.256.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##*.} + 7 ))
+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
+}