Module: Mesa
Branch: master
Commit: 46dace14ff04d59f9f926bdc0f7f76f0620ef18e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46dace14ff04d59f9f926bdc0f7f76f0620ef18e

Author: Daniel Stone <dani...@collabora.com>
Date:   Wed Jul 19 09:51:23 2017 +0100

egl: Add MKDIR_GEN definition

Adding linux-dmabuf Wayland protocol files as generated did the right
thing, by prepending $(MKDIR_GEN) so autotools didn't try to write into
a build directory which didn't yet exist.

Unfortunately MKDIR_GEN needs to be defined in every Makefile it's used
in (which we do now), or alternately defined and substituted in
configure.ac (which we don't do), and src/egl/ didn't actually have it
from either method. As unset variables expand to nothing, it was
silently being skipped.

Copy & paste the defintion to make sure drivers/dri2/ exists before we
try to generate files into it.

Signed-off-by: Daniel Stone <dani...@collabora.com>
Reviewed-by: Eric Engestrom <eric.engest...@imgtec.com>
Reviewed-by: Emil Velikov <emil.veli...@collabora.com>
Reported-by: Nick Sarnie <commendsar...@gmail.com>
Reported-by: Mike Lothian <m...@fireburn.co.uk>
Fixes: 02cc35937277 ("egl/wayland: Use linux-dmabuf interface for buffers")

---

 src/egl/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
index 19295de3ed..52ded15145 100644
--- a/src/egl/Makefile.am
+++ b/src/egl/Makefile.am
@@ -21,6 +21,8 @@
 
 include Makefile.sources
 
+MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
+
 BUILT_SOURCES =
 
 AM_CFLAGS = \

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to