mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 03:22:36 +00:00
gstreamer1.0-plugins-nvunixfd: add recipe
This is an NVIDIA-modified version of the upstream unixfd plugin, added in L4T R36.4.0. Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
committed by
Matt Madison
parent
0c79e86307
commit
a0db541b63
@@ -0,0 +1,51 @@
|
||||
From 55e1503e104a9e9bd275d683146db0833b7301f4 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Madison <matt@madison.systems>
|
||||
Date: Tue, 22 Oct 2024 13:02:51 -0700
|
||||
Subject: [PATCH] Update makefile for OE builds
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
Signed-off-by: Matt Madison <matt@madison.systems>
|
||||
---
|
||||
Makefile | 13 ++++++-------
|
||||
1 file changed, 6 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index efc1953..0589827 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -11,13 +11,12 @@
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
-SO_NAME := libgstnvunixfd.so
|
||||
+prefix ?= /usr
|
||||
+exec_prefix ?= $(prefix)
|
||||
+libdir ?= $(exec_prefix)/lib
|
||||
|
||||
-CC := gcc
|
||||
+SO_NAME := libgstnvunixfd.so
|
||||
|
||||
-GST_INSTALL_DIR?=/usr/lib/aarch64-linux-gnu/gstreamer-1.0/
|
||||
-LIB_INSTALL_DIR?=/usr/lib/aarch64-linux-gnu/tegra/
|
||||
-CFLAGS:=
|
||||
LIBS:= -lnvbufsurface -lnvbufsurftransform -lpthread
|
||||
|
||||
SRCS := $(wildcard *.c)
|
||||
@@ -41,7 +40,7 @@ CFLAGS += -fPIC \
|
||||
|
||||
CFLAGS += `pkg-config --cflags $(PKGS)`
|
||||
|
||||
-LDFLAGS = -Wl,--no-undefined -L$(LIB_INSTALL_DIR) -Wl,-rpath,$(LIB_INSTALL_DIR)
|
||||
+LDFLAGS += -Wl,--no-undefined
|
||||
|
||||
LIBS += `pkg-config --libs $(PKGS)`
|
||||
|
||||
@@ -56,7 +55,7 @@ $(SO_NAME): $(OBJS)
|
||||
|
||||
.PHONY: install
|
||||
install: $(SO_NAME)
|
||||
- cp -vp $(SO_NAME) $(GST_INSTALL_DIR)
|
||||
+ install -D -m 0644 $(SO_NAME) -t $(DESTDIR)$(libdir)/gstreamer-1.0
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@@ -0,0 +1,20 @@
|
||||
DESCRIPTION = "NVIDIA-modified unixfd GStreamer plugin"
|
||||
SECTION = "multimedia"
|
||||
LICENSE = "LGPL-2.1-only & Proprietary"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7c5177a0e72658a405eafbb17693804b \
|
||||
file://gstnvipcbufferpool.h;endline=10;md5=d9dae5d6e4678fa3c11acc234577e28c"
|
||||
|
||||
TEGRA_SRC_SUBARCHIVE = "Linux_for_Tegra/source/gst-nvunixfd_src.tbz2"
|
||||
require recipes-bsp/tegra-sources/tegra-sources-36.4.0.inc
|
||||
|
||||
DEPENDS = "gstreamer1.0 glib-2.0 gstreamer1.0-plugins-base tegra-mmapi"
|
||||
|
||||
SRC_URI += " file://0001-Update-makefile-for-OE-builds.patch"
|
||||
S = "${WORKDIR}/gst-nvunixfd"
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
do_install() {
|
||||
oe_runmake install DESTDIR="${D}"
|
||||
}
|
||||
FILES:${PN} = "${libdir}/gstreamer-1.0"
|
||||
Reference in New Issue
Block a user