blob: c24e65fa731e5fec289e47e0986d7a60bfdc5897 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
EAPI=5
inherit mercurial linux-info linux-mod
DESCRIPTION="Video 4 Linux experimental driver"
HOMEPAGE="http://linuxtv.org/hg/~endriss/media_build_experimental"
EHG_REVISION="ada40c8874d5"
EHG_REVISION_DATE="20150509"
EHG_REPO_URI="http://linuxtv.org/hg/~endriss/media_build_experimental"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="!media-tv/v4l-dvb-saa716x
dev-perl/Proc-ProcessTable"
RDEPEND="${DEPEND}"
S="${WORKDIR}/media_build_experimental-${EHG_REVISION}"
CONFIG_CHECK="!MEDIA_SUPPORT"
src_prepare() {
einfo "fetch additional sources from linuxtv.org"
emake download
einfo "fetch additional driver for TT DVB S2-6400"
emake untar
#fix Makefile for multicore support
sed -e "s:make -C firmware:\$(MAKE) -C firmware:"\
-i "${S}"/v4l/Makefile
# compile fix >=kernel-4.3.0
if kernel_is ge 4 3 0; then
sed -e "s:devm_gpiod_get(\&client->dev, \"enable\":devm_gpiod_get(\&client->dev, \"enable\", GPIOD_ASIS:" \
-i "${S}"/linux/drivers/media/i2c/adp1653.c
fi
}
src_compile() {
set_arch_to_kernel # .. or it'll look for /arch/amd64/Makefile
emake
}
src_install() {
dodir /lib/modules/"${KV_FULL}"
emake install DESTDIR="${D}"
# rm some files to prevent for override existing files or Access Violation
# need testing, fixing, later...
rm "${D}"/lib/modules/"${KV_FULL}"/modules.*
}
|