aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Paul2015-01-13 09:46:29 -0600
committerSean Paul2015-01-30 14:13:13 -0600
commitf5c98515fc607dbdcaee9466e4f2f1c84af95a79 (patch)
tree5841fb6e35862d7a315b90678be6144d3711e7ea /tegra/Android.mk
parent0aa93e22a57a8b0e492452a45476c9c51765eb4b (diff)
downloadexternal-libdrm-f5c98515fc607dbdcaee9466e4f2f1c84af95a79.tar.gz
external-libdrm-f5c98515fc607dbdcaee9466e4f2f1c84af95a79.tar.xz
external-libdrm-f5c98515fc607dbdcaee9466e4f2f1c84af95a79.zip
libdrm: Compile tegra driver in android
Signed-off-by: Sean Paul <seanpaul@chromium.org> Change-Id: I1adcface945b8bc0920d2b24c3b959e96bfe1980
Diffstat (limited to 'tegra/Android.mk')
-rw-r--r--tegra/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/tegra/Android.mk b/tegra/Android.mk
new file mode 100644
index 00000000..b0a043f2
--- /dev/null
+++ b/tegra/Android.mk
@@ -0,0 +1,29 @@
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE := libdrm_tegra
5LOCAL_MODULE_TAGS := optional
6
7LOCAL_SHARED_LIBRARIES := libdrm
8
9LOCAL_SRC_FILES := \
10 private.h \
11 tegra.c
12LOCAL_EXPORT_C_INCLUDE_DIRS += \
13 $(LOCAL_PATH)/tegra
14
15LOCAL_C_INCLUDES := \
16 $(LIBDRM_TOP) \
17 $(LIBDRM_TOP)/tegra \
18 $(LIBDRM_TOP)/include/drm
19
20LOCAL_CFLAGS := \
21 -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
22
23LOCAL_COPY_HEADERS := tegra.h
24LOCAL_COPY_HEADERS_TO := libdrm
25
26LOCAL_SHARED_LIBRARIES := \
27 libdrm
28
29include $(BUILD_SHARED_LIBRARY)