Skip to contentSkip to conversation

NVidia GPU binary blobs for x86 and ARM (branch yem/gfx-2)

PATCH Superseded Yann E. MORIN 2 participants 19 messages Jan 18, 2015 Tegra architecture support

v4 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#1 lore raw

PATCH v4 1/11 package/python-lxml: new package

In reply to Yann E. MORIN

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

---
This is a host-only package for now, because I only needed it to build opengl-registry.

---
 package/python-lxml/python-lxml.hash |  2 ++
 package/python-lxml/python-lxml.mk   | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 package/python-lxml/python-lxml.hash
 create mode 100644 package/python-lxml/python-lxml.mk
package/python-lxml/python-lxml.hash new file +2 -0
new file mode 100644
index 0000000..470a245
@@ -0,0 +1,2 @@
+# Locally computed
+sha256  069594837d0376a1bacf5cc42aa9a1be2e1c1396dc62f7d07f7358afecd34adf  lxml-3.4.1.tgz
package/python-lxml/python-lxml.mk new file +25 -0
new file mode 100644
index 0000000..758ce87
@@ -0,0 +1,25 @@
+################################################################################
+#
+# python-lxml
+#
+################################################################################
+
+PYTHON_LXML_VERSION = 3.4.1
+PYTHON_LXML_SITE = http://lxml.de/files
+PYTHON_LXML_SOURCE = lxml-$(PYTHON_LXML_VERSION).tgz
+
+# Not including the GPL, because it is used only for the test scripts.
+PYTHON_LXML_LICENSE = BSD-3c, Others
+PYTHON_LXML_LICENSE_FILES = \
+	LICENSES.txt \
+	doc/licenses/BSD.txt \
+	doc/licenses/elementtree.txt \
+	src/lxml/isoschematron/resources/rng/iso-schematron.rng
+
+# python-lxml can use either setuptools, or distutils as a fallback.
+# So, we use setuptools.
+PYTHON_LXML_SETUP_TYPE = setuptools
+
+PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
+
+$(eval $(host-python-package))
Signature · 1 line
1.9.1
#8 lore raw

PATCH v4 2/11 package/khrplatform-registry: new package

In reply to Yann E. MORIN

Khronos is the group behind OpenGL and its siblings, OpenMAX and all other Open-something.

Khronos maintains the Registry, in which the reference headers for the different Open-something are maintained.

khrplatform is the header used by most other Khronos headers.

Note: there is no version for that file, so we rely on the hash to decide whether we have to re-download it or not. That's unfortunate, however, as an old build will not be reproducible in the future... :-(

---
 package/opengl/Config.in                           |  3 +++
 package/opengl/khronos-registry/Config.in          |  1 +
 .../opengl/khronos-registry/khronos-registry.mk    |  1 +
 .../khrplatform-registry/Config.in                 |  7 ++++++
 .../khrplatform-registry/khrplatform-registry.hash |  2 ++
 .../khrplatform-registry/khrplatform-registry.mk   | 25 ++++++++++++++++++++++
 6 files changed, 39 insertions(+)
 create mode 100644 package/opengl/khronos-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/khronos-registry.mk
 create mode 100644 package/opengl/khronos-registry/khrplatform-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/khrplatform-registry/khrplatform-registry.hash
 create mode 100644 package/opengl/khronos-registry/khrplatform-registry/khrplatform-registry.mk
package/opengl/Config.in +3 -0
index 20ee28b..47d00d1 100644
@@ -3,3 +3,6 @@ source "package/opengl/libegl/Config.in"
 source "package/opengl/libgles/Config.in"
 source "package/opengl/libopenvg/Config.in"
 source "package/opengl/libopenmax/Config.in"
