blob: dedc361b4b1a7248a9915554a166882fe785d3c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils
SLOT=$PVR
CKV=3.10.25
KV_FULL=${PN}-${PVR}
EXTRAVERSION=kogaion
KERNEL_ARCHIVE="linux-${PV}.tar.xz"
PATCH_ARCHIVE="linux-${PV}-kogaion.tar.gz"
RESTRICT="binchecks strip mirror"
LICENSE="GPL-2"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND=""
DESCRIPTION="Kogaion Linux Kernel Sources"
HOMEPAGE="http://www.debian.org"
SRC_URI="https://www.kernel.org/pub/linux/kernel/v3.x/${KERNEL_ARCHIVE}"
S="$WORKDIR/linux-${CKV}"
pkg_setup() {
export REAL_ARCH="$ARCH"
unset ARCH ; unset LDFLAGS #will interfere with Makefile if set
}
src_prepare() {
for p in $(ls ${FILESDIR}/security); do
epatch -p1 "${FILESDIR}/security/$p" || die
done
for p in $(ls ${FILESDIR}/desktop) ; do
epatch -p1 "${FILESDIR}/desktop/$p" || die
done
rm -f .config || die
}
src_compile() {
einfo "Preparing kernel sources for real-world use" || die
make -s mrproper || die "make mrproper failed"
}
src_install() {
dodir /usr/src/linux-${PV}-kogaion || die
insinto /usr/src/linux-${PV}-kogaion || die
doins -r "${S}"/* || die
cd ${D}/usr/src/linux-${PV}-kogaion || die
make mrproper || die
}
|