From 6a32cfbd75cc4621a12a282366369afde9041a10 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Thu, 22 Sep 2016 21:44:41 +0200 Subject: 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 Acked-by: Stefan Agner --- .../linux-driver-package-21.5.0/xorg.conf | 22 ++++++++++++ .../linux-driver-package_21.5.0.bbappend | 40 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package-21.5.0/xorg.conf create mode 100644 jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.5.0.bbappend (limited to 'jetson-tk1') 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 +} -- cgit v1.2.3