blob: c6374efb4680b1c0b3c084aac710610e0ac15c5a (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-driver-package:"
SRC_URI_append_apalis-tk1 = " \
file://xorg.conf \
file://nvfb.service \
file://nv.service \
"
inherit systemd
do_install_append_apalis-tk1 () {
rm ${D}/usr/lib/libGL.so
ln -sf libGL.so.1 ${D}/usr/lib/arm-linux-gnueabihf/tegra/libGL.so
cp ${WORKDIR}/xorg.conf ${D}/etc/X11/
install -d ${D}${systemd_unitdir}/system/
install -m 0755 ${WORKDIR}/nvfb.service ${D}${systemd_unitdir}/system
install -m 0755 ${WORKDIR}/nv.service ${D}${systemd_unitdir}/system
}
# deploy additional binaries from the nv_gst_apps tarball
PACKAGES_prepend = "${PN}-gstnvcamera ${PN}-gstnvvidconv-1.0 ${PN}-nvgstjpeg-1.0 ${PN}-gstnvvidconv-0.10 ${PN}-nvgstjpeg-0.10 ${PN}-nvgstapps "
RRECOMMENDS_${PN}_append = " ${PN}-gstnvcamera ${PN}-gstnvvidconv-1.0 ${PN}-nvgstjpeg-1.0 ${PN}-gstnvvidconv-0.10 ${PN}-nvgstjpeg-0.10 ${PN}-nvgstapps"
DEPENDS = "gst-plugins-base"
RDEPENDS_${PN}-gstnvcamera = "libgstvideo-1.0"
RDEPENDS_${PN}-gstnvvidconv-1.0 = "libgstvideo-1.0"
RDEPENDS_${PN}-gstnvvidconv-0.10 = "gstreamer"
RDEPENDS_${PN}-nvgstjpeg-1.0 = "libgstvideo-1.0"
RDEPENDS_${PN}-nvgstjpeg-0.10 = "gstreamer"
RDEPENDS_${PN}-nvgstapps = "libgstpbutils-1.0 gstreamer"
FILES_${PN}-gstnvcamera = " \
${libdir}/gstreamer-1.0/libgstnvcamera.so \
"
FILES_${PN}-gstnvvidconv-1.0 = " \
${libdir}/gstreamer-1.0/libgstnvvidconv.so \
"
FILES_${PN}-gstnvvidconv-0.10 = " \
${libdir}/gstreamer-0.10/libgstnvvidconv.so \
"
FILES_${PN}-nvgstjpeg-1.0 = " \
${libdir}/gstreamer-1.0/libnvgstjpeg.so \
"
FILES_${PN}-nvgstjpeg-0.10 = " \
${libdir}/gstreamer-0.10/libnvgstjpeg.so \
"
FILES_${PN}-nvgstapps = " \
${bindir}/nvgstcapture-1.0 \
${bindir}/nvgstplayer-1.0 \
${bindir}/nvgstcapture-0.10 \
${bindir}/nvgstplayer-0.10 \
${docdir}/nvgst*README.txt \
"
FILES_${PN}-boot = " \
${systemd_unitdir}/system/nv.service \
${bindir}/nv \
"
FILES_${PN}-firstboot = "\
${systemd_unitdir}/system/nvfb.service \
${bindir}/nvfb \
${sysconfdir}/nv/nvfirstboot \
"
#no gnu_hash in NVIDIA binaries, skip QA dev-so for this package
#we have symlinks ending in .so, skip QA ldflags for this package
#inhibit warnings about files being stripped
INSANE_SKIP_${PN} = "build-deps dev-so ldflags already-stripped textrel"
INSANE_SKIP_${PN}-gstnvcamera = "build-deps dev-so ldflags already-stripped textrel"
INSANE_SKIP_${PN}-gstnvvidconv-1.0 = "build-deps dev-so ldflags already-stripped textrel"
INSANE_SKIP_${PN}-nvgstjpeg-1.0 = "build-deps dev-so ldflags already-stripped textrel"
INSANE_SKIP_${PN}-gstnvvidconv-0.10 = "build-deps dev-so ldflags already-stripped textrel"
INSANE_SKIP_${PN}-nvgstjpeg-0.10 = "build-deps dev-so ldflags already-stripped textrel"
INSANE_SKIP_${PN}-nvgstapps = "build-deps dev-so ldflags already-stripped textrel"
do_install_append () {
NV_SAMPLE=${WORKDIR}/Linux_for_Tegra/nv_tegra/nv_sample_apps
tar xjf ${NV_SAMPLE}/nvgstapps.tbz2 -C ${NV_SAMPLE}
install -d ${D}${bindir} ${D}${libdir}/gstreamer-1.0 ${D}${docdir}
install -d ${D}${libdir}/gstreamer-0.10
install -m 0755 ${NV_SAMPLE}/usr/bin/nvgstcapture-1.0 ${D}${bindir}
install -m 0755 ${NV_SAMPLE}/usr/bin/nvgstplayer-1.0 ${D}${bindir}
install -m 0755 ${NV_SAMPLE}/nvgstcapture-1.0_README.txt ${D}${docdir}
install -m 0755 ${NV_SAMPLE}/nvgstplayer-1.0_README.txt ${D}${docdir}
install -m 0755 ${NV_SAMPLE}/usr/bin/nvgstcapture-0.10 ${D}${bindir}
install -m 0755 ${NV_SAMPLE}/usr/bin/nvgstplayer-0.10 ${D}${bindir}
install -m 0755 ${NV_SAMPLE}/nvgstcapture-0.10_README.txt ${D}${docdir}
install -m 0755 ${NV_SAMPLE}/nvgstplayer-0.10_README.txt ${D}${docdir}
install -m 0755 ${NV_SAMPLE}/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstnvcamera.so ${D}${libdir}/gstreamer-1.0
install -m 0755 ${NV_SAMPLE}/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstnvvidconv.so ${D}${libdir}/gstreamer-1.0
install -m 0755 ${NV_SAMPLE}/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libnvgstjpeg.so ${D}${libdir}/gstreamer-1.0
install -m 0755 ${NV_SAMPLE}/usr/lib/arm-linux-gnueabihf/gstreamer-0.10/libgstnvvidconv.so ${D}${libdir}/gstreamer-0.10
install -m 0755 ${NV_SAMPLE}/usr/lib/arm-linux-gnueabihf/gstreamer-0.10/libnvgstjpeg.so ${D}${libdir}/gstreamer-0.10
install -m 0755 ${WORKDIR}/nv ${D}${bindir}
install -m 0755 ${WORKDIR}/nvfb ${D}${bindir}
rm -rf ${D}${sysconfdir}/init.d/nvfb
rm -rf ${D}${sysconfdir}/init.d/nv
}
SYSTEMD_SERVICE_${PN} = "nvfb.service"
SYSTEMD_SERVICE_${PN} += " nv.service"
|