diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-10-31 00:10:26 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-11-29 17:47:20 +0100 |
commit | 8504e40c08354bf0732bf0d67637c7f52b814550 (patch) | |
tree | 0f37a3913681de1122fa0cd2c55df85ca6dace4a /jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.6.0.bb | |
parent | ed893d8d7943b25b941a0baf2a0890a584baff15 (diff) |
linux-driver-package, linux-toradex_3.10.40, libgstomx-1.0: l4t r21.6
Update to NVIDIA's latest Linux for Tegra aka L4T R21.6:
https://developer.nvidia.com/linux-tegra-r216
The following libraries got updated:
c0067724f7ea174ac845bcf3262916f4cdc68fee */usr/lib/xorg/modules/extensions/libglx.so
7fdf08dac2661c78aa13d72caa205660435a0591 */usr/lib/xorg/modules/drivers/nvidia_drv.so
61fe4c3e02eee124a0b50e0d2f616701c3093da8 */usr/lib/arm-linux-gnueabihf/tegra/libnvomx.so
c0067724f7ea174ac845bcf3262916f4cdc68fee */usr/lib/arm-linux-gnueabihf/tegra/libglx.so
06ff56f0001e07b9e5271e5d1c8ee78a0ddd299d */usr/lib/arm-linux-gnueabihf/tegra/libnvmmlite_video.so
abdccb24f89f1f0e482524569f9b6364c1fff0a9 */usr/lib/arm-linux-gnueabihf/tegra/libnvodm_imager.so
3e9b93e4e3bf24980d025917d694e1f23147837f */usr/lib/arm-linux-gnueabihf/tegra/libnvmm_camera_v3.so
1ee7838597bd9a351b4e241ba947b55d8b4419db */usr/lib/arm-linux-gnueabihf/tegra/libnvparser.so
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.6.0.bb')
-rwxr-xr-x | jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.6.0.bb | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.6.0.bb b/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.6.0.bb new file mode 100755 index 0000000..3e8eba6 --- /dev/null +++ b/jetson-tk1/recipes-bsp/binary-drivers/linux-driver-package_21.6.0.bb @@ -0,0 +1,100 @@ +DESCRIPTION = "NVIDIA Linux Driver Packages" +HOMEPAGE = "https://developer.nvidia.com/" +LICENSE = "Proprietary" + +SRC_URI = "http://developer.download.nvidia.com/embedded/L4T/r21_Release_v6.0/Tegra124_Linux_R21.6.0_armhf.tbz2 \ + file://xorg.conf.add \ + file://nv \ + file://nvfb \ + " + +LIC_FILES_CHKSUM = "file://nv_tegra/LICENSE;md5=60ad17cc726658e8cf73578bea47b85f" + +SRC_URI[md5sum] = "3ed3be6df77fafe6ccf6d35844376a29" +SRC_URI[sha256sum] = "7550dc6fd9b9b293cde8b0ca38f91890adcc3d804492264fde813d076180cdc8" + +PR = "r6" + +inherit update-rc.d + +INITSCRIPT_PACKAGES = "${PN}-boot ${PN}-firstboot" + +INITSCRIPT_NAME_${PN}-boot = "nv" +INITSCRIPT_PARAMS_${PN}-boot = "start 41 S . " + +INITSCRIPT_NAME_${PN}-firstboot = "nvfb" +INITSCRIPT_PARAMS_${PN}-firstboot = "start 40 S . " + +DEPENDS = "virtual/libx11 alsa-lib libxext" + +INSANE_SKIP_${PN} = "ldflags" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +S = "${WORKDIR}/Linux_for_Tegra" + + +PACKAGES =+ "${PN}-firmware ${PN}-boot ${PN}-firstboot" + +INSANE_SKIP_${PN}-dev = "ldflags" + +FILES_${PN} = "${bindir}/* ${libdir}/* ${sysconfdir}/* ${sysconfdir}/*/*" +RRECOMMENDS_${PN} = "xserver-xorg-module-libwfb" +RDEPENDS_${PN} = "xserver-xorg bash" + +FILES_${PN}-firmware = "${base_libdir}/firmware/* ${base_libdir}/firmware/tegra12x/* " + +INHIBIT_PACKAGE_STRIP = "1" +#INHIBIT_PACKAGE_DEBUG_SPLIT = "1" + +INSANE_SKIP_${PN} += "dev-so" + +do_patch () { + mkdir -p ${WORKDIR}/l4tdrv + tar xjf ${WORKDIR}/Linux_for_Tegra/nv_tegra/config.tbz2 -C ${WORKDIR}/l4tdrv +} + +do_install () { + tar xjf ${WORKDIR}/Linux_for_Tegra/nv_tegra/nvidia_drivers.tbz2 -C ${D} + ln -sf ./libcuda.so.1.1 ${D}/usr/lib/arm-linux-gnueabihf/tegra/libcuda.so + ln -sf ./arm-linux-gnueabihf/tegra/libcuda.so ${D}/usr/lib/libcuda.so + ln -sf ./arm-linux-gnueabihf/tegra/libGL.so.1 ${D}/usr/lib/libGL.so + cp ${WORKDIR}/l4tdrv/etc/asound* ${D}/etc/ + cp -r ${WORKDIR}/l4tdrv/etc/udev ${D}/etc/ + mkdir ${D}/etc/X11/ + cp ${WORKDIR}/l4tdrv/etc/X11/xorg.conf* ${D}/etc/X11/ + cat ${WORKDIR}/l4tdrv/etc/X11/xorg.conf.jetson-tk1 ${WORKDIR}/xorg.conf.add > ${D}/etc/X11/xorg.conf.jetson-tk1 + + # install init scripts + install -d ${D}${sysconfdir}/init.d/ + install -m 0755 ${WORKDIR}/nv ${D}${sysconfdir}/init.d/nv + install -m 0755 ${WORKDIR}/nvfb ${D}${sysconfdir}/init.d/nvfb + install -d ${D}${sysconfdir}/nv + touch ${D}${sysconfdir}/nv/nvfirstboot +} + +do_populate_sysroot () { + tar xjf ${WORKDIR}/Linux_for_Tegra/nv_tegra/nvidia_drivers.tbz2 -C ${WORKDIR}/sysroot-destdir/ + rm ${WORKDIR}/sysroot-destdir/usr/lib/xorg/modules/extensions/libglx.so + mkdir ${WORKDIR}/sysroot-destdir/sysroot-providers + touch ${WORKDIR}/sysroot-destdir/sysroot-providers/${PN} +} + +# Function to add the relevant ABI dependency to drivers, which should be called# from a PACKAGEFUNC. +python add_xorg_abi_depends() { + mlprefix = d.getVar('MLPREFIX', True) or '' + abi = "%sxorg-abi-%s-%s" % (mlprefix, "video", "19") + + pn = d.getVar("PN", True) + d.appendVar('RDEPENDS_' + pn, ' ' + abi) +} +PACKAGEFUNCS =+ "add_xorg_abi_depends" + +FILES_${PN}-boot = " \ + ${sysconfdir}/init.d/nv \ +" + +FILES_${PN}-firstboot = "\ + ${sysconfdir}/init.d/nvfb \ + ${sysconfdir}/nv/nvfirstboot \ +" |