aboutsummaryrefslogtreecommitdiffstats
path: root/tegra
diff options
context:
space:
mode:
authorDan Willemsen2017-10-20 00:18:23 -0500
committerDan Willemsen2017-10-23 14:27:31 -0500
commitfa32e29a1fe81e5472aabc65d3aa25a5af5aec55 (patch)
treeddc9bf3abee1194215f500913f95229b33b928f7 /tegra
parentc6ebab75df64ad6ff2be83cd53bb7d02955d7438 (diff)
downloadexternal-libgbm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.tar.gz
external-libgbm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.tar.xz
external-libgbm-fa32e29a1fe81e5472aabc65d3aa25a5af5aec55.zip
Convert to Android.bp
See build/soong/README.md for more information about Soong. Removes BOARD_GPU_DRIVERS, which wasn't affecting anything, since none of the HAVE_* macros are defined. Even if they were, we'd prefer to compile all of them so that a single library can support multiple boards. Test: mmma external/libdrm Change-Id: Ie01736bce6cf41e3da5040fe5341ade0634b5111
Diffstat (limited to 'tegra')
-rw-r--r--tegra/Android.bp14
-rw-r--r--tegra/Android.mk19
2 files changed, 14 insertions, 19 deletions
diff --git a/tegra/Android.bp b/tegra/Android.bp
new file mode 100644
index 00000000..33eaf6c5
--- /dev/null
+++ b/tegra/Android.bp
@@ -0,0 +1,14 @@
1cc_library_shared {
2 name: "libdrm_tegra",
3 vendor: true,
4 shared_libs: ["libdrm"],
5
6 srcs: ["tegra.c"],
7
8 cflags: [
9 "-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1",
10 "-Wall",
11 "-Werror",
12 "-Wno-unused-variable",
13 ],
14}
diff --git a/tegra/Android.mk b/tegra/Android.mk
deleted file mode 100644
index cae4ff68..00000000
--- a/tegra/Android.mk
+++ /dev/null
@@ -1,19 +0,0 @@
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE := libdrm_tegra
5
6LOCAL_SHARED_LIBRARIES := libdrm
7
8LOCAL_SRC_FILES := tegra.c
9
10LOCAL_CFLAGS := \
11 -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 \
12 -Wall -Werror -Wno-unused-variable
13
14LOCAL_SHARED_LIBRARIES := \
15 libdrm
16
17LOCAL_VENDOR_MODULE := true
18
19include $(BUILD_SHARED_LIBRARY)