diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-11-29 13:56:15 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-11-29 13:57:32 -0800 |
commit | 57cc29415e5de90e826c6d6fa9cbba6cf1343183 (patch) | |
tree | 9563889cf5bf3e40e04492a4cbb1899532b14d5c /sys-kernel | |
parent | sys-kernel/gentoo-kernel: add big-endian config part for 5.15.5 (diff) | |
download | gentoo-57cc29415e5de90e826c6d6fa9cbba6cf1343183.tar.gz gentoo-57cc29415e5de90e826c6d6fa9cbba6cf1343183.tar.bz2 gentoo-57cc29415e5de90e826c6d6fa9cbba6cf1343183.zip |
sys-kernel/gentoo-kernel: add big-endian config part for 5.10.82
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.10.82.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.82.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.82.ebuild index 14583071b879..d6068a2082d6 100644 --- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.82.ebuild +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.82.ebuild @@ -10,7 +10,7 @@ GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 )) # https://koji.fedoraproject.org/koji/packageinfo?packageID=8 CONFIG_VER=5.10.12 CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 -GENTOO_CONFIG_VER=5.10.42 +GENTOO_CONFIG_VER=5.15.5 DESCRIPTION="Linux kernel built with Gentoo patches" HOMEPAGE="https://www.kernel.org/" @@ -59,6 +59,8 @@ src_prepare() { ) default + local biendian=false + # prepare the default config case ${ARCH} in amd64) @@ -69,9 +71,11 @@ src_prepare() { ;; arm64) cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true ;; ppc64) cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true ;; x86) cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die @@ -102,5 +106,11 @@ src_prepare() { 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[@]}" } |