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: Nicolas 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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-21 19:04:42 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# nvidia-tegra23-binaries
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
NVIDIA_TEGRA23_BINARIES_VERSION = $(NVIDIA_TEGRA23_VERSION)
|
|
|
|
NVIDIA_TEGRA23_BINARIES_SITE = $(NVIDIA_TEGRA23_SITE)
|
|
|
|
NVIDIA_TEGRA23_BINARIES_SOURCE = $(NVIDIA_TEGRA23_BASE)_R$(NVIDIA_TEGRA23_BINARIES_VERSION)_armhf.tbz2
|
|
|
|
|
|
|
|
NVIDIA_TEGRA23_BINARIES_LICENSE = License For Customer Use of NVIDIA Software
|
|
|
|
NVIDIA_TEGRA23_BINARIES_LICENSE_FILES = nv_tegra/LICENSE
|
2015-04-21 19:04:43 +02:00
|
|
|
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
|
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: Nicolas 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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-21 19:04:42 +02:00
|
|
|
|
|
|
|
NVIDIA_TEGRA23_BINARIES_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
# Those are not really needed to build nvidia-tegra23-binaries, but
|
|
|
|
# will be needed by packages who link against libraries provided by
|
|
|
|
# nvidia-tegra23-binaries.
|
|
|
|
|
|
|
|
NVIDIA_TEGRA23_BINARIES_DEPENDENCIES = mesa3d-headers \
|
|
|
|
xlib_libX11 xlib_libXext
|
|
|
|
|
2015-04-21 19:04:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS),y)
|
|
|
|
NVIDIA_TEGRA23_BINARIES_DEPENDENCIES += xlib_libXv
|
|
|
|
endif
|
|
|
|
|
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: Nicolas 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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-21 19:04:42 +02:00
|
|
|
NVIDIA_TEGRA23_BINARIES_PROVIDES = libegl libgles libopenmax
|
|
|
|
|
|
|
|
NVIDIA_TEGRA23_BINARIES_DRV = \
|
|
|
|
nv_tegra/nvidia_drivers/usr/lib/xorg/modules/drivers/tegra_drv.abi$(BR2_PACKAGE_XSERVER_XORG_SERVER_VIDEODRV_ABI).so
|
|
|
|
|
|
|
|
define NVIDIA_TEGRA23_BINARIES_EXTRACT_FURTHER
|
|
|
|
$(INSTALL) -d $(@D)/nv_tegra/nvidia_drivers
|
|
|
|
$(call suitable-extractor,$(@D)/nv_tegra/nvidia_drivers.tbz2) \
|
|
|
|
$(@D)/nv_tegra/nvidia_drivers.tbz2 | \
|
|
|
|
$(TAR) $(TAR_STRIP_COMPONENTS)=0 -C $(@D)/nv_tegra/nvidia_drivers/ $(TAR_OPTIONS) -
|
|
|
|
$(INSTALL) -d $(@D)/nv_tegra/nv_sample_apps/nvgstapps
|
|
|
|
$(call suitable-extractor,$(@D)/nv_tegra/nv_sample_apps/nvgstapps.tbz2) \
|
|
|
|
$(@D)/nv_tegra/nv_sample_apps/nvgstapps.tbz2 | \
|
|
|
|
$(TAR) $(TAR_STRIP_COMPONENTS)=0 -C $(@D)/nv_tegra/nv_sample_apps/nvgstapps/ $(TAR_OPTIONS) -
|
|
|
|
endef
|
|
|
|
NVIDIA_TEGRA23_BINARIES_POST_EXTRACT_HOOKS += NVIDIA_TEGRA23_BINARIES_EXTRACT_FURTHER
|
|
|
|
|
|
|
|
define NVIDIA_TEGRA23_BINARIES_INSTALL_LIBS
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
cp -dpfr $(@D)/nv_tegra/nvidia_drivers/usr/lib/*.so $(1)/usr/lib/
|
|
|
|
(cd $(1)/usr/lib; \
|
|
|
|
ln -sf libGLESv2.so.2 libGLESv2.so; \
|
|
|
|
ln -sf libGLESv1_CM.so.1 libGLESv1_CM.so; \
|
|
|
|
ln -sf libEGL.so.1 libEGL.so \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2015-04-21 19:04:43 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS),y)
|
|
|
|
define NVIDIA_TEGRA23_BINARIES_INSTALL_GST_PLUGINS
|
|
|
|
mkdir -p $(1)/usr/lib/gstreamer-0.10/
|
|
|
|
cp -dpfr $(@D)/nv_tegra/nv_sample_apps/nvgstapps/usr/lib/gstreamer-0.10/*.so \
|
|
|
|
$(1)/usr/lib/gstreamer-0.10/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_NV_SAMPLE_APPS),y)
|
|
|
|
define NVIDIA_TEGRA23_BINARIES_INSTALL_APPS
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/bin/
|
|
|
|
cp -dpfr $(@D)/nv_tegra/nv_sample_apps/nvgstapps/usr/bin/* \
|
|
|
|
$(TARGET_DIR)/usr/bin/
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
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: Nicolas 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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-21 19:04:42 +02:00
|
|
|
define NVIDIA_TEGRA23_BINARIES_INSTALL_STAGING_CMDS
|
|
|
|
$(call NVIDIA_TEGRA23_BINARIES_INSTALL_LIBS,$(STAGING_DIR))
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig/
|
|
|
|
cp -dpfr package/nvidia-tegra23/nvidia-tegra23-binaries/*.pc \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/
|
2015-04-21 19:04:43 +02:00
|
|
|
$(call NVIDIA_TEGRA23_BINARIES_INSTALL_GST_PLUGINS,$(STAGING_DIR))
|
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: Nicolas 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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-21 19:04:42 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define NVIDIA_TEGRA23_BINARIES_INSTALL_TARGET_CMDS
|
|
|
|
$(call NVIDIA_TEGRA23_BINARIES_INSTALL_LIBS,$(TARGET_DIR))
|
|
|
|
mkdir -p $(TARGET_DIR)/lib/firmware/
|
|
|
|
cp -dpfr $(@D)/nv_tegra/nvidia_drivers/lib/firmware/*.bin \
|
|
|
|
$(TARGET_DIR)/lib/firmware/
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/nv_tegra/nvidia_drivers/etc/nv_tegra_release \
|
|
|
|
$(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
|
2015-04-21 19:04:43 +02:00
|
|
|
$(call NVIDIA_TEGRA23_BINARIES_INSTALL_GST_PLUGINS,$(TARGET_DIR))
|
|
|
|
$(NVIDIA_TEGRA23_BINARIES_INSTALL_APPS)
|
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: Nicolas 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: "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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-04-21 19:04:42 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|