NVidia GPU binary blobs for Tegra2/3 (branch yem/gfx2)
v8 cover NVidia GPU binary blobs for Tegra2/3 (branch yem/gfx2)
Hello All!
This series adds support for NVidia's binary blob, the driver to its family of GPUs, for and Tegra2 and Tegra3, initially submitted by Nicolas.
Since those binary blobs require the old X11 driver ABI 14, we can not use them for now, as the version of X11 we have implements ABI 19; X11 ABIs are not backward compatible.
So, we need to introduce a choice for the version of X11, so as to provide whatever was the latest X11 vbersion to provide ABI 14; this would be X11 version 1.14.7.
Fortunately, Gustavo was kind enough to suggest and test that building an old X11 server with newer X11 libs was still possible, so that we only really need the old server, not all the old libs. Pfewww... ;-)
So, this series in split in two main parts:
- patches 1-5 introduce the possibility to choose an old X11 version for the server,
- patches 6-8 add new packages for the NVidia Tegra blobs.
Thanks go to Nicolas, Laurent and Gustavo for their input and testing!
Changes v7 -> v8:
- introduce use of an old X11 server to provide the ABI expected by the NVidia blobs
- drop the x86 drivers, applied
Changes v6 -> v7:
- drop all Khronos Registries packages in favour of mesa3d-headers
- adapt the NVidia driver packages to use mesa3d-headers
Changes v5 -> v6:
- make python-lxml a target package too (Yegor)
- rename the packages and move one directory up (J?r?me)
- use mesa3d to provide additional headers, don't bundle them
- install extra GLES platform headers (Nicolas)
- x86 nvidia driver installs a gl.pc file (J?r?me)
- drop JPEG HW acceleration for Tegra2/3, since we do not have the headers (Nicolas)
Changes v4 -> v5:
- fix env vars when building opengl-registry
Changes v3 -> v4:
- integrate the Tegra2/3 driver from Nicolas
- lots of cleanups in the packages for Tegra2/3
- further fixes after Thomas comments
- introduce more of the Khronos registry (OpenMAX, OpenKode...)
Changes v2 -> v3:
- some rewrite after Thomas comments
Changes v1 -> v2:
- bump opengl-registry
- drop i915, applied (Peter)
Regards,
Yann E. MORIN.
The following changes since commit d4f7cfe1855cefa35322891e887636c3b82a6aea:
uclibc: double quote values of string options (2015-03-14 13:49:20 +0100)
are available in the git repository at:
git://git.busybox.net/~ymorin/git/buildroot yem/gfx2
for you to fetch changes up to 36fab880ae7a6eb8dfd32c217307eac9db0d878e:
package/nvidia-tegra23-codecs: new package (2015-03-14 20:01:13 +0100)
----------------------------------------------------------------
Nicolas Serafini (3):
package/nvidia-tegra23-binaries: new package package.nvidia-tegra23-binaries: add gstreamer plugins package/nvidia-tegra23-codecs: new package
Yann E. MORIN (5):
package/xserver_xorg-server: prepare for multiple supported versions package/xserver_xorg-server: make the version a choice package/xserver_xorg-server: add blind options to specify driver ABI package/xserver_xorg-server: not all versions need all dependencies package/xserver_xorg-server: add version 1.14.7
package/Config.in | 1 +
package/nvidia-tegra23/Config.in | 38 ++++++
.../nvidia-tegra23-binaries/Config.in | 42 +++++++
.../nvidia-tegra23/nvidia-tegra23-binaries/egl.pc | 10 ++
.../nvidia-tegra23/nvidia-tegra23-binaries/gles.pc | 10 ++
.../nvidia-tegra23-binaries/glesv2.pc | 10 ++
.../nvidia-tegra23-binaries.hash | 3 +
.../nvidia-tegra23-binaries.mk | 128 +++++++++++++++++++++
.../nvidia-tegra23/nvidia-tegra23-codecs/Config.in | 7 ++
.../nvidia-tegra23-codecs.hash | 3 +
.../nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk | 41 +++++++
package/nvidia-tegra23/nvidia-tegra23.mk | 18 +++
...1-backtrace.c-Fix-word-cast-to-a-pointer.patch} | 0
package/x11r7/xserver_xorg-server/Config.in | 31 ++++-
.../xserver_xorg-server/xserver_xorg-server.mk | 9 +-
15 files changed, 348 insertions(+), 3 deletions(-)
create mode 100644 package/nvidia-tegra23/Config.in
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/egl.pc
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/gles.pc
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/glesv2.pc
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.hash
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-codecs/Config.in
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.hash
create mode 100644 package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk
create mode 100644 package/nvidia-tegra23/nvidia-tegra23.mk
rename package/x11r7/xserver_xorg-server/{0004-backtrace.c-Fix-word-cast-to-a-pointer.patch => 1.17.1/0001-backtrace.c-Fix-word-cast-to-a-pointer.patch} (100%)Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v8 1/8 package/xserver_xorg-server: prepare for multiple supported versions
Simply move patch around...
---
.../0001-backtrace.c-Fix-word-cast-to-a-pointer.patch} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename package/x11r7/xserver_xorg-server/{0004-backtrace.c-Fix-word-cast-to-a-pointer.patch => 1.17.1/0001-backtrace.c-Fix-word-cast-to-a-pointer.patch} (100%)package/x11r7/xserver_xorg-server/1.17.1/0001-backtrace.c-Fix-word-cast-to-a-pointer.patch renamed from package/x11r7/xserver_xorg-server/0004-backtrace.c-Fix-word-cast-to-a-pointer.patch +0 -0
Signature · 1 line
1.9.1
PATCH v8 2/8 package/xserver_xorg-server: make the version a choice
In reply to Yann E. MORINOnly a single entry for now, but we'll add one more in an upcoming patch, to support old binary-only drivers, like the NVidia Tegra2/3 drivers.
--- package/x11r7/xserver_xorg-server/Config.in | 12 ++++++++++++ package/x11r7/xserver_xorg-server/xserver_xorg-server.mk | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-)
package/x11r7/xserver_xorg-server/Config.in +12 -0
@@ -57,6 +57,18 @@ config BR2_PACKAGE_XSERVER_XORG_SERVER if BR2_PACKAGE_XSERVER_XORG_SERVER choice + bool "X Window System server version" + +config BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17_1 + bool "1.17.1" + +endchoice + +config BR2_PACKAGE_XSERVER_XORG_SERVER_VERSION + string + default "1.17.1" if BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17_1 + +choice prompt "X Window System server type" default BR2_PACKAGE_XSERVER_XORG_SERVER_KDRIVE help
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -XSERVER_XORG_SERVER_VERSION = 1.17.1 +XSERVER_XORG_SERVER_VERSION = $(call qstrip,$(BR2_PACKAGE_XSERVER_XORG_SERVER_VERSION)) XSERVER_XORG_SERVER_SOURCE = xorg-server-$(XSERVER_XORG_SERVER_VERSION).tar.bz2 XSERVER_XORG_SERVER_SITE = http://xorg.freedesktop.org/releases/individual/xserver XSERVER_XORG_SERVER_LICENSE = MIT
Signature · 1 line
1.9.1
PATCH v8 3/8 package/xserver_xorg-server: add blind options to specify driver ABI
In reply to Yann E. MORINThe upcoming NVidia Tegra2/3 binary blobs only work with a certain VIDEODRV ABI (namely up to 14), so we must have a way to represent that ABI so that such packages can not be enabled with a too recent/old ABI.
--- package/x11r7/xserver_xorg-server/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+)
package/x11r7/xserver_xorg-server/Config.in +8 -0
@@ -56,11 +56,19 @@ config BR2_PACKAGE_XSERVER_XORG_SERVER if BR2_PACKAGE_XSERVER_XORG_SERVER +config BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 + bool + +config BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI + int + default 19 if BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 + choice bool "X Window System server version" config BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17_1 bool "1.17.1" + select BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 endchoice
Signature · 1 line
1.9.1
PATCH v8 4/8 package/xserver_xorg-server: not all versions need all dependencies
In reply to Yann E. MORINSupport for the Present protocol has been added to, and is mandatory since version 1.15.
As we're on the verge of adding 1.14.7, we need to make Present a version-specific dependency.
--- package/x11r7/xserver_xorg-server/Config.in | 2 +- package/x11r7/xserver_xorg-server/xserver_xorg-server.mk | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-)
package/x11r7/xserver_xorg-server/Config.in +1 -1
@@ -35,7 +35,6 @@ config BR2_PACKAGE_XSERVER_XORG_SERVER select BR2_PACKAGE_XPROTO_GLPROTO select BR2_PACKAGE_XPROTO_INPUTPROTO select BR2_PACKAGE_XPROTO_KBPROTO - select BR2_PACKAGE_XPROTO_PRESENTPROTO select BR2_PACKAGE_XPROTO_RANDRPROTO select BR2_PACKAGE_XPROTO_RENDERPROTO select BR2_PACKAGE_XPROTO_RESOURCEPROTO
@@ -69,6 +68,7 @@ choice config BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17_1 bool "1.17.1" select BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 + select BR2_PACKAGE_XPROTO_PRESENTPROTO endchoice
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk +6 -1
@@ -38,7 +38,6 @@ XSERVER_XORG_SERVER_DEPENDENCIES = \ xproto_glproto \ xproto_inputproto \ xproto_kbproto \ - xproto_presentproto \ xproto_randrproto \ xproto_renderproto \ xproto_resourceproto \
@@ -64,6 +63,12 @@ XSERVER_XORG_SERVER_CONF_OPTS = \ --with-fontrootdir=/usr/share/fonts/X11/ \ --$(if $(BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB),en,dis)able-xvfb +# Present protocol only required for xserver 1.15+, but does not matter if +# enabled for older versions as they don't use it (not even optionally). +ifeq ($(BR2_PACKAGE_XPROTO_PRESENTPROTO),y) +XSERVER_XORG_SERVER_DEPENDENCIES += xproto_presentproto +endif + ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR),y) XSERVER_XORG_SERVER_CONF_OPTS += --enable-xorg XSERVER_XORG_SERVER_DEPENDENCIES += libpciaccess
Signature · 1 line
1.9.1
PATCH v8 5/8 package/xserver_xorg-server: add version 1.14.7
In reply to Yann E. MORINSome old binary blobs drivers, like the NVidia Tegra2/3 blobs, only implement an old VIDEODRV ABI.
Since VIDEODRV ABIs are not backward compatible [0], lets introduce an older Xserver version that supports such an old ABI.
[0] http://www.x.org/wiki/XorgModuleABIVersions/
--- package/x11r7/xserver_xorg-server/Config.in | 9 +++++++++ 1 file changed, 9 insertions(+)
package/x11r7/xserver_xorg-server/Config.in +9 -0
@@ -55,11 +55,15 @@ config BR2_PACKAGE_XSERVER_XORG_SERVER if BR2_PACKAGE_XSERVER_XORG_SERVER +config BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_14 + bool + config BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 bool config BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI int + default 14 if BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_14 default 19 if BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 choice
@@ -70,11 +74,16 @@ config BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17_1 select BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_19 select BR2_PACKAGE_XPROTO_PRESENTPROTO +config BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_14_7 + bool "1.14.7" + select BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_14 + endchoice config BR2_PACKAGE_XSERVER_XORG_SERVER_VERSION string default "1.17.1" if BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_17_1 + default "1.14.7" if BR2_PACKAGE_XSERVER_XORG_SERVER_V_1_14_7 choice prompt "X Window System server type"
Signature · 1 line
1.9.1
PATCH v8 6/8 package/nvidia-tegra23-binaries: new package
In reply to Yann E. MORINFrom: Nicolas Serafini <[email protected]>
This patch adds a new package for all libraries and drivers provided by Nvidia Linux4Tegra release 16.5.
We have intermediate .mk and Config.in, because those values will be shared with the codecs package, to come in a follow-up patch, like we have for the Freescale stuff.
[yann.morin.1998 at free.fr:
- split jpeg into its own patch
- split codecs and gstreamer plugins out into their own packages
- do not patch for .pc files, just bundle them in $(@D)
]
---
Changes v10 -> v11:
- add dependency on the proper VIDEODRV ABI, and drop all useless ABI choices, since we only have one valid (ABI 14) (Thomas)
- remove superfluous TAB
Changes v9 -> v10:
- bump version (Nicolas)
Changes v7 -> v9
- fix typo in variable names (Nicolas)
Changes v6 -> v7:
- use mesa3d-headers instead of Khronos
--- package/Config.in | 1 + package/nvidia-tegra23/Config.in | 37 ++++++++ .../nvidia-tegra23-binaries/Config.in | 27 ++++++ .../nvidia-tegra23/nvidia-tegra23-binaries/egl.pc | 10 +++ .../nvidia-tegra23/nvidia-tegra23-binaries/gles.pc | 10 +++ .../nvidia-tegra23-binaries/glesv2.pc | 10 +++ .../nvidia-tegra23-binaries.hash | 3 + .../nvidia-tegra23-binaries.mk | 98 ++++++++++++++++++++++ package/nvidia-tegra23/nvidia-tegra23.mk | 18 ++++ 9 files changed, 214 insertions(+) create mode 100644 package/nvidia-tegra23/Config.in create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/egl.pc create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/gles.pc create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/glesv2.pc create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.hash create mode 100644 package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk create mode 100644 package/nvidia-tegra23/nvidia-tegra23.mk
package/Config.in +1 -0
@@ -351,6 +351,7 @@ endif source "package/nanocom/Config.in" source "package/neard/Config.in" source "package/nvidia-driver/Config.in" + source "package/nvidia-tegra23/Config.in" source "package/ofono/Config.in" source "package/ola/Config.in" source "package/on2-8170-modules/Config.in"
package/nvidia-tegra23/Config.in new file +37 -0
@@ -0,0 +1,37 @@ +menuconfig BR2_PACKAGE_NVIDIA_TEGRA23 + bool "nvidia-tegra23" + depends on BR2_cortex_a9 + depends on BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC + depends on BR2_PACKAGE_XORG7 + depends on BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_14 + help + Install NVidia proprietary blobs to drive Tegra2 or Tegra3 + GPUs found in some mobile-targeted ARM SoCs. + +if BR2_PACKAGE_NVIDIA_TEGRA23 + +choice + prompt "Tegra platform" + help + Select the SOC platform. + +config BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA2 + bool "Tegra 2" + help + NVIDIA Tegra 2 is a dual-core Cortex-A9 without NEON. + +config BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA3 + bool "Tegra 3" + depends on BR2_ARM_CPU_HAS_NEON + help + NVIDIA Tegra 3 is a quad-core Cortex-A9 with NEON. + +endchoice + +source "package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in" +endif + +comment "nvidia-tegra23 needs Xorg <= 1.14 and a (e)glibc toolchain w/ EABIhf" + depends on BR2_cortex_a9 + depends on !BR2_ARM_EABIHF || !BR2_TOOLCHAIN_USES_GLIBC \ + || !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI_14
package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in new file +27 -0
@@ -0,0 +1,27 @@ +config BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES + bool "nvidia-tegra23 binaries" + select BR2_PACKAGE_MESA3D_HEADERS + select BR2_PACKAGE_XLIB_LIBXT + select BR2_PACKAGE_XLIB_LIBXEXT + select BR2_PACKAGE_XLIB_LIBXV + select BR2_PACKAGE_HAS_LIBEGL + select BR2_PACKAGE_HAS_LIBGLES + select BR2_PACKAGE_HAS_LIBOPENMAX + help + Those packages provide libraries, drivers and firmware that comes from + NVIDIA Linux For Tegra. + + https://developer.nvidia.com/linux-tegra + +if BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES + +config BR2_PACKAGE_PROVIDES_LIBEGL + default "nvidia-tegra23-binaries" + +config BR2_PACKAGE_PROVIDES_LIBGLES + default "nvidia-tegra23-binaries" + +config BR2_PACKAGE_PROVIDES_LIBOPENMAX + default "nvidia-tegra23-binaries" + +endif
package/nvidia-tegra23/nvidia-tegra23-binaries/egl.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=/usr/include + +Name: egl +Description: EGL implementation +Version: 1 +Cflags: -I${includedir}/EGL +Libs: -L${libdir} -lEGL
package/nvidia-tegra23/nvidia-tegra23-binaries/gles.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=/usr/include + +Name: glesv2 +Description: OpenGL ES 1.1 implementation +Version: 1.1 +Cflags: -I${includedir}/GLES +Libs: -L${libdir} -lGLESv1_CM
package/nvidia-tegra23/nvidia-tegra23-binaries/glesv2.pc new file +10 -0
@@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=/usr/include + +Name: glesv2 +Description: OpenGL ES 2 implementation +Version: 2 +Cflags: -I${includedir}/GLESv2 +Libs: -L${libdir} -lGLESv2
package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.hash new file +3 -0
@@ -0,0 +1,3 @@ +# From https://developer.nvidia.com/linux-tegra-rel-16 +sha1 295dcd63b2f122c2d99f07fcc083db9adb8ac178 Tegra20_Linux_R16.5_armhf.tbz2 +sha1 6be645c20d81d518856bc8520ef4c2472d57eaef Tegra30_Linux_R16.5_armhf.tbz2
package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk new file +98 -0
98 lines not on this page · raw message
package/nvidia-tegra23/nvidia-tegra23.mk new file +18 -0
@@ -0,0 +1,18 @@ +################################################################################ +# +# nvidia-tegra23 +# +################################################################################ + +NVIDIA_TEGRA23_VERSION = 16.5 + +ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA2),y) +NVIDIA_TEGRA23_SITE = http://developer.download.nvidia.com/mobile/tegra/l4t/r16.5.0/ventana_release_armhf +NVIDIA_TEGRA23_BASE = Tegra20_Linux +endif +ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA3),y) +NVIDIA_TEGRA23_SITE = http://developer.download.nvidia.com/mobile/tegra/l4t/r16.5.0/cardhu_release_armhf +NVIDIA_TEGRA23_BASE = Tegra30_Linux +endif + +include $(sort $(wildcard package/nvidia-tegra23/*/*.mk))
Signature · 1 line
1.9.1
PATCH v8 7/8 package.nvidia-tegra23-binaries: add gstreamer plugins
In reply to Yann E. MORINFrom: Nicolas Serafini <[email protected]>
--- .../nvidia-tegra23-binaries/Config.in | 15 +++++++++++ .../nvidia-tegra23-binaries.mk | 30 ++++++++++++++++++++++ 2 files changed, 45 insertions(+)
package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in +15 -0
@@ -24,4 +24,19 @@ config BR2_PACKAGE_PROVIDES_LIBGLES config BR2_PACKAGE_PROVIDES_LIBOPENMAX default "nvidia-tegra23-binaries" +config BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS + bool "GStreamer 0.10.x plugins" + depends on BR2_PACKAGE_GSTREAMER # Run-time only + help + GStreamer 0.10.x plugins + +config BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_NV_SAMPLE_APPS + bool "NVIDIA multimedia sample apps" + depends on BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS + help + nvgstplayer and nvgstcapture multimedia test applications. + +comment "GStreamer 0.10.x plugins need GStreamer 0.10" + depends on !BR2_PACKAGE_GSTREAMER + endif
package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk +30 -0
@@ -10,6 +10,10 @@ NVIDIA_TEGRA23_BINARIES_SOURCE = $(NVIDIA_TEGRA23_BASE)_R$(NVIDIA_TEGRA23_BINARI NVIDIA_TEGRA23_BINARIES_LICENSE = License For Customer Use of NVIDIA Software NVIDIA_TEGRA23_BINARIES_LICENSE_FILES = nv_tegra/LICENSE +ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS),y) +NVIDIA_TEGRA23_BINARIES_LICENSE += LGPLv2.1 +NVIDIA_TEGRA23_BINARIES_LICENSE_FILES += nv_tegra/nv_sample_apps/LICENSE.gst-openmax +endif NVIDIA_TEGRA23_BINARIES_INSTALL_STAGING = YES NVIDIA_TEGRA23_BINARIES_INSTALL_TARGET = YES
@@ -49,6 +53,11 @@ NVIDIA_TEGRA23_BINARIES_LIBRARIES = \ NVIDIA_TEGRA23_BINARIES_DRV = \ nv_tegra/nvidia_drivers/usr/lib/xorg/modules/drivers/tegra_drv.abi$(BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI).so +NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS = \ + libgstnv4l2.so libgstnvvidconv.so libgstnvxvimagesink.so libgstomx.so + +NVIDIA_TEGRA23_BINARIES_MULTIMEDIA_APPS = nvgstplayer nvgstcapture + NVIDIA_TEGRA23_BINARIES_PKGCONFIG = egl.pc gles.pc glesv2.pc define NVIDIA_TEGRA23_BINARIES_EXTRACT_FURTHER
@@ -75,12 +84,31 @@ define NVIDIA_TEGRA23_BINARIES_INSTALL_LIBS ) endef +ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS),y) +define NVIDIA_TEGRA23_BINARIES_INSTALL_GST_PLUGINS + $(foreach gst_plug,$(NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS), + $(INSTALL) -D -m 0644 $(@D)/nv_tegra/nv_sample_apps/nvgstapps/usr/lib/gstreamer-0.10/$(gst_plug) \ + $(1)/usr/lib/gstreamer-0.10/$(gst_plug); \ + ) +endef +endif + +ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_NV_SAMPLE_APPS),y) +define NVIDIA_TEGRA23_BINARIES_INSTALL_APPS + $(foreach apps,$(NVIDIA_TEGRA23_BINARIES_MULTIMEDIA_APPS), + $(INSTALL) -D -m 0755 $(@D)/nv_tegra/nv_sample_apps/nvgstapps/usr/bin/$(apps) \ + $(TARGET_DIR)/usr/bin/$(apps); \ + ) +endef +endif + define NVIDIA_TEGRA23_BINARIES_INSTALL_STAGING_CMDS $(call NVIDIA_TEGRA23_BINARIES_INSTALL_LIBS,$(STAGING_DIR)) $(foreach pkgconfig,$(NVIDIA_TEGRA23_BINARIES_PKGCONFIG), $(INSTALL) -D -m 0644 package/nvidia-tegra23/nvidia-tegra23-binaries/$(pkgconfig) \ $(STAGING_DIR)/usr/lib/pkgconfig/$(pkgconfig); \ ) + $(call NVIDIA_TEGRA23_BINARIES_INSTALL_GST_PLUGINS,$(STAGING_DIR)) endef define NVIDIA_TEGRA23_BINARIES_INSTALL_TARGET_CMDS
@@ -93,6 +121,8 @@ define NVIDIA_TEGRA23_BINARIES_INSTALL_TARGET_CMDS $(TARGET_DIR)/etc/nv_tegra_release $(INSTALL) -D -m 0644 $(@D)/$(NVIDIA_TEGRA23_BINARIES_DRV) \ $(TARGET_DIR)/usr/lib/xorg/modules/drivers/tegra_drv.so + $(call NVIDIA_TEGRA23_BINARIES_INSTALL_GST_PLUGINS,$(TARGET_DIR)) + $(NVIDIA_TEGRA23_BINARIES_INSTALL_APPS) endef $(eval $(generic-package))
Signature · 1 line
1.9.1
PATCH v8 8/8 package/nvidia-tegra23-codecs: new package
In reply to Yann E. MORINFrom: Nicolas Serafini <[email protected]>
nvidia-tegra23-codecs provides various HW-accelerated media codecs, such
as: AAC3, h264, jpeg, MP3...
[me:
- split codecs from binaries into this patch
- use our extractor helpers
]
---
Changes v9 -> v10:
- bump version (Nicolas)
--- package/nvidia-tegra23/Config.in | 1 + .../nvidia-tegra23/nvidia-tegra23-codecs/Config.in | 7 ++++ .../nvidia-tegra23-codecs.hash | 3 ++ .../nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk | 41 ++++++++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 package/nvidia-tegra23/nvidia-tegra23-codecs/Config.in create mode 100644 package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.hash create mode 100644 package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk
package/nvidia-tegra23/Config.in +1 -0
@@ -29,6 +29,7 @@ config BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA3 endchoice source "package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in" +source "package/nvidia-tegra23/nvidia-tegra23-codecs/Config.in" endif comment "nvidia-tegra23 needs Xorg <= 1.14 and a (e)glibc toolchain w/ EABIhf"
package/nvidia-tegra23/nvidia-tegra23-codecs/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_NVIDIA_TEGRA23_CODECS + bool "nvidia-tegra23 codecs" + depends on BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES + help + NVIDIA Tegra restricted codecs from Linux For Tegra 16.5. + + https://developer.nvidia.com/linux-tegra-rel-16
package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.hash new file +3 -0
@@ -0,0 +1,3 @@ +# From https://developer.nvidia.com/linux-tegra-rel-16 +sha1 540e89d5462537cd59c8a86efdb786b3b4310868 Tegra20_Linux-codecs_R16.5_armhf.tbz2 +sha1 3637efe808f25594e3cdc2756aef6e0274ab70f4 Tegra30_Linux-codecs_R16.5_armhf.tbz2
package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.mk new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
1.9.1