Skip to content

Commit

Permalink
deepstream: update to 6.0
Browse files Browse the repository at this point in the history
from JetPack 4.6 (rev 2)

Signed-off-by: Ilies CHERGUI <ilies.chergui@gmail.com>
  • Loading branch information
ichergui committed Nov 8, 2021
1 parent 5fd61c4 commit 97b2005
Showing 1 changed file with 9 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
DESCRIPTION = "NVIDIA Deepstream SDK"
HOMEPAGE = "https://developer.nvidia.com/deepstream-sdk"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = " \
file://usr/share/doc/deepstream-5.1/copyright;md5=51be1eeb26038570c51ffe07b0097891 \
file://opt/nvidia/deepstream/deepstream-5.1/LICENSE.txt;md5=433007b08df9ec24f46deff7572d671c \
file://opt/nvidia/deepstream/deepstream-5.1/doc/nvidia-tegra/LICENSE.iothub_client;md5=4f8c6347a759d246b5f96281726b8611 \
file://opt/nvidia/deepstream/deepstream-5.1/doc/nvidia-tegra/LICENSE.nvds_amqp_protocol_adaptor;md5=8b4b651fa4090272b2e08e208140a658"
HOMEPAGE = "https://developer.nvidia.com/deepstream-sdk"
file://usr/share/doc/deepstream-6.0/copyright;md5=7a5ffdb833cdefe5ac34aaa81de173a3 \
file://opt/nvidia/deepstream/deepstream-6.0/LICENSE.txt;md5=5dcf86799aa20202668e226e93f9cfd9 \
file://opt/nvidia/deepstream/deepstream-6.0/doc/nvidia-tegra/LICENSE.iothub_client;md5=4f8c6347a759d246b5f96281726b8611 \
file://opt/nvidia/deepstream/deepstream-6.0/doc/nvidia-tegra/LICENSE.nvds_amqp_protocol_adaptor;md5=8b4b651fa4090272b2e08e208140a658 \
"

inherit l4t_deb_pkgfeed

SRC_COMMON_DEBS = "${BPN}_${PV}_arm64.deb;subdir=${BPN}"
SRC_URI[sha256sum] = "68b5ddff8b8682ed657fe8554cfb492f36621274a7593d9660f335ce8ba926a5"
SRC_URI[sha256sum] = "320927fe83b40bea2da5408f6777985065038c7f1506b2f5d5eaa0bcfc2a1564"

COMPATIBLE_MACHINE = "(tegra)"
PACKAGE_ARCH = "${TEGRA_PKGARCH}"
Expand All @@ -26,7 +27,7 @@ DEPENDS = "glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-rtsp-ser
S = "${WORKDIR}/${BPN}"
B = "${WORKDIR}/build"

DEEPSTREAM_PATH = "/opt/nvidia/deepstream/deepstream-5.1"
DEEPSTREAM_PATH = "/opt/nvidia/deepstream/deepstream-6.0"
SYSROOT_DIRS += "${DEEPSTREAM_PATH}/lib/"

do_configure() {
Expand All @@ -47,14 +48,6 @@ do_install() {
install -m 0644 "$f" ${D}${DEEPSTREAM_PATH}/lib/
done
ln -sf libnvds_msgconv.so.1.0.0 ${D}${DEEPSTREAM_PATH}/lib/libnvds_msgconv.so
# Requires Python 3.6
rm -f ${D}${DEEPSTREAM_PATH}/lib/pyds.so

for i in 1 2; do
path="${DEEPSTREAM_PATH}/lib/triton_backends/tensorflow$i"
install -d ${D}$path
cp --preserve=mode,timestamps,links --no-dereference ${S}$path/* ${D}$path/
done

install -d ${D}/${sysconfdir}/ld.so.conf.d/
echo "${DEEPSTREAM_PATH}/lib" > ${D}/${sysconfdir}/ld.so.conf.d/deepstream.conf
Expand Down Expand Up @@ -82,7 +75,7 @@ def pkgconf_packages(d):

PKGCONF_PACKAGES = "${@pkgconf_packages(d)}"

PACKAGES =+ "${PN}-samples-data ${PN}-samples ${PN}-sources ${PN}-iothub-client ${PN}-azure-edge ${PN}-triton-plugins ${PKGCONF_PACKAGES}"
PACKAGES =+ "${PN}-samples-data ${PN}-samples ${PN}-sources ${PN}-iothub-client ${PN}-triton-plugins ${PKGCONF_PACKAGES}"

FILES:${PN} = "${sysconfdir}/ld.so.conf.d/ \
${libdir}/gstreamer-1.0/deepstream \
Expand All @@ -104,7 +97,6 @@ FILES:${PN}-samples-data = "\
FILES:${PN}-sources = "${DEEPSTREAM_PATH}/sources"

FILES:${PN}-iothub-client = "${DEEPSTREAM_PATH}/lib/libiothub_client.so"
FILES:${PN}-azure-edge = "${DEEPSTREAM_PATH}/lib/libazure*"
FILES:${PN}-triton-plugins = "${DEEPSTREAM_PATH}/lib/triton_backends"
FILES:${PN}-amqp = "${DEEPSTREAM_PATH}/lib/libnvds_amqp*"
FILES:${PN}-kafka = "${DEEPSTREAM_PATH}/lib/libnvds_kafka*"
Expand Down

0 comments on commit 97b2005

Please sign in to comment.