summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-10 02:37:51 +0000
committerSam James <sam@gentoo.org>2022-03-10 21:09:16 +0000
commit6b1e5b208e017bde63308f9e75c7d5a43337a2b7 (patch)
tree9192e40f4c47d4f2b8e3af244c93aa216b10d227 /sys-kernel
parentsys-kernel/vanilla-kernel: add 5.10.104 (diff)
downloadgentoo-6b1e5b208e017bde63308f9e75c7d5a43337a2b7.tar.gz
gentoo-6b1e5b208e017bde63308f9e75c7d5a43337a2b7.tar.bz2
gentoo-6b1e5b208e017bde63308f9e75c7d5a43337a2b7.zip
sys-kernel/vanilla-kernel: add 5.15.27
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-5.15.27.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index ff5cb0fc6508..9114390028c3 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -30,6 +30,8 @@ DIST linux-5.15.24.tar.sign 991 BLAKE2B 1807f81e43cdec5b5852eb5c9df6f17554466d4e
DIST linux-5.15.24.tar.xz 126247188 BLAKE2B ae4e9738d78f4baeac1222b78b26fad45f04fa4db749b9ff594c3c86c462437941c8376bf91c8dae1db8008d4608ceb23ad1220a07c5b2074e0973c8ea77ede5 SHA512 b02862b341e10e06ce2ba29e4a28fc7173ef28ab9b75866aa7be8cd35f2666f6b2200e77c9ad22f103bead493eaae7286b429a55f0f5b68d794c06e58a69dcfa
DIST linux-5.15.25.tar.sign 991 BLAKE2B dbb9ed0688150a6532f7485dd567b7ca8c865c54ea6f4949e71e7dc16110a6a21ead9a78e5606ebcedcd6eb80957c5213a91a88055f5751b83ca9e2c20641a30 SHA512 25b461a3d4f7cb8ec37a7217874db743a376c5cdd00a47772f5b3d7669fc9833b1dc110625b576a007fe7d763d5540fc4d4ec097d0a7d3d460f25e8212b03090
DIST linux-5.15.25.tar.xz 126242764 BLAKE2B 6bc93aebb0031f3ea1b5b84fabf4e643108800f495dc6900ea5dbcf0172583e5c50364f20cdbbf579205051eae37437c4ddfe9d1b8e3fbae1779fd4f6ba326f9 SHA512 a44994f41ce19d386899564e898536f51dbfe534a7d791743f4f09f3560dc8710caee6cbc566ad678420e14591f17517e138f09eb6323303bda0c8ea41135d07
+DIST linux-5.15.27.tar.sign 991 BLAKE2B e36cb77225620f6e0ffa3ba3acd5ad39d2958b98dcece994a4511efd9839f5ebfc0593b1395106acb4155e60184686ce6a14a0fa5e73c631412f3de60a1a6f0f SHA512 5efa9bec242bdb7ff65915d23c6441700055a82ca46bbc806202905be53cedc48920d11d5643613a91a6361a482243a69467a240901e01baa989258d81b6e6e1
+DIST linux-5.15.27.tar.xz 126226860 BLAKE2B cfc5b3dd49757ade287a08c3dbfb0e2f45da72d7e40db1e391482b7b51c4bed12f2e0c056d0e7c1859d89327e0b8d45123fb092aee861088c427a63a63bf533f SHA512 a127de657b06a09cb8a4fb723856fb2823a88f3f25ac2ef746e50d8ab1668cd4cae26c920cdc4c5315c9af043e84549d25ebe91764de9de3052d8b31419ab194
DIST linux-5.16.10.tar.sign 991 BLAKE2B 3e0ec61aca3515abadac15ea954279c1d96bfc3307efd2a8f0122f5affb5da83842bfd2d2ef2d303ece944ab454777aefafe916335f1383bc00a14712ece2eab SHA512 5b95c891dfa3d7c48c5940d2ca4d773c573e8f06301ef9be591c3221a9e34cf5c70c1220174dc80a6ffb761964769726d7f550bedb6f3f9eba94a43fd776243a
DIST linux-5.16.10.tar.xz 127563168 BLAKE2B 6394d715c765e27aafa3ef7ba34fb17522eb14c5e004b8ab54eb31b55bcb782205d516cdef5f7204739890642289cd1f2ef8ac430a7ee63698ccf3b3d7b0b118 SHA512 2d1527623f96181c4797a8f73cb769e70321e673835113fbddd1374ca891d41b924220b8fdbaa46e2af7fc49a175e56524291b1816f4f6680128155c110f703e
DIST linux-5.16.11.tar.sign 991 BLAKE2B a08fef5aefd7762197c3c7c809c53d84fd7560dba6b023609f9b3510e16ae450fb170c99c3737f6accc21f56db1f915a1c6511bfa424abc29dfbd999e6074baa SHA512 19044cc74d5bb6961fe96d272af9413a873332c0a7467bbc86673f9cc0f26f512520af649d95d5aa986f1194f61d0e68a54df92e929d1642382fd1f4e49bcbd2
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.27.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.27.ebuild
new file mode 100644
index 000000000000..eb965e06b347
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.15.27.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build toolchain-funcs verify-sig
+
+MY_P=linux-${PV}
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.15.14
+CONFIG_HASH=8cc461d9cfb256bb831225bb38e29fa944bd890f
+GENTOO_CONFIG_VER=5.15.5
+
+DESCRIPTION="Linux kernel built from vanilla upstream sources"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI+="
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
+ https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ verify-sig? (
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign
+ )
+ amd64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( savedconfig )"
+
+BDEPEND="
+ debug? ( dev-util/pahole )
+ verify-sig? ( sec-keys/openpgp-keys-kernel )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc
+
+src_unpack() {
+ if use verify-sig; then
+ einfo "Unpacking linux-${PV}.tar.xz ..."
+ verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \
+ < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x))
+ assert "Unpack failed"
+ unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}