diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-09-22 21:44:41 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2016-09-29 20:59:56 +0200 |
commit | 6a32cfbd75cc4621a12a282366369afde9041a10 (patch) | |
tree | 7c518340ca5dcca71f02590146328724cd8f6f7b /jetson-tk1/recipes-bsp/binary-drivers | |
parent | 6cd5833d3afd0fb44ef62d7dbe080cb9e687883e (diff) |
linux-driver-package: deploy additional gst components
While at it move the bbappend and xorg.conf under jetson-tk1 so that
one only needs meta-jetson-tk1 when one builds for tk1.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'jetson-tk1/recipes-bsp/binary-drivers')
-rw-r--r-- | jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package-21.5.0/xorg.conf | 22 | ||||
-rw-r--r-- | jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.5.0.bbappend | 40 |
2 files changed, 62 insertions, 0 deletions
diff --git a/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package-21.5.0/xorg.conf b/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package-21.5.0/xorg.conf new file mode 100644 index 0000000..68b7925 --- /dev/null +++ b/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package-21.5.0/xorg.conf @@ -0,0 +1,22 @@ +# Copyright (c) 2011-2013 NVIDIA CORPORATION. All Rights Reserved. + +# +# This is the minimal configuration necessary to use the Tegra driver. +# Please refer to the xorg.conf man page for more configuration +# options provided by the X server, including display-related options +# provided by RandR 1.2 and higher. + +# Disable extensions not useful on Tegra. +Section "Module" + Disable "dri" + SubSection "extmod" + Option "omit xfree86-dga" + EndSubSection +EndSection + +Section "Device" + Identifier "Tegra0" + Driver "nvidia" + Option "NoLogo" "true" +EndSection + diff --git a/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.5.0.bbappend b/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.5.0.bbappend new file mode 100644 index 0000000..c58251d --- /dev/null +++ b/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.5.0.bbappend @@ -0,0 +1,40 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/linux-driver-package-${PV}:" + +SRC_URI_append_apalis-tk1 = " file://xorg.conf" + +do_install_append_apalis-tk1 () { + cp ${WORKDIR}/xorg.conf ${D}/etc/X11/ +} + +# deploy additional binaries from the nv_gst_apps tarball +PACKAGES_prepend = "${PN}-gstnvcamera ${PN}-gstnvvidconv ${PN}-nvgstjpeg ${PN}-nvgstapps " +RRECOMMENDS_${PN}_append = " ${PN}-gstnvcamera ${PN}-gstnvvidconv ${PN}-nvgstjpeg ${PN}-nvgstapps" + +FILES_${PN}-gstnvcamera = " \ + ${libdir}/gstreamer-1.0/libgstnvcamera.so \ +" +FILES_${PN}-gstnvvidconv = " \ + ${libdir}/gstreamer-1.0/libgstnvvidconv.so \ +" +FILES_${PN}-nvgstjpeg = " \ + ${libdir}/gstreamer-1.0/libnvgstjpeg.so \ +" +FILES_${PN}-nvgstapps = " \ + ${bindir}/nvgstcapture-1.0 \ + ${bindir}/nvgstplayer-1.0 \ + ${docdir}/nvgst*README.txt \ +" + +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 -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/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 +} |