aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
diff options
context:
space:
mode:
authorEmil Velikov2017-01-22 10:59:42 -0600
committerEmil Velikov2017-01-27 09:48:16 -0600
commit03d2e91d00cb78d49fe170fb19a29107951a8c96 (patch)
treeb8775425a14ddad94aca2b33405c13d1e9407e22 /libkms
parentde5b41ef5ab617e5284596e220bc72f6065919f5 (diff)
downloadexternal-libdrm-03d2e91d00cb78d49fe170fb19a29107951a8c96.tar.gz
external-libdrm-03d2e91d00cb78d49fe170fb19a29107951a8c96.tar.xz
external-libdrm-03d2e91d00cb78d49fe170fb19a29107951a8c96.zip
android: introduce Android.common.mk to reduce boilerplate
... across the makefiles. Currently this isn't much but that will change shortly. As an added bonus this fixes all present and future cases where we've forgotten to strip out the headers from LOCAL_SRC_FILES. In a couple of cases (the tests) we start setting LOCAL_EXPORT_C_INCLUDE_DIRS, which shouldn't be an issue. Cc: Chih-Wei Huang <cwhuang@android-x86.org> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'libkms')
-rw-r--r--libkms/Android.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/libkms/Android.mk b/libkms/Android.mk
index 0259ffbb..0be72054 100644
--- a/libkms/Android.mk
+++ b/libkms/Android.mk
@@ -26,7 +26,7 @@ LOCAL_PATH := $(call my-dir)
26include $(CLEAR_VARS) 26include $(CLEAR_VARS)
27include $(LOCAL_PATH)/Makefile.sources 27include $(LOCAL_PATH)/Makefile.sources
28 28
29LOCAL_SRC_FILES := $(patsubst %.h, , $(LIBKMS_FILES)) 29LOCAL_SRC_FILES := $(LIBKMS_FILES)
30 30
31ifneq ($(filter $(vmwgfx_drivers), $(DRM_GPU_DRIVERS)),) 31ifneq ($(filter $(vmwgfx_drivers), $(DRM_GPU_DRIVERS)),)
32LOCAL_SRC_FILES += $(LIBKMS_VMWGFX_FILES) 32LOCAL_SRC_FILES += $(LIBKMS_VMWGFX_FILES)
@@ -47,6 +47,5 @@ endif
47LOCAL_MODULE := libkms 47LOCAL_MODULE := libkms
48LOCAL_SHARED_LIBRARIES := libdrm 48LOCAL_SHARED_LIBRARIES := libdrm
49 49
50LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) 50include $(LIBDRM_COMMON_MK)
51
52include $(BUILD_SHARED_LIBRARY) 51include $(BUILD_SHARED_LIBRARY)