Skip to contentSkip to conversation

tools/Makefile: Don't build tools that depend on libdrm_intel.

RFC Robert Foss 1 participant 1 message May 25, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 2b8f-57460480-1-7d43af80@249225109

#1 lore raw
Quoted 19 lines

From: Robert Foss <[email protected]>

Use the HAS_INTEL automake flag to avoid building tools that won't

compile unless libdrm_intel is available in the build system.

---
 tools/Android.mk       |  8 ++++++++
 tools/Makefile.am      |  8 ++++++++
 tools/Makefile.sources | 16 ++++++----------
 3 files changed, 22 insertions(+), 10 deletions(-)
tools/Android.mk +0 -0
index 5f64184..7c99432 100644

tools/Android.mk ifneq ("${ANDROID_HAS_CAIRO}", "1") · line 74

Quoted 8 lines
tools/Android.mk +5 -0
@@ -67,6 +67,14 @@ ifneq ("${ANDROID_HAS_CAIRO}", "1")
     skip_tools_list += intel_residency
 endif
 
+ifeq ($(HAVE_LIBDRM_INTEL),true)
+    bin_PROGRAMS += $(LIBDRM_INTEL_BIN)
+
+    intel_dump_decode_SOURCES =	intel_dump_decode.c
+    intel_error_decode_SOURCES = intel_error_decode.c

Drop these two lines all together. The default extension for autoconf is .c, thus just mentionoing the program name will automatically pick the above sources respectively. On the Android build the function add_tool (a few lines above) already does it for us.

tools/Android.mk ifneq ("${ANDROID_HAS_CAIRO}", "1") · line 75

Quoted 1 line
tools/Android.mk +1 -0
+    intel_error_decode_LDFLAGS = -lz

Seems like I was wrong about this one... Android does use it (despite that it looks a bit ugly). Thus one can keep it where it was.

-Emil

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx