blob: 681758ac6d3cda8282ae5cc20155150fafe39054 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
ETYPE="sources"
K_DEFCONFIG="gentoo-multi_v7_defconfig"
UNIPATCH_STRICTORDER="1"
K_WANT_GENPATCHES="base extras experimental"
K_GENPATCHES_VER="25"
K_DEBLOB_AVAILABLE="0"
K_KDBUS_AVAILABLE="1"
inherit kernel-2 eutils
detect_version
detect_arch
inherit versionator
MY_PR="armv7-x${PR/r/}"
EXTRAVERSION="-${MY_PR}"
MY_P="${OKV}-${MY_PR}"
MULTI_PATCH="patch-${MY_P}.diff"
MULTI_CONFIG="defconfig"
MULTI_URI="https://rcn-ee.com/deb/xenial-armhf/v${MY_P}"
M_PATCH_URI="${MULTI_URI}/${MULTI_PATCH}.xz"
M_CONFIG_URI="${MULTI_URI}/${MULTI_CONFIG}"
KEYWORDS="~arm"
HOMEPAGE="https://wiki.gentoo.org/wiki/Udoo"
DESCRIPTION="Full sources for ${OKV} kernel plus gentoo and various ARM/iMX device patches"
SRC_URI="
${KERNEL_URI}
${ARCH_URI}
${GENPATCHES_URI}
${M_PATCH_URI}
${M_CONFIG_URI} -> ${K_DEFCONFIG}"
IUSE="experimental"
K_EXTRAELOG="This is the bleeding-edge mainline ARM patch set on full
gentoo-sources kernel from LinuxOnArm maintainer Robert C Nelson.
Intended mainly for TI, Allwinner, and NXP boards like Wand or Udoo,
although it should work on other ARM boards. A copy of the latest
config has been installed as ${K_DEFCONFIG}.
If you are reading this, you know what to do..."
RDEPEND=""
DEPEND="${RDEPEND}
>=sys-devel/patch-2.7.4"
src_unpack() {
# need to unpack manually due to patch reqs below
unpack ${MULTI_PATCH}.xz
kernel-2_src_unpack
cp "${DISTDIR}"/"${K_DEFCONFIG}" "${S}"/arch/arm/configs/ || die "copy defconfig failed!"
}
src_prepare() {
# We can't use unipatch or epatch here due to the git binary
# diffs that always cause dry-run errors (even with --force).
# That is okay since this is not intended for beaglebone.
ebegin "Applying ${MULTI_PATCH}"
patch -p1 "${WORKDIR}"/${MULTI_PATCH}
eend $? || return
sed -i '/CONFIG_EXTRA_FIRMWARE/s/".*"/""/' \
-e 's|CONFIG_VIDEO_CODA=y|CONFIG_VIDEO_CODA=m|' \
"${S}"/arch/arm/configs/"${K_DEFCONFIG}" || die "sed defconfig failed!"
default
}
pkg_postinst() {
kernel-2_pkg_postinst
einfo "For more info on this patchset, and how to report problems, see:"
einfo "${HOMEPAGE}"
}
pkg_postrm() {
kernel-2_pkg_postrm
}
|