Commit a78c1258 authored by Nicolas Serafini's avatar Nicolas Serafini Committed by Thomas Petazzoni
Browse files

package/nvidia-tegra23-binaries: new package



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.

Signed-off-by: default avatarNicolas Serafini <nicolas.serafini@sensefly.com>
[yann.morin.1998@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)
]
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Ben Ben <carmazen84@gmail.com>

[Thomas:
  - don't select BR2_PACKAGE_XLIB_LIBXT, there is no reference to it
    in <pkg>_DEPENDENCIES, and it doesn't seem to be used by any
    library.
  - select BR2_PACKAGE_XLIB_LIBX11, which is referenced by the .mk
    file, and is actually used by the pre-built .so files.
  - do not select BR2_PACKAGE_XLIB_LIBXV, since it isn't used by the
    X.org libraries/drivers, but only the Gstreamer ones.
  - remove 'NVIDIA_TEGRA23_BINARIES_INSTALL_TARGET = YES', it is not
    needed since it is the default.
  - remove the definitions of NVIDIA_TEGRA23_BINARIES_FIRMWARE,
    NVIDIA_TEGRA23_BINARIES_LIBRARIES and
    NVIDIA_TEGRA23_BINARIES_PKGCONFIG, these are very long, and not
    really needed: just copy all the firmware, libraries and .pc files
    with a simple 'cp -dpfr'.]

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 148124ff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -378,6 +378,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"
+37 −0
Original line number Diff line number Diff line
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
+26 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES
	bool "nvidia-tegra23 binaries"
	select BR2_PACKAGE_MESA3D_HEADERS
	select BR2_PACKAGE_XLIB_LIBX11
	select BR2_PACKAGE_XLIB_LIBXEXT
	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
+10 −0
Original line number Diff line number Diff line
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
+10 −0
Original line number Diff line number Diff line
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
Loading