aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2017-08-29 22:49:59 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-08-29 22:58:05 +0200
commit05a86bdf1fa9071de9701fba058d47d80a0925bd (patch)
tree934ca39d9ca70ae4cdd8029bede0599f45c37403
parentdc9cc4d7cfb7dcd4a450e6bafe010b19f4c85e78 (diff)
downloadbuildroot-05a86bdf1fa9071de9701fba058d47d80a0925bd.tar.gz
buildroot-05a86bdf1fa9071de9701fba058d47d80a0925bd.tar.bz2
package/nvidia-driver: install an egl.pc
A lot of packages expect an egl.pc to decide that EGL is available. So, provide one. As suggested by Alexandre, use the one from nvidia-tegra23 as template. Reported-by: Alexandre Maumené <alexandre@maumene.org> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Alexandre Maumené <alexandre@maumene.org> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/nvidia-driver/egl.pc10
-rw-r--r--package/nvidia-driver/nvidia-driver.mk1
2 files changed, 11 insertions, 0 deletions
diff --git a/package/nvidia-driver/egl.pc b/package/nvidia-driver/egl.pc
new file mode 100644
index 0000000000..a5aeace63c
--- /dev/null
+++ b/package/nvidia-driver/egl.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: egl
+Description: Nvidia OpenGL library
+Version: 1
+Cflags: -I${includedir}
+Libs: -L${libdir} -lEGL
diff --git a/package/nvidia-driver/nvidia-driver.mk b/package/nvidia-driver/nvidia-driver.mk
index d8dedd9e3b..6746134a52 100644
--- a/package/nvidia-driver/nvidia-driver.mk
+++ b/package/nvidia-driver/nvidia-driver.mk
@@ -78,6 +78,7 @@ define NVIDIA_DRIVER_INSTALL_GL_DEV
$(SED) 's:__LIBGL_PATH__:/usr/lib:' $(STAGING_DIR)/usr/lib/libGL.la
$(SED) 's:-L[^[:space:]]\+::' $(STAGING_DIR)/usr/lib/libGL.la
$(INSTALL) -D -m 0644 package/nvidia-driver/gl.pc $(STAGING_DIR)/usr/lib/pkgconfig/gl.pc
+ $(INSTALL) -D -m 0644 package/nvidia-driver/egl.pc $(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
endef
# Those libraries are 'private' libraries requiring an agreement with