+
+# Khronos headers, from the Khronos Registries
+source "package/opengl/khronos-registry/Config.in"
package/opengl/khronos-registry/Config.in new file +1 -0
new file mode 100644
index 0000000..8def807
@@ -0,0 +1 @@
+source "package/opengl/khronos-registry/khrplatform-registry/Config.in"
package/opengl/khronos-registry/khronos-registry.mk new file +1 -0
new file mode 100644
index 0000000..6bf916c
@@ -0,0 +1 @@
+include $(sort $(wildcard package/opengl/khronos-registry/*/*.mk))
package/opengl/khronos-registry/khrplatform-registry/Config.in new file +7 -0
new file mode 100644
index 0000000..dcff578
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_KHRPLATFORM_REGISTRY
+	bool
+	help
+	  khrplatform installs the khrplatform.h headers, used by most
+	  other Khronos headers.
+
+	  https://www.khronos.org/registry/
package/opengl/khronos-registry/khrplatform-registry/khrplatform-registry.hash new file +2 -0
new file mode 100644
index 0000000..9abb73c
@@ -0,0 +1,2 @@
+# Locally computed
+sha256  7631de0f2ce64747bfd893486eaa41aa08b9e8c5e5c6501b81c045c6ebf04b2a  khrplatform.h
package/opengl/khronos-registry/khrplatform-registry/khrplatform-registry.mk new file +25 -0
new file mode 100644
index 0000000..f32dbb2
@@ -0,0 +1,25 @@
+################################################################################
+#
+# khrplatform-registry
+#
+################################################################################
+
+# There is no version for that file :-(
+
+KHRPLATFORM_REGISTRY_SOURCE = khrplatform.h
+KHRPLATFORM_REGISTRY_SITE = https://www.khronos.org/registry/egl/api/KHR
+
+# Only installs a header
+KHRPLATFORM_REGISTRY_INSTALL_STAGING = YES
+KHRPLATFORM_REGISTRY_INSTALL_TARGET = NO
+
+define KHRPLATFORM_REGISTRY_EXTRACT_CMDS
+	$(INSTALL) -d $(@D)
+	$(INSTALL) -D -m 0644 $(DL_DIR)/khrplatform.h $(@D)/khrplatform.h
+endef
+
+define KHRPLATFORM_REGISTRY_INSTALL_STAGING_CMDS
+	$(INSTALL) -D -m 0644 $(@D)/khrplatform.h $(STAGING_DIR)/usr/include/KHR/khrplatform.h
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.9.1
#9 lore raw

PATCH v4 3/11 package/openkode-registry: new package

In reply to Yann E. MORIN

The OpenKODE Registry provides all OpenKODE headers, directly from the Khronos group.

Those headers are needed when an OpenKODE implementation does not provide them, like the NVidia binary blobs.

Cc Nicolas Serafini <[email protected]>
---
 package/opengl/khronos-registry/Config.in          |  1 +
 .../khronos-registry/openkode-registry/Config.in   | 15 +++++++
 .../openkode-registry/openkode-registry.hash       |  7 ++++
 .../openkode-registry/openkode-registry.mk         | 48 ++++++++++++++++++++++
 4 files changed, 71 insertions(+)
 create mode 100644 package/opengl/khronos-registry/openkode-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/openkode-registry/openkode-registry.hash
 create mode 100644 package/opengl/khronos-registry/openkode-registry/openkode-registry.mk
package/opengl/khronos-registry/Config.in +1 -0
index 8def807..770c9be 100644
@@ -1 +1,2 @@
 source "package/opengl/khronos-registry/khrplatform-registry/Config.in"
+source "package/opengl/khronos-registry/openkode-registry/Config.in"
package/opengl/khronos-registry/openkode-registry/Config.in new file +15 -0
new file mode 100644
index 0000000..b161235
@@ -0,0 +1,15 @@
+# Note: this package has no prompt, because it is to be selected by
+# packages that need it, and does not make sense on its own.
+# Further more, we want to avoid it being enabled alongside any other
+# package that provide their own OpenKODE headers
+
+config BR2_PACKAGE_OPENKODE_REGISTRY
+	bool
+	select BR2_PACKAGE_KHRPLATFORM_REGISTRY
+	help
+	  The OpenKODE Registry contains specifications of the core API and
+	  headers, optional OpenKODE extensions and headers, points to other
+	  Khronos APIs required by a conformant OpenKODE implementation, and
+	  includes some related documentation.
+
+	  https://www.khronos.org/registry/kode/
package/opengl/khronos-registry/openkode-registry/openkode-registry.hash new file +7 -0
new file mode 100644
index 0000000..2a66ea8
@@ -0,0 +1,7 @@
+# Locally computed
+sha256 e55f962ec91f9a58824a8c42d3556ea1d803b589f5d7b1b6d1ab5bae929fd1cd  kd.h
+sha256 a51e0cbda20c393585e08a5035fe1bb6b9bed239a80f95e843686d1567a9f513  kdplatform.h
+sha256 331835322e53fc131774b6116318a2445651b3487e41510a786d5a27ce556e91  KHR_float64.h
+sha256 37a7596ec5377bb17fb157750a584b39b8bc7955a96b4fb29ff0c6cdf7a3fd9e  KHR_formatted.h
+sha256 cea58f28b749c59790327f61c445b09a202ef71c97b13cbbce1310316121c23e  KHR_perfcounter.h
+sha256 aa2bfc742d209e195580a0194352e1b375f9b71688ce7f6b222ab020c397e7f9  KHR_thread_storage.h
package/opengl/khronos-registry/openkode-registry/openkode-registry.mk new file +48 -0

48 lines not on this page · raw message

Signature · 1 line
1.9.1
#10 lore raw

PATCH v4 4/11 package/opengl-registry: new package

In reply to Yann E. MORIN

The OpenGL Registry provides all GL headers, save for gl.h itself. We vampirise the one from mesa3d (at the version we currently package), which is as good as any other.

Those headers are needed when an OpenGL/EGL/GLES implementation does not provide its own headers, like the NVidia binary blob (to come in follow-up patches.)

--
Tested by building XBMC against the NVidia proprietary blob.

Note: their svn repository holds many other things, even non-public stuff, so the svn revision we use is the one at which the api directory was *changed*, which might be lagging behind the revision the repository is currently at

---
Chamges v3 -> v4:
- move to a sub-dir of opengl/ because we'll add some more Khronos registry packages (OpenMAX...)
- bump revision

---
 package/opengl/khronos-registry/Config.in          |    1 +
 .../khronos-registry/opengl-registry/Config.in     |   24 +
 .../opengl/khronos-registry/opengl-registry/gl.h   | 2115 ++++++++++++++++++++
 .../opengl-registry-000-run-from-current-dir.patch |   17 +
 .../opengl-registry/opengl-registry.mk             |   87 +
 5 files changed, 2244 insertions(+)
 create mode 100644 package/opengl/khronos-registry/opengl-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/opengl-registry/gl.h
 create mode 100644 package/opengl/khronos-registry/opengl-registry/opengl-registry-000-run-from-current-dir.patch
 create mode 100644 package/opengl/khronos-registry/opengl-registry/opengl-registry.mk
package/opengl/khronos-registry/Config.in +1 -0
index 770c9be..ee550e9 100644
@@ -1,2 +1,3 @@
 source "package/opengl/khronos-registry/khrplatform-registry/Config.in"
 source "package/opengl/khronos-registry/openkode-registry/Config.in"
+source "package/opengl/khronos-registry/opengl-registry/Config.in"
package/opengl/khronos-registry/opengl-registry/Config.in new file +24 -0
new file mode 100644
index 0000000..2c3c60c
@@ -0,0 +1,24 @@
+# Note: this package has no prompt, because it is to be selected by
+# packages that need it, and does not make sense on its own.
+# Further more, we want to avoid it being enabled alongside any other
+# package that provide their own OpenGL headers, like mesa3d or
+# rpi-userland...
+
+config BR2_PACKAGE_OPENGL_REGISTRY
+	bool
+	select BR2_PACKAGE_KHRPLATFORM_REGISTRY
+	help
+	  The OpenGL Registry contains specifications, header files, and
+	  related documentation for OpenGL and related APIs including GLU,
+	  GLX, and WGL. In addition to the core API specifications, many
+	  extensions to these APIs have been defined by vendors, groups of
+	  vendors, and the ARB. The Registry also contains specifications
+	  and header files for all registered extensions, written as
+	  modifications to the appropriate core API specifications.
+
+	  This package installs the openGL header files. You do not need them
+	  if the OpenGL/EGL/GLES implementation provides its own headers.
+	  Currently, the only known implementation requiring OpenGL Resgistry
+	  is the NVidia proprietary driver.
+
+	  https://www.opengl.org/registry/
package/opengl/khronos-registry/opengl-registry/gl.h new file +2115 -0

2,115 lines not on this page · raw message

package/opengl/khronos-registry/opengl-registry/opengl-registry-000-run-from-current-dir.patch new file +17 -0
new file mode 100644
index 0000000..4b042ab
@@ -0,0 +1,17 @@
+Makefile: allow running without the current dir in PATH
+
+Signed-off-by: "Yann E. MORIN" <[email protected]>
+
+Index: a/Makefile
+===================================================================
+--- a/Makefile	(revision 27863)
++++ a/Makefile	(working copy)
+@@ -24,7 +24,7 @@
+ 
+ PYFILES = genheaders.py reg.py
+ GENOPTS =
+-GENHEADERS = genheaders.py $(GENOPTS)
++GENHEADERS = ./genheaders.py $(GENOPTS)
+ 
+ # Generate all headers for GL / GLES / WGL / GLX / EGL
+ # Different headers depend on different XML registry files
package/opengl/khronos-registry/opengl-registry/opengl-registry.mk new file +87 -0

87 lines not on this page · raw message

Signature · 1 line
1.9.1
#0 lore raw

v4 cover NVidia GPU binary blobs for x86 and ARM (branch yem/gfx-2)

Hello All!

This series adds support for NVidia's binary blob, the driver to its family of GPUs, for x86 (by Yann) and Tegra2 and Tegra3 (by Nicolas).

It also introduces the OpenGL Registry, to provide GL headers for those OpenGL/EGL/GLES implementations that do not provide their own headers (like NVidia's binary blob.)

The x86 drivers were build- and runtile-tested using XBMC (not yet with Kodi); the tests were very shallow, though, and not everything was thouroughly tested (especially the video decoding part), but it is apparently working OK so far.

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 3ac6390abd6dd304987116bd35ee4f72361dbb12:

samba4: security bump to version 4.1.16 (2015-01-16 22:37:56 +0100)

are available in the git repository at:

git://git.busybox.net/~ymorin/git/buildroot yem/gfx-2

for you to fetch changes up to cdf9d026f9e02b9a4c73069bcdbf2cc6e3cf54e3:

package/nvidia-tegra23-codecs: new package (2015-01-18 12:52:47 +0100)

----------------------------------------------------------------
Nicolas Serafini (4):
package/nvidia-tegra23-binaries: new package package.nvidia-tegra23-binaries: add gstreamer plugins package/nvidia-tegra23-binaries: provides JPEG package/nvidia-tegra23-codecs: new package

Yann E. MORIN (7):
package/python-lxml: new package package/khrplatform-registry: new package package/openkode-registry: new package package/opengl-registry: new package package/openmax-registry: new package package/nvidia-driver: add NVidia's OpenGL binary blob package/nvidia-driver: build the kernel module

 package/Config.in                                  |    2 +
 package/jpeg/Config.in                             |   10 +
 package/nvidia-driver/Config.in                    |   65 +
 package/nvidia-driver/nvidia-driver.hash           |    3 +
 package/nvidia-driver/nvidia-driver.mk             |  160 ++
 package/nvidia-tegra23/Config.in                   |   37 +
 .../nvidia-tegra23-binaries/Config.in              |  110 +
 .../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                     |  134 ++
 .../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           |   17 +
 package/opengl/Config.in                           |    3 +
 package/opengl/khronos-registry/Config.in          |    4 +
 .../opengl/khronos-registry/khronos-registry.mk    |    1 +
 .../khrplatform-registry/Config.in                 |    7 +
 .../khrplatform-registry/khrplatform-registry.hash |    2 +
 .../khrplatform-registry/khrplatform-registry.mk   |   25 +
 .../khronos-registry/opengl-registry/Config.in     |   24 +
 .../opengl/khronos-registry/opengl-registry/gl.h   | 2115 ++++++++++++++++++++
 .../opengl-registry-000-run-from-current-dir.patch |   17 +
 .../opengl-registry/opengl-registry.mk             |   87 +
 .../khronos-registry/openkode-registry/Config.in   |   15 +
 .../openkode-registry/openkode-registry.hash       |    7 +
 .../openkode-registry/openkode-registry.mk         |   48 +
 .../khronos-registry/openmax-registry/Config.in    |   20 +
 .../openmax-registry/opengl-registry.hash          |    3 +
 .../openmax-registry/opengl-registry.mk            |   27 +
 package/python-lxml/python-lxml.hash               |    2 +
 package/python-lxml/python-lxml.mk                 |   25 +
 34 files changed, 3054 insertions(+)
 create mode 100644 package/nvidia-driver/Config.in
 create mode 100644 package/nvidia-driver/nvidia-driver.hash
 create mode 100644 package/nvidia-driver/nvidia-driver.mk
 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
 create mode 100644 package/opengl/khronos-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/khronos-registry.mk
 create mode 100644 package/opengl/khronos-registry/khrplatform-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/khrplatform-registry/khrplatform-registry.hash
 create mode 100644 package/opengl/khronos-registry/khrplatform-registry/khrplatform-registry.mk
 create mode 100644 package/opengl/khronos-registry/opengl-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/opengl-registry/gl.h
 create mode 100644 package/opengl/khronos-registry/opengl-registry/opengl-registry-000-run-from-current-dir.patch
 create mode 100644 package/opengl/khronos-registry/opengl-registry/opengl-registry.mk
 create mode 100644 package/opengl/khronos-registry/openkode-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/openkode-registry/openkode-registry.hash
 create mode 100644 package/opengl/khronos-registry/openkode-registry/openkode-registry.mk
 create mode 100644 package/opengl/khronos-registry/openmax-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/openmax-registry/opengl-registry.hash
 create mode 100644 package/opengl/khronos-registry/openmax-registry/opengl-registry.mk
 create mode 100644 package/python-lxml/python-lxml.hash
 create mode 100644 package/python-lxml/python-lxml.mk
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.  |
'------------------------------^-------^------------------^--------------------'
#12 lore raw

PATCH v4 5/11 package/openmax-registry: new package

The OpenMAX Registry provides all OpenMAX headers, directly from the Khronos group.

Those headers are needed when an OpenMAX implementation does not provide them, like the NVidia binary blob.

Cc Nicolas Serafini <[email protected]>
---
 package/opengl/khronos-registry/Config.in          |  1 +
 .../khronos-registry/openmax-registry/Config.in    | 20 ++++++++++++++++
 .../openmax-registry/opengl-registry.hash          |  3 +++
 .../openmax-registry/opengl-registry.mk            | 27 ++++++++++++++++++++++
 4 files changed, 51 insertions(+)
 create mode 100644 package/opengl/khronos-registry/openmax-registry/Config.in
 create mode 100644 package/opengl/khronos-registry/openmax-registry/opengl-registry.hash
 create mode 100644 package/opengl/khronos-registry/openmax-registry/opengl-registry.mk
package/opengl/khronos-registry/Config.in +1 -0
index ee550e9..e936b9e 100644
@@ -1,3 +1,4 @@
 source "package/opengl/khronos-registry/khrplatform-registry/Config.in"
 source "package/opengl/khronos-registry/openkode-registry/Config.in"
 source "package/opengl/khronos-registry/opengl-registry/Config.in"
+source "package/opengl/khronos-registry/openmax-registry/Config.in"
package/opengl/khronos-registry/openmax-registry/Config.in new file +20 -0
new file mode 100644
index 0000000..c9af0bb
@@ -0,0 +1,20 @@
+# Note: this package has no prompt, because it is to be selected by
+# packages that need it, and does not make sense on its own.
+# Further more, we want to avoid it being enabled alongside any other
+# package that provide their own OpenMAX headers, like rpi-userland...
+
+config BR2_PACKAGE_OPENMAX_REGISTRY
+	bool
+	select BR2_PACKAGE_KHRPLATFORM_REGISTRY
+	help
+	  The OpenMAX IL registry contains specifications of the core API;
+	  specifications of Khronos- and vendor-approved OpenMAX IL extensions;
+	  header files corresponding to the specifications; and other related
+	  documentation.
+
+	  This package installs the OpenMAX header files. You do not need them
+	  if the OpenMAX implementation provides its own headers.
+	  Currently, the only known implementation requiring OpenGL Resgistry
+	  is the NVidia proprietary driver.
+
+	  https://www.khronos.org/registry/omxil/
package/opengl/khronos-registry/openmax-registry/opengl-registry.hash new file +3 -0
new file mode 100644
index 0000000..e2f5014
@@ -0,0 +1,3 @@
+# Locally computed:
+sha1   35b2c565a050b4235feac3f22bbbf4bf80092a00                          OpenMAX_IL_1_1_2_Header.zip
+sha256 9e8aee85f37946202ff15a52836233f983e90a751c0816ba341ba0c1ffedf99e  OpenMAX_IL_1_1_2_Header.zip
package/opengl/khronos-registry/openmax-registry/opengl-registry.mk new file +27 -0
new file mode 100644
index 0000000..aecca00
@@ -0,0 +1,27 @@
+################################################################################
+#
+# openmax-registry
+#
+################################################################################
+
+# Using last revision at which the 'api' directory was *changed*
+OPENMAX_REGISTRY_VERSION = 1.1.2
+OPENMAX_REGISTRY_SOURCE = OpenMAX_IL_$(subst .,_,$(OPENMAX_REGISTRY_VERSION))_Header.zip
+OPENMAX_REGISTRY_SITE = https://www.khronos.org/registry/omxil/api/$(OPENMAX_REGISTRY_VERSION)
+OPENMAX_REGISTRY_LICENSE = MIT
+
+# The registry only installs header files
+OPENMAX_REGISTRY_INSTALL_STAGING = YES
+OPENMAX_REGISTRY_INSTALL_TARGET = NO
+
+define OPENMAX_REGISTRY_EXTRACT_CMDS
+	$(UNZIP) $(DL_DIR)/$(OPENMAX_REGISTRY_SOURCE) -d $(@D)
+endef
+
+define OPENMAX_REGISTRY_INSTALL_STAGING_CMDS
+	for h in $(@D)/*.h; do \
+		$(INSTALL) -D -m 0644 $${h} $(STAGING_DIR)/usr/include/$${h##*/} || exit 1; \
+	done
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.9.1
#13 lore raw

PATCH v4 6/11 package/nvidia-driver: add NVidia's OpenGL binary blob

In reply to Yann E. MORIN

This patch only adds the userland part. Unless other such other packages (which we named like: rpi-userland), we do not replicate this naming scheme with this package, as a future patch will also enable building the kernel part of the driver. So, it is better to just name that package with -driver, rather than with -userland and renaming it afterwards.

---
 package/Config.in                        |   1 +
 package/nvidia-driver/Config.in          |  51 ++++++++++++++
 package/nvidia-driver/nvidia-driver.hash |   3 +
 package/nvidia-driver/nvidia-driver.mk   | 110 +++++++++++++++++++++++++++++++
 4 files changed, 165 insertions(+)
 create mode 100644 package/nvidia-driver/Config.in
 create mode 100644 package/nvidia-driver/nvidia-driver.hash
 create mode 100644 package/nvidia-driver/nvidia-driver.mk
package/Config.in +1 -0
index 266de13..0ca776e 100644
@@ -351,6 +351,7 @@ endif
 	source "package/minicom/Config.in"
 	source "package/nanocom/Config.in"
 	source "package/neard/Config.in"
+	source "package/nvidia-driver/Config.in"
 	source "package/ofono/Config.in"
 	source "package/ola/Config.in"
 	source "package/on2-8170-modules/Config.in"
package/nvidia-driver/Config.in new file +51 -0

51 lines not on this page · raw message

package/nvidia-driver/nvidia-driver.hash new file +3 -0
new file mode 100644
index 0000000..137590f
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  bba63c30c730ad7b8500a77c81cae58562b9f9b57cd576b61f37a2d8bc45df25  NVIDIA-Linux-x86-346.35.run
+sha256  8625acbbc7a2abdda436a5cb9d06f2a7f5913b16e0a35ac4f9f106853a94d086  NVIDIA-Linux-x86_64-346.35.run
package/nvidia-driver/nvidia-driver.mk new file +110 -0

110 lines not on this page · raw message

Signature · 1 line
1.9.1
#14 lore raw

PATCH v4 7/11 package/nvidia-driver: build the kernel module

In reply to Yann E. MORIN

Add option to build the nvidia.ko module. If CUDA is enabled on x86_64, also build the nvidia-uvm.ko kernel module (for Unified Memory access), which is required by the CUDA user-land library.

Substancially inspired by the corresponding Gentoo ebuild:

    http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-340.32.ebuild?revision=1.2&view=markup
---
 package/nvidia-driver/Config.in        | 14 ++++++++++
 package/nvidia-driver/nvidia-driver.mk | 50 ++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
package/nvidia-driver/Config.in +14 -0
index 071e85e..845746e 100644
@@ -48,4 +48,18 @@ config BR2_PACKAGE_NVIDIA_DRIVER_PRIVATE_LIBS
 	  Say 'y' here if you plan on running a program that uses those
 	  private libraries.
 
+comment "nvidia kernel module needs a kernel to be built"
+	depends on !BR2_LINUX_KERNEL
+
+config BR2_PACKAGE_NVIDIA_DRIVER_MODULE
+	bool "nvidia kernel module"
+	depends on BR2_LINUX_KERNEL
+	help
+	  Build the nvidia.ko kernel module.
+
+	  If CUDA support (above) is set, and the target is x86_64, then
+	  this will also build the nvidia-uvm.ko kernel module, which
+	  provides Unified Memory access to the GPU and CPU memories for
+	  CUDA programs.
+
 endif # BR2_PACKAGE_NVIDIA_DRIVER
package/nvidia-driver/nvidia-driver.mk +50 -0

62 lines not on this page · raw message

Signature · 1 line
1.9.1
#15 lore raw

PATCH v4 8/11 package/nvidia-tegra23-binaries: new package

In reply to Yann E. MORIN

From: Nicolas Serafini <[email protected]>

This patch adds a new package for all libraries and drivers provided by Nvidia Linux4Tegra release 16.4.0.

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)
]

