1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 HOMEPAGE="https://www.kernel.org/pub/linux/kernel/projects/rt/"
13 K_SECURITY_UNSUPPORTED="1"
14 K_DEBLOB_AVAILABLE="1"
15 RT_PATCHSET="${PV/*_p}"
20 K_BRANCH_ID="${KV_MAJOR}.${KV_MINOR}"
21 RT_FILE="patch-${K_BRANCH_ID}.${KV_PATCH}-rt${RT_PATCHSET}.patch.xz"
22 RT_URI="mirror://kernel/linux/kernel/projects/rt/${K_BRANCH_ID}/${RT_FILE} \
23 mirror://kernel/linux/kernel/projects/rt/${K_BRANCH_ID}/older/${RT_FILE}"
25 DESCRIPTION="Full Linux ${K_BRANCH_ID} kernel sources with the CONFIG_PREEMPT_RT patch"
26 SRC_URI="${KERNEL_URI} ${RT_URI}"
28 KV_FULL="${PVR/_p/-rt}"
29 S="${WORKDIR}/linux-${KV_FULL}"
31 UNIPATCH_LIST="${DISTDIR}/${RT_FILE}"
32 UNIPATCH_STRICTORDER="yes"
35 "${FILESDIR}"/rt-sources-posix-printf.patch # 627068
43 "s/default PREEMPT_NONE/default PREEMPT_RT_FULL/g" \
44 -i "${S}/kernel/Kconfig.preempt"
50 ewarn "${PN} are *not* supported by the Gentoo Kernel Project in any way."
51 ewarn "If you need support, please contact the RT project developers directly."
52 ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
57 K_EXTRAEINFO="For more info on rt-sources and details on how to report problems, see: \