blob: 12f5a77ae5d61675f41b15db256ae183d91be526 (
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
|
DESCRIPTION = "binary files from Nvidia along with there configuration"
LICENSE = "CLOSED"
PR = "r1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
SRC_URI_colibri-t20 = "file://bin-files.tar.bz2 \
"
SRC_URI_colibri-t30 = "file://base.tgz \
file://x/tegra_drv.abi*.so \
file://restricted_codecs.tbz2 \
file://nvgstplayer.tbz2 \
file://wifi.tbz2 \
file://xorg.conf \
"
PACKAGES = "${PN}"
FILES_${PN} += " \
${sysconfdir}/X11/def* \
${sysconfdir}/X11/xorg.conf.* \
/lib/firmware/* \
/usr/lib/* \
"
#no gnu_hash in NVIDIA binaries, skip QA for this package
INSANE_SKIP_${PN} = "True"
#we have symlinks ending in .so , remove "dev-so", refere to ./openembedded-core/meta/classes/insane.bbclass
ERROR_QA = "arch la2 pkgconfig la perms"
do_install_colibri-t20 () {
install -d ${D} ${D}/bin ${D}/${sysconfdir}/X11 ${D}/lib/firmware ${D}/usr/lib/gstreamer-0.10 ${D}/usr/lib/xorg/modules/drivers
install -m 0755 ${WORKDIR}/bin/* ${D}/bin/
install -m 0644 ${WORKDIR}/${sysconfdir}/X11/* ${D}/${sysconfdir}/X11
install -m 0644 ${WORKDIR}/lib/firmware/* ${D}/lib/firmware/
install -m 0755 ${WORKDIR}/usr/lib/*.so ${D}/usr/lib/
install -m 0755 ${WORKDIR}/usr/lib/gstreamer-0.10/*.so ${D}/usr/lib/gstreamer-0.10
install -m 0755 ${WORKDIR}/usr/lib/xorg/modules/drivers/* ${D}/usr/lib/xorg/modules/drivers/
}
do_install_colibri-t30 () {
#base.tgz, xorg driver, restricted codecs
install -d ${D} ${D}/${sysconfdir}/X11/ ${D}/lib/firmware/ ${D}/usr/lib/xorg/modules/drivers
install -m 0644 ${WORKDIR}/${sysconfdir}/X11/xorg.conf ${D}/${sysconfdir}/X11/xorg.conf.nvidia
install -m 0644 ${WORKDIR}/lib/firmware/nv* ${D}/lib/firmware/
install -m 0644 ${WORKDIR}/usr/lib/*.so ${D}/usr/lib/
install -m 0644 ${WORKDIR}/x/tegra_drv.abi5.so ${D}/usr/lib/xorg/modules/drivers/
install -m 0644 ${WORKDIR}/x/tegra_drv.abi6.so ${D}/usr/lib/xorg/modules/drivers/
install -m 0644 ${WORKDIR}/x/tegra_drv.abi7.so ${D}/usr/lib/xorg/modules/drivers/
install -m 0644 ${WORKDIR}/x/tegra_drv.abi8.so ${D}/usr/lib/xorg/modules/drivers/
install -m 0644 ${WORKDIR}/x/tegra_drv.abi10.so ${D}/usr/lib/xorg/modules/drivers/
install -m 0644 ${WORKDIR}/x/tegra_drv.abi11.so ${D}/usr/lib/xorg/modules/drivers/
ln -s tegra_drv.abi8.so ${D}/usr/lib/xorg/modules/drivers/tegra_drv.so
ln -s libGLESv2.so ${D}/usr/lib//libGLESv2.so.2
ln -s libEGL.so ${D}/usr/lib/libEGL.so.1
#nvgstplayer.tbz2
install -d ${D} ${D}/usr/bin ${D}/usr/lib/gstreamer-0.10
install -m 0755 ${WORKDIR}/usr/bin/nvgstplayer ${D}/usr/bin/
install -m 0644 ${WORKDIR}/usr/lib/gstreamer-0.10/*.so ${D}/usr/lib/gstreamer-0.10/
#wifi.tbz2
install -d ${D} ${D}/lib/firmware/bcm4329
install -m 0644 ${WORKDIR}/lib/firmware/bcm4329/* ${D}/lib/firmware/bcm4329
}
# We want to provide several versions of a so and symlink the one actually used, have OE's QA not throw an error
ERROR_QA = "debug-deps dev-deps debug-files arch la2 pkgconfig la perms"
|