DIST linux-4.19.109.tar.xz 103426400 BLAKE2B 0b21b26db8f51d3857eddbdff8267d571bbdafae4b3d0785478769c8c29d049a64297f9b2889fcaa9eb396245cd77a51067d4be6fb6fd8d08c17080e7283bdc8 SHA512 595411940613df10571e8de1d025f8af5596aecad6f4ab5c68c611b9b03a1fba1ef1ac511658fc85e98f6a9aa0569db26dc99e24436912fa53682caebb68de69
DIST linux-4.19.111.tar.xz 103418704 BLAKE2B 2daf4f288f527a5aece0dcac5aaaca018531d550cd7dfbc7c5a2fc3c54aff34a85f4ba86679f5f6c0d9025bd5d90e3c74d242c5c806637c8337f8cdfca523e26 SHA512 16598a51aa39075fa1bd384c119dbc827f99291525c818e9d02c7fb5819bba54d90033018f8f3aca9062c86b7d4654278fadeeefbfc3a17c4f397b30373554a6
+DIST linux-4.19.112.tar.xz 103425652 BLAKE2B d2b2e4b4e89d47d7158e438de3f7912f7bbf4623423b90e69c76138717d1d1a62599372d13fb91476d01c79661241a28db3682bec98955bcbbb83004303d21b7 SHA512 1e52a26d6f19c6659d3c2d23d492cb3775036f2a75e53db442c50f2c48cad2a2509fdf48ff7a96eb78750e2f8b540f7e55055a4799d060a287147b0b55931325
DIST linux-4.19.85-arch1.i686.config 222183 BLAKE2B 03eac77940db0ee6b4f2a006edc600ef34141bbca849f5be4de9b961301a8fc987da6d0e21344aa5d80c29bb7793d56cf5441abb6c8e4057d94e2601c174c1be SHA512 6bd45c9dfd96b1afb8c1ca1ca72722baee6c91894e454d7af937de02242d3bb9d3b6870f5976aa96245c753c6bc1ac637a6356125b0d4c596aadef643b8c3d8d
DIST linux-4.19.92-arch1.amd64.config 222487 BLAKE2B a658d80d85525287a1df9053ca2ddfe423ab423bcc3b9ea8bd9cda65cc7ffa4b1be782c48c867c13e46070af4016f446860f5cf71351f239da1eff6c45a5aa6a SHA512 a5658c8e8464516dffd6f624344e739784cb315d334b2c5105bd5d16022b6366ad4ec00d3692a7b78e2458514175522bc85e834bf19593feff6363b616860258
DIST linux-5.4.24.arch1.amd64.config 241418 BLAKE2B b24fbeb04cb63b5f0ec7ea935b21302aec92552f1a8108c204f8529803d5eb23dc6124529ca0f9fc394af051b0d3725698fb5df95d6af25274cb51146e3c052b SHA512 d180f3cea5c9c357d482d8533dec7e641b782f501c15f749a5a5347fe737fab93a43a95e12391fcbe3d93a90d673c91b890cb66d219a8f8247074d222959e9cd
--- /dev/null
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-build
+
+MY_P=linux-${PV}
+# https://git.archlinux.org/svntogit/packages.git/log/trunk/config?h=packages/linux-lts
+AMD64_CONFIG_VER=4.19.92-arch1
+AMD64_CONFIG_HASH=bf97de6a2e405659aaad4c251b7f0bb48d5ed3c9
+# https://git.archlinux32.org/packages/log/core/linux-lts/config
+I686_CONFIG_VER=4.19.85-arch1
+I686_CONFIG_HASH=1f0345e2983d2edd55b401cb5a87fdf365a4192c
+
+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
+ amd64? (
+ https://git.archlinux.org/svntogit/packages.git/plain/trunk/config?h=packages/linux-lts&id=${AMD64_CONFIG_HASH}
+ -> linux-${AMD64_CONFIG_VER}.amd64.config
+ )
+ x86? (
+ https://git.archlinux32.org/packages/plain/core/linux-lts/config?id=${I686_CONFIG_HASH}
+ -> linux-${I686_CONFIG_VER}.i686.config
+ )"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+
+src_prepare() {
+ default
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}"/linux-${AMD64_CONFIG_VER}.amd64.config .config || die
+ ;;
+ x86)
+ cp "${DISTDIR}"/linux-${I686_CONFIG_VER}.i686.config .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local config_tweaks=(
+ # shove arch under the carpet!
+ -e 's:^CONFIG_DEFAULT_HOSTNAME=:&"gentoo":'
+ # we do support x32
+ -e '/CONFIG_X86_X32/s:.*:CONFIG_X86_X32=y:'
+ # disable signatures
+ -e '/CONFIG_MODULE_SIG/d'
+ -e '/CONFIG_SECURITY_LOCKDOWN/d'
+ # disable compression to allow stripping
+ -e '/CONFIG_MODULE_COMPRESS/d'
+ # disable gcc plugins to unbreak distcc
+ -e '/CONFIG_GCC_PLUGIN_STRUCTLEAK/d'
+ )
+ sed -i "${config_tweaks[@]}" .config || die
+}