blob: b626dd07859a49f9cfbb2731d8ee35823b48d083 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
diff --git a/Makefile b/Makefile
index e521b99..8824f8e 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,16 @@ gator-y := gator_main.o \
gator-y += gator_events_mmaped.o
+ifeq ($(GATOR_WITH_MALI_SUPPORT),)
+ifeq ($(GATOR_MALI_INCLUDE),)
+GATOR_MALI_INCLUDE = $(abspath $(shell find -L . -name "mali_linux_trace.h" | sed -n -e '1s,\(.*\)/linux/mali_linux_trace.h$$,\1,p'))
+endif
+ifneq ($(GATOR_MALI_INCLUDE),)
+GATOR_WITH_MALI_SUPPORT = MALI_400 # for now, assume all devices with Mali have the Mali-400
+EXTRA_CFLAGS += -I$(GATOR_MALI_INCLUDE)
+endif
+endif
+
ifneq ($(GATOR_WITH_MALI_SUPPORT),)
ifeq ($(GATOR_WITH_MALI_SUPPORT),MALI_T6xx)
gator-y += gator_events_mali_t6xx.o
--
1.7.9
|