gator: Fix out-of-tree build 76/84276/2
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 17 Aug 2016 13:33:39 +0000 (15:33 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 17 Aug 2016 23:50:58 +0000 (16:50 -0700)
Fixes out-of-tree build error:
In file included from ../drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_pm.h:28:0,
                 from ../drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase.h:49,
                 from ../drivers/gator/gator_events_mali_midgard_hw.c:25:
../drivers/gpu/arm/midgard/r12p0_04rel0/mali_kbase_hwaccess_pm.h:30:32: fatal error: mali_kbase_pm_defs.h: No such file or directory
 #include <mali_kbase_pm_defs.h>
                                ^
make[3]: *** [drivers/gator/gator_events_mali_midgard_hw.o] Error 1

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Change-Id: I4ac47177425b120c556323ca9c4f0fb6a9bd5edd

drivers/gator/mali_midgard.mk

index 8cd1689..7850693 100644 (file)
@@ -9,7 +9,7 @@ EXTRA_CFLAGS += -DMALI_USE_UMP=1 \
                 -DMALI_BACKEND_KERNEL=1 \
                 -DMALI_NO_MALI=0
 
-DDK_DIR ?= .
+DDK_DIR ?= $(srctree)/
 
 ifneq ($(wildcard $(DDK_DIR)/$(subst $\",,$(CONFIG_GATOR_MALI_MIDGARD_PATH))/mali_kbase_gator_api.h),)
   # r5p0/Fluorine - ...