mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
sys-kernel/coreos-sources: add logic for -rc kernels
kernel-2.eclass expects -rc kernels to be versioned without a patch number, and then puts the minor version in KV_PATCH. Handle this case. Also override the KERNEL_URI to drop the -coreos suffix.
This commit is contained in:
parent
e59bc5af19
commit
c2dcffa616
@ -3,18 +3,29 @@
|
|||||||
|
|
||||||
EAPI="5"
|
EAPI="5"
|
||||||
ETYPE="sources"
|
ETYPE="sources"
|
||||||
|
|
||||||
|
# -rc releases should be versioned L.M_rcN
|
||||||
|
# Final releases should be versioned L.M.N, even for n == 0
|
||||||
|
|
||||||
|
# Only needed for RCs
|
||||||
|
K_BASE_VER="4.12"
|
||||||
|
|
||||||
inherit kernel-2
|
inherit kernel-2
|
||||||
detect_version
|
detect_version
|
||||||
|
|
||||||
DESCRIPTION="Full sources for the CoreOS Linux kernel"
|
DESCRIPTION="Full sources for the CoreOS Linux kernel"
|
||||||
HOMEPAGE="http://www.kernel.org"
|
HOMEPAGE="http://www.kernel.org"
|
||||||
|
if [[ "${PV%%_rc*}" != "${PV}" ]]; then
|
||||||
|
SRC_URI="https://git.kernel.org/torvalds/p/v${KV%-coreos}/v${OKV} -> patch-${KV%-coreos}.patch ${KERNEL_BASE_URI}/linux-${OKV}.tar.xz"
|
||||||
|
PATCH_DIR="${FILESDIR}/${KV_MAJOR}.${KV_PATCH}"
|
||||||
|
else
|
||||||
SRC_URI="${KERNEL_URI}"
|
SRC_URI="${KERNEL_URI}"
|
||||||
|
PATCH_DIR="${FILESDIR}/${KV_MAJOR}.${KV_MINOR}"
|
||||||
|
fi
|
||||||
|
|
||||||
KEYWORDS="amd64 arm64"
|
KEYWORDS="amd64 arm64"
|
||||||
IUSE=""
|
IUSE=""
|
||||||
|
|
||||||
PATCH_DIR="${FILESDIR}/${KV_MAJOR}.${KV_MINOR}"
|
|
||||||
|
|
||||||
# XXX: Note we must prefix the patch filenames with "z" to ensure they are
|
# XXX: Note we must prefix the patch filenames with "z" to ensure they are
|
||||||
# applied _after_ a potential patch-${KV}.patch file, present when building a
|
# applied _after_ a potential patch-${KV}.patch file, present when building a
|
||||||
# patchlevel revision. We mustn't apply our patches first, it fails when the
|
# patchlevel revision. We mustn't apply our patches first, it fails when the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user