mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
Merge pull request #1327 from marineam/kernel
coreos-kernel: prepare for using patched kernels
This commit is contained in:
commit
c940294b1f
@ -2,6 +2,14 @@
|
||||
# Copyright 2012 The Chromium OS Authors.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS-VARIABLE: COREOS_SOURCE_REVISION
|
||||
# @DESCRIPTION:
|
||||
# Revision of the source ebuild, e.g. -r1. default is ""
|
||||
: ${COREOS_SOURCE_REVISION:=}
|
||||
|
||||
COREOS_SOURCE_VERSION="${PV}${COREOS_SOURCE_REVISION}"
|
||||
COREOS_SOURCE_NAME="linux-${PV}-coreos${COREOS_SOURCE_REVISION}"
|
||||
|
||||
[[ ${EAPI} != "5" ]] && die "Only EAPI=5 is supported"
|
||||
|
||||
inherit linux-info toolchain-funcs
|
||||
@ -11,14 +19,14 @@ LICENSE="GPL-2 freedist"
|
||||
SLOT="0/${PVR}"
|
||||
SRC_URI=""
|
||||
|
||||
DEPEND="~sys-kernel/coreos-sources-${PV}
|
||||
DEPEND="=sys-kernel/coreos-sources-${COREOS_SOURCE_VERSION}
|
||||
sys-kernel/bootengine:="
|
||||
|
||||
# Do not analyze or strip installed files
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
# Use source installed by coreos-sources
|
||||
KERNEL_DIR="${SYSROOT}/usr/src/linux-${PV}"
|
||||
KERNEL_DIR="${SYSROOT}/usr/src/${COREOS_SOURCE_NAME}"
|
||||
S="${KERNEL_DIR}"
|
||||
# Cache kernel build tree under /var
|
||||
KBUILD_OUTPUT="${SYSROOT}/var/cache/portage/${CATEGORY}/${PN}"
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
COREOS_SOURCE_REVISION="-r1"
|
||||
inherit coreos-kernel
|
||||
|
||||
DESCRIPTION="CoreOS Linux kernel"
|
@ -2,18 +2,13 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
K_NOUSENAME="yes"
|
||||
K_NOSETEXTRAVERSION="yes"
|
||||
ETYPE="sources"
|
||||
inherit kernel-2
|
||||
detect_version
|
||||
|
||||
DESCRIPTION="Full sources for the Linux kernel"
|
||||
DESCRIPTION="Full sources for the CoreOS Linux kernel"
|
||||
HOMEPAGE="http://www.kernel.org"
|
||||
SRC_URI="${KERNEL_URI}"
|
||||
|
||||
KEYWORDS="amd64 arm64"
|
||||
IUSE=""
|
||||
|
||||
# This ebuild is essentially equivalent to the upstream vanilla-sources
|
||||
DEPEND="!sys-kernel/vanilla-sources:${SLOT}"
|
Loading…
x
Reference in New Issue
Block a user