---
 package/Config.in                                  |  1 +
 package/nvidia-tegra23/Config.in                   | 36 ++++++++
 .../nvidia-tegra23-binaries/Config.in              | 95 +++++++++++++++++++++
 .../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                     | 99 ++++++++++++++++++++++
 package/nvidia-tegra23/nvidia-tegra23.mk           | 17 ++++
 9 files changed, 281 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
index 0ca776e..ac84662 100644
@@ -352,6 +352,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 +36 -0
new file mode 100644
index 0000000..950f2f8
@@ -0,0 +1,36 @@
+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
+	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 and a (e)glibc toolchain w/ EABIhf"
+	depends on BR2_cortex_a9
+	depends on !BR2_ARM_EABIHF || !BR2_TOOLCHAIN_USES_GLIBC \
+		|| !BR2_PACKAGE_XORG7
package/nvidia-tegra23/nvidia-tegra23-binaries/Config.in new file +95 -0

95 lines not on this page · raw message

package/nvidia-tegra23/nvidia-tegra23-binaries/egl.pc new file +10 -0
new file mode 100644
index 0000000..3af7eec
@@ -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
new file mode 100644
index 0000000..91387c9
@@ -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
new file mode 100644
index 0000000..356a1cb
@@ -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
new file mode 100644
index 0000000..8185593
@@ -0,0 +1,3 @@
+# From https://developer.nvidia.com/linux-tegra-rel-16
+sha1 6b57b43f8f9c5b76fa3763144e57c0c16047b1a8 Tegra20_Linux_R16.4.0_armhf.tbz2
+sha1 44e7f84dd6e3b80d37ecddf9cc133031b2653004 Tegra30_Linux_R16.4.0_armhf.tbz2
package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk new file +99 -0

99 lines not on this page · raw message

package/nvidia-tegra23/nvidia-tegra23.mk new file +17 -0
new file mode 100644
index 0000000..46a7e04
@@ -0,0 +1,17 @@
+################################################################################
+#
+# nvidia-tegra23
+#
+################################################################################
+
+NVIDIA_TEGRA23_SITE = https://developer.nvidia.com/sites/default/files/akamai/mobile/files/L4T
+NVIDIA_TEGRA23_VERSION = 16.4.0
+
+ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA2),y)
+NVIDIA_TEGRA23_BASE = Tegra20_Linux
+endif
+ifeq ($(BR2_PACKAGE_NVIDIA_TEGRA23_TEGRA3),y)
+NVIDIA_TEGRA23_BASE = Tegra30_Linux
+endif
+
+include $(sort $(wildcard package/nvidia-tegra23/*/*.mk))
Signature · 1 line
1.9.1
#16 lore raw

PATCH v4 9/11 package.nvidia-tegra23-binaries: add gstreamer plugins

In reply to Yann E. MORIN

From: Nicolas Serafini <[email protected]>

[yann.morin.1998 at free.fr: split out into their own patch]
---
 .../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
index 568aa4a..49e2751 100644
@@ -92,4 +92,19 @@ config BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_X11ABI
 	default 13 if BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_X11ABI_V13
 	default 14 if BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_X11ABI_V14
 
+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
index 3fbde96..01284d8 100644
@@ -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
@@ -50,6 +54,11 @@ NVIDIA_TEGRA23_BINARIES_LIBRARIES = \
 NVIDIA_TEGRA23_BINARIES_DRV = \
 	nv_tegra/nvidia_drivers/usr/lib/xorg/modules/drivers/tegra_drv.abi$(BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES_X11ABI).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
@@ -76,12 +85,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
@@ -94,6 +122,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
#17 lore raw

PATCH v4 10/11 package/nvidia-tegra23-binaries: provides JPEG

In reply to Yann E. MORIN

From: Nicolas Serafini <[email protected]>

nvidia-tegra23-binaries provides HW-accelerated JPEG.

The existing JPEG providers are select via a choice in the virtual jpeg package (which makes them very unlike other providers of virtual packages). But we can not do that for nvidia-tegra23-binaries, because it is a package in its own right, with a lot more features.

Instead, we create a new 'dummy' entry in the JPEG choice, that depends on nvidia-tegra32-binaries. This new entry does not define a new package, unlike the existign entries, but allows for a seamless integration into the existing infra.

[yann.morin.1998 at free.fr: split out into its own patch]

---
Note: I (YEM) realy do not like the fact that the virtual package JPEG behaves so differently from other virtual packages, and that the providers get selected from a choice entry. That's just ugly, ugly... :-(

---
 package/jpeg/Config.in                                         | 10 ++++++++++
 .../nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk         |  5 +++++
 2 files changed, 15 insertions(+)
package/jpeg/Config.in +10 -0
index f337aeb..a1a99aa 100644
@@ -30,6 +30,15 @@ config BR2_PACKAGE_JPEG_TURBO
 
 	  http://www.libjpeg-turbo.org
 
+config BR2_PACKAGE_JPEG_TEGRA23
+	bool "jpeg accelerated for tegra2 or tegra3"
+	depends on BR2_PACKAGE_NVIDIA_TEGRA23_BINARIES
+	select BR2_PACKAGE_HAS_JPEG
+	help
+	  Accelerated libjpeg for tegra
+
+	  https://developer.nvidia.com/linux-tegra
+
 endchoice
 
 config BR2_PACKAGE_HAS_JPEG
@@ -39,5 +48,6 @@ config BR2_PACKAGE_PROVIDES_JPEG
 	string
 	default "libjpeg"    if BR2_PACKAGE_LIBJPEG
 	default "jpeg-turbo" if BR2_PACKAGE_JPEG_TURBO
+	default "nvidia-tegra23-binaries" if BR2_PACKAGE_JPEG_TEGRA23
 
 endif
package/nvidia-tegra23/nvidia-tegra23-binaries/nvidia-tegra23-binaries.mk +5 -0
index 01284d8..9cd6cdd 100644
@@ -57,6 +57,11 @@ NVIDIA_TEGRA23_BINARIES_DRV = \
 NVIDIA_TEGRA23_BINARIES_GSTREAMER_PLUGINS = \
 	libgstnv4l2.so libgstnvvidconv.so libgstnvxvimagesink.so libgstomx.so
 
+ifeq ($(BR2_PACKAGE_JPEG_TEGRA23),y)
+NVIDIA_TEGRA23_BINARIES_PROVIDES = jpeg
+NVIDIA_TEGRA23_BINARIES_LIBRARIES += libjpeg.so
+endif
+
 NVIDIA_TEGRA23_BINARIES_MULTIMEDIA_APPS = nvgstplayer nvgstcapture
 
 NVIDIA_TEGRA23_BINARIES_PKGCONFIG = egl.pc gles.pc glesv2.pc
Signature · 1 line
1.9.1
#18 lore raw

PATCH v4 11/11 package/nvidia-tegra23-codecs: new package

In reply to Yann E. MORIN

From: 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
]

---
 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
index 950f2f8..89bdf83 100644
@@ -28,6 +28,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 and a (e)glibc toolchain w/ EABIhf"
package/nvidia-tegra23/nvidia-tegra23-codecs/Config.in new file +7 -0
new file mode 100644
index 0000000..07a8e74
@@ -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.4.0
+
+	  https://developer.nvidia.com/linux-tegra-rel-16
package/nvidia-tegra23/nvidia-tegra23-codecs/nvidia-tegra23-codecs.hash new file +3 -0
new file mode 100644
index 0000000..de4a461
@@ -0,0 +1,3 @@
+# From https://developer.nvidia.com/linux-tegra-rel-16
+sha1 d0889bf0ca408583a1e88657c6fd18f3659ef1bb Tegra20_Linux-codecs_R16.4.0_armhf.tbz2
+sha1 a9f298222d3b6a618ef96a6bed9641929b152c8a Tegra30_Linux-codecs_R16.4.0_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
#2 lore raw

PATCH v4 1/11 package/python-lxml: new package

In reply to Yann E. MORIN
Quoted 44 lines · Yann E. MORIN

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

---
This is a host-only package for now, because I only needed it to build opengl-registry.

---
 package/python-lxml/python-lxml.hash |  2 ++
 package/python-lxml/python-lxml.mk   | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 package/python-lxml/python-lxml.hash
 create mode 100644 package/python-lxml/python-lxml.mk
package/python-lxml/python-lxml.hash new file +2 -0
new file mode 100644
index 0000000..470a245
@@ -0,0 +1,2 @@
+# Locally computed
+sha256  069594837d0376a1bacf5cc42aa9a1be2e1c1396dc62f7d07f7358afecd34adf  lxml-3.4.1.tgz
package/python-lxml/python-lxml.mk new file +15 -0
new file mode 100644
index 0000000..758ce87
@@ -0,0 +1,25 @@
+################################################################################
+#
+# python-lxml
+#
+################################################################################
+
+PYTHON_LXML_VERSION = 3.4.1
+PYTHON_LXML_SITE = http://lxml.de/files
+PYTHON_LXML_SOURCE = lxml-$(PYTHON_LXML_VERSION).tgz
+
+# Not including the GPL, because it is used only for the test scripts.
+PYTHON_LXML_LICENSE = BSD-3c, Others
+PYTHON_LXML_LICENSE_FILES = \
+       LICENSES.txt \
+       doc/licenses/BSD.txt \

package/python-lxml/python-lxml.mk line 25

Quoted 10 lines
package/python-lxml/python-lxml.mk new file +10 -0
+       doc/licenses/elementtree.txt \
+       src/lxml/isoschematron/resources/rng/iso-schematron.rng
+
+# python-lxml can use either setuptools, or distutils as a fallback.
+# So, we use setuptools.
+PYTHON_LXML_SETUP_TYPE = setuptools
+
+PYTHON_LXML_DEPENDENCIES = libxml2 libxslt
+
+$(eval $(host-python-package))

Trying to build lxml as normal package and get following error:

running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml /home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -I/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes -I/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/python2.7 -c src/lxml/lxml.etree.c -o
build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:239:0:
/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes/etree_defs.h:14:31:
fatal error: libxml/xmlversion.h: No such file or directory

 #include "libxml/xmlversion.h"
                               ^

compilation terminated.

What should I pass to setup.py? Should I pass include path to include/libxml2? How does it work for the host-package?

Yegor

#3 lore raw

PATCH v4 1/11 package/python-lxml: new package

Yegor, All,

On 2015-01-18 18:27 +0100, Yegor Yefremov spake thusly:

Quoted 3 lines · Yann E. MORIN
Quoted 2 lines

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

[--SNIP--]

Quoted 20 lines
Quoted 1 line

+$(eval $(host-python-package))

Trying to build lxml as normal package and get following error:

running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml /home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc

(quoted diff) +0 -6
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC
-I/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes
-I/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/python2.7
-c src/lxml/lxml.etree.c -o

build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:239:0:
/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes/etree_defs.h:14:31:
fatal error: libxml/xmlversion.h: No such file or directory

Quoted 6 lines
 #include "libxml/xmlversion.h"
                               ^

compilation terminated.

What should I pass to setup.py? Should I pass include path to include/libxml2? How does it work for the host-package?

Oh.. Good question. I just checked, and I do have the libxml2 development files installed on my distro. I'll respin a build here with libxml2-dev uninstalled, see if it still works, and report back.

Thanks for spotting that.

Regards,
Yann E. MORIN.

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.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

PATCH v4 1/11 package/python-lxml: new package

In reply to Yegor Yefremov

Yegor, All,

On 2015-01-18 18:27 +0100, Yegor Yefremov spake thusly:

Quoted 4 lines · Yann E. MORIN
Quoted 2 lines

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

Trying to build lxml as normal package and get following error:

You mean, as a target package?

It can not work as-is, because I only declared the host variant. You'd have to add the target variant if you want the target package.

Quoted 16 lines

running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml /home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc

(quoted diff) +0 -6
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC
-I/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes
-I/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/python2.7
-c src/lxml/lxml.etree.c -o

build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:239:0:
/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes/etree_defs.h:14:31:
fatal error: libxml/xmlversion.h: No such file or directory

Quoted 6 lines
 #include "libxml/xmlversion.h"
                               ^

compilation terminated.

What should I pass to setup.py? Should I pass include path to include/libxml2? How does it work for the host-package?

Well, I just tried, and it builds fine, even when I remove the libxml2 development files from my host:

running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml
/usr/bin/gcc -pthread -fno-strict-aliasing -O2 -I/home/ymorin/dev/buildroot/O/host/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ymorin/dev/buildroot/O/host/usr/include -I/home/ymorin/dev/buildroot/O/host/usr/include/libxml2 -I/home/ymorin/dev/buildroot/O/build/host-python-lxml-3.4.1/src/lxml/includes -I/home/ymorin/dev/buildroot/O/host/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
/usr/bin/gcc -pthread -shared -L/home/ymorin/dev/buildroot/O/host/lib -L/home/ymorin/dev/buildroot/O/host/usr/lib -Wl,-rpath,/home/ymorin/dev/buildroot/O/host/usr/lib -Wl,--enable-new-dtags build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -L/home/ymorin/dev/buildroot/O/host/usr/lib -L/home/ymorin/dev/buildroot/O/host/usr/lib -lxslt -lexslt -lxml2 -lz -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/lxml/etree.so building 'lxml.objectify' extension
/usr/bin/gcc -pthread -fno-strict-aliasing -O2 -I/home/ymorin/dev/buildroot/O/host/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ymorin/dev/buildroot/O/host/usr/include -I/home/ymorin/dev/buildroot/O/host/usr/include/libxml2 -I/home/ymorin/dev/buildroot/O/build/host-python-lxml-3.4.1/src/lxml/includes -I/home/ymorin/dev/buildroot/O/host/usr/include/python2.7 -c src/lxml/lxml.objectify.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.objectify.o -w /usr/bin/gcc -pthread -shared -L/home/ymorin/dev/buildroot/O/host/lib -L/home/ymorin/dev/buildroot/O/host/usr/lib -Wl,-rpath,/home/ymorin/dev/buildroot/O/host/usr/lib -Wl,--enable-new-dtags build/temp.linux-x86_64-2.7/src/lxml/lxml.objectify.o -L/home/ymorin/dev/buildroot/O/host/usr/lib -L/home/ymorin/dev/buildroot/O/host/usr/lib -lxslt -lexslt -lxml2 -lz -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/lxml/objectify.so

I don't know what would break for the target package. Maybe it includes unsafe paths (-I and/or -L) ?

Regards,
Yann E. MORIN.

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.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH v4 1/11 package/python-lxml: new package

Quoted 4 lines · Yann E. MORIN

Yegor, All,

On 2015-01-18 18:27 +0100, Yegor Yefremov spake thusly:

Quoted 1 line · Yann E. MORIN
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

Trying to build lxml as normal package and get following error:

You mean, as a target package?

It can not work as-is, because I only declared the host variant. You'd have to add the target variant if you want the target package.

I've created needed files like Config.in etc.

Quoted 66 lines
Quoted 16 lines

running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml /home/user/Documents/versioned/buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc

(quoted diff) +0 -6
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC
-I/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes
-I/home/user/Documents/versioned/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/python2.7
-c src/lxml/lxml.etree.c -o

build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:239:0:
/home/user/Documents/versioned/buildroot/output/build/python-lxml-3.4.1/src/lxml/includes/etree_defs.h:14:31:
fatal error: libxml/xmlversion.h: No such file or directory

Quoted 6 lines
 #include "libxml/xmlversion.h"
                               ^

compilation terminated.

What should I pass to setup.py? Should I pass include path to include/libxml2? How does it work for the host-package?

Well, I just tried, and it builds fine, even when I remove the libxml2 development files from my host:

running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml
/usr/bin/gcc -pthread -fno-strict-aliasing -O2

(quoted diff) +0 -6
-I/home/ymorin/dev/buildroot/O/host/usr/include -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -fPIC
-I/home/ymorin/dev/buildroot/O/host/usr/include
-I/home/ymorin/dev/buildroot/O/host/usr/include/libxml2
-I/home/ymorin/dev/buildroot/O/build/host-python-lxml-3.4.1/src/lxml/includes
-I/home/ymorin/dev/buildroot/O/host/usr/include/python2.7 -c

src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w /usr/bin/gcc -pthread -shared -L/home/ymorin/dev/buildroot/O/host/lib

(quoted diff) +0 -6
-L/home/ymorin/dev/buildroot/O/host/usr/lib
-Wl,-rpath,/home/ymorin/dev/buildroot/O/host/usr/lib
-Wl,--enable-new-dtags build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o
-L/home/ymorin/dev/buildroot/O/host/usr/lib
-L/home/ymorin/dev/buildroot/O/host/usr/lib -lxslt -lexslt -lxml2 -lz
-lm -lpython2.7 -o build/lib.linux-x86_64-2.7/lxml/etree.so

building 'lxml.objectify' extension
/usr/bin/gcc -pthread -fno-strict-aliasing -O2

(quoted diff) +0 -6
-I/home/ymorin/dev/buildroot/O/host/usr/include -DNDEBUG -g -fwrapv -O3
-Wall -Wstrict-prototypes -fPIC
-I/home/ymorin/dev/buildroot/O/host/usr/include
-I/home/ymorin/dev/buildroot/O/host/usr/include/libxml2
-I/home/ymorin/dev/buildroot/O/build/host-python-lxml-3.4.1/src/lxml/includes
-I/home/ymorin/dev/buildroot/O/host/usr/include/python2.7 -c

src/lxml/lxml.objectify.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.objectify.o -w /usr/bin/gcc -pthread -shared -L/home/ymorin/dev/buildroot/O/host/lib

(quoted diff) +0 -3
-L/home/ymorin/dev/buildroot/O/host/usr/lib
-Wl,-rpath,/home/ymorin/dev/buildroot/O/host/usr/lib
-Wl,--enable-new-dtags

build/temp.linux-x86_64-2.7/src/lxml/lxml.objectify.o

(quoted diff) +0 -3
-L/home/ymorin/dev/buildroot/O/host/usr/lib
-L/home/ymorin/dev/buildroot/O/host/usr/lib -lxslt -lexslt -lxml2 -lz
-lm -lpython2.7 -o build/lib.linux-x86_64-2.7/lxml/objectify.so
Quoted 2 lines

I don't know what would break for the target package. Maybe it includes unsafe paths (-I and/or -L) ?

Have you also installed libxslt-dev on your PC? After I've done this, I could cross-compile lxml, but it is not very "legal" approach :-)

Yegor

#6 lore raw

PATCH v4 1/11 package/python-lxml: new package

Yegor, All,

On 2015-01-18 20:14 +0100, Yegor Yefremov spake thusly:

Quoted 7 lines · Yann E. MORIN
Quoted 6 lines

Yegor, All,

On 2015-01-18 18:27 +0100, Yegor Yefremov spake thusly:

Quoted 3 lines · Yann E. MORIN
Quoted 2 lines

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Trying to build lxml as normal package and get following error:

You mean, as a target package?

It can not work as-is, because I only declared the host variant. You'd have to add the target variant if you want the target package.

I've created needed files like Config.in etc.

OK, I guessed you did, but was trying the obvious... ;-)

[--SNIP--]

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

compilation terminated.

Well, I just tried, and it builds fine, even when I remove the libxml2 development files from my host:

[--SNIP--]

Quoted 5 lines
Quoted 3 lines

I don't know what would break for the target package. Maybe it includes unsafe paths (-I and/or -L) ?

Have you also installed libxslt-dev on your PC?

No, I do not have libxslt development files installed on the host.

Quoted 2 lines

After I've done this,
I could cross-compile lxml, but it is not very "legal" approach :-)

Smells like unclean include paths to me. I'll investigate further on the target-side package

Adding the target variant can come in a later patch, no? And that should not impact the host variant from being comitted as-is, would it?

Regards,
Yann E. MORIN.

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.  |
'------------------------------^-------^------------------^--------------------'
#7 lore raw

PATCH v4 1/11 package/python-lxml: new package

Quoted 35 lines · Yann E. MORIN

Yegor, All,

On 2015-01-18 20:14 +0100, Yegor Yefremov spake thusly:

Quoted 7 lines · Yann E. MORIN
Quoted 6 lines

Yegor, All,

On 2015-01-18 18:27 +0100, Yegor Yefremov spake thusly:

Quoted 3 lines · Yann E. MORIN
Quoted 2 lines

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Trying to build lxml as normal package and get following error:

You mean, as a target package?

It can not work as-is, because I only declared the host variant. You'd have to add the target variant if you want the target package.

I've created needed files like Config.in etc.

OK, I guessed you did, but was trying the obvious... ;-)

[--SNIP--]

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

compilation terminated.

Well, I just tried, and it builds fine, even when I remove the libxml2 development files from my host:

[--SNIP--]

Quoted 5 lines
Quoted 3 lines

I don't know what would break for the target package. Maybe it includes unsafe paths (-I and/or -L) ?

Have you also installed libxslt-dev on your PC?

No, I do not have libxslt development files installed on the host.

Quoted 8 lines
Quoted 2 lines

After I've done this,
I could cross-compile lxml, but it is not very "legal" approach :-)

Smells like unclean include paths to me. I'll investigate further on the target-side package

Adding the target variant can come in a later patch, no? And that should not impact the host variant from being comitted as-is, would it?

No, that should not impact your patch. I'll send mine as RFC on top of yours. Thanks for your help.

Yegor

#11 lore raw

PATCH v4 4/11 package/opengl-registry: new package

In reply to Yann E. MORIN

All,

On 2015-01-18 13:11 +0100, Yann E. MORIN spake thusly:

Quoted 1 line

The OpenGL Registry provides all GL headers, [...]

I'm marking this series as "Changes Requested", because the python script used to generate the headers breaks in a minimal environment (unfortunately, I was not able to test that prior to submission, sorry).

Regards,
Yann E. MORIN.

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.  |
'------------------------------^-------^------------------^--------------------'