Android: amd: use exported include dirs instead of explicit includes
authorRob Herring <robh@kernel.org>
Wed, 3 May 2017 19:35:16 +0000 (14:35 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 May 2017 12:52:21 +0000 (13:52 +0100)
Add exported include paths rather than explicitly adding the includes
in each user of the common AMD libs.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/amd/Android.addrlib.mk
src/amd/Android.common.mk
src/gallium/drivers/r600/Android.mk
src/gallium/winsys/amdgpu/drm/Android.mk

index 540de5554bddc0684303159dee9b5f766f8cba4f..a29f7c16d1797b5943c4deb167ba460536f21d65 100644 (file)
@@ -42,5 +42,11 @@ LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/amd/addrlib/gfx9/chip \
        $(MESA_TOP)/src/amd/addrlib/r800/chip
 
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+       $(LOCAL_PATH) \
+       $(LOCAL_PATH)/addrlib/core \
+       $(LOCAL_PATH)/addrlib/inc/chip/r800 \
+       $(LOCAL_PATH)/addrlib/r800/chip
+
 include $(MESA_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)
index aa0b1742b6be498e25c2bc92dfd39162775a343a..a770aca650056c31959afddc83853b785787e24b 100644 (file)
@@ -58,6 +58,9 @@ LOCAL_C_INCLUDES := \
        external/llvm/device/include \
        $(ELF_INCLUDES)
 
+LOCAL_EXPORT_C_INCLUDE_DIRS := \
+       $(LOCAL_PATH)/common
+
 LOCAL_STATIC_LIBRARIES := libLLVMCore
 
 include $(MESA_COMMON_MK)
index a2fa62360880316d7115d6158d2f53edfb553165..cc89d8f6aedac181fd3afada5ca0042d9d58c350 100644 (file)
@@ -30,8 +30,6 @@ include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES := $(C_SOURCES) $(CXX_SOURCES)
 
-LOCAL_C_INCLUDES := $(MESA_TOP)/src/amd/common
-
 LOCAL_STATIC_LIBRARIES := libmesa_amd_common
 LOCAL_SHARED_LIBRARIES := libdrm_radeon
 LOCAL_MODULE := libmesa_pipe_r600
index 9030a83880d34f2b4fca541be622d90b83dc27a6..1b9439c4f88606576c61e647c5322137784032cb 100644 (file)
@@ -34,12 +34,7 @@ LOCAL_CFLAGS := \
        $(AMDGPU_CFLAGS) \
        -DBRAHMA_BUILD=1
 
-LOCAL_C_INCLUDES := \
-       $(MESA_TOP)/src \
-       $(MESA_TOP)/src/amd \
-       $(MESA_TOP)/src/amd/addrlib/core \
-       $(MESA_TOP)/src/amd/addrlib/inc/chip/r800 \
-       $(MESA_TOP)/src/amd/addrlib/r800/chip
+LOCAL_STATIC_LIBRARIES := libmesa_amdgpu_addrlib
 
 LOCAL_SHARED_LIBRARIES := libdrm_amdgpu
 LOCAL_MODULE := libmesa_winsys_amdgpu