All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/nvidia-driver: install an egl.pc
@ 2017-08-29 20:49 Yann E. MORIN
  2017-08-29 20:58 ` Thomas Petazzoni
  2017-09-06 10:41 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2017-08-29 20:49 UTC (permalink / raw)
  To: buildroot

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>

---
Note: ideally, we should also provide a glesv2.pc, and possibly a
wayland-egl.pc as well. That can be folowup patches.
---
 package/nvidia-driver/egl.pc           | 10 ++++++++++
 package/nvidia-driver/nvidia-driver.mk |  1 +
 2 files changed, 11 insertions(+)
 create mode 100644 package/nvidia-driver/egl.pc

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
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/nvidia-driver: install an egl.pc
  2017-08-29 20:49 [Buildroot] [PATCH] package/nvidia-driver: install an egl.pc Yann E. MORIN
@ 2017-08-29 20:58 ` Thomas Petazzoni
  2017-09-06 10:41 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-08-29 20:58 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 29 Aug 2017 22:49:59 +0200, Yann E. MORIN wrote:
> 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>
> 
> ---
> Note: ideally, we should also provide a glesv2.pc, and possibly a
> wayland-egl.pc as well. That can be folowup patches.
> ---
>  package/nvidia-driver/egl.pc           | 10 ++++++++++
>  package/nvidia-driver/nvidia-driver.mk |  1 +
>  2 files changed, 11 insertions(+)
>  create mode 100644 package/nvidia-driver/egl.pc

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/nvidia-driver: install an egl.pc
  2017-08-29 20:49 [Buildroot] [PATCH] package/nvidia-driver: install an egl.pc Yann E. MORIN
  2017-08-29 20:58 ` Thomas Petazzoni
@ 2017-09-06 10:41 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-09-06 10:41 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

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

 > ---
 > Note: ideally, we should also provide a glesv2.pc, and possibly a
 > wayland-egl.pc as well. That can be folowup patches.

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-06 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 20:49 [Buildroot] [PATCH] package/nvidia-driver: install an egl.pc Yann E. MORIN
2017-08-29 20:58 ` Thomas Petazzoni
2017-09-06 10:41 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.