aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-10-19 22:18:23 -0700
committerJoonas Kylmälä <joonas.kylmala@iki.fi>2020-04-12 10:02:17 -0400
commitfd6e14c92bc3b57668e9cb20036529a131f028bb (patch)
tree96ea5749bdfc3bc05c0ce08a4b8c849f06d95e60 /amdgpu
parent27fa47a738b15464528a1c44d8cb0b2ab31d3cf7 (diff)
downloadexternal_libdrm-fd6e14c92bc3b57668e9cb20036529a131f028bb.tar.gz
external_libdrm-fd6e14c92bc3b57668e9cb20036529a131f028bb.tar.bz2
external_libdrm-fd6e14c92bc3b57668e9cb20036529a131f028bb.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 'amdgpu')
-rw-r--r--amdgpu/Android.bp11
-rw-r--r--amdgpu/Android.mk19
-rw-r--r--amdgpu/Android.sources.bp14
3 files changed, 25 insertions, 19 deletions
diff --git a/amdgpu/Android.bp b/amdgpu/Android.bp
new file mode 100644
index 00000000..a63b6174
--- /dev/null
+++ b/amdgpu/Android.bp
@@ -0,0 +1,11 @@
+build = ["Android.sources.bp"]
+
+cc_library_shared {
+ name: "libdrm_amdgpu",
+ defaults: [
+ "libdrm_defaults",
+ "libdrm_amdgpu_sources",
+ ],
+ vendor: true,
+ shared_libs: ["libdrm"],
+}
diff --git a/amdgpu/Android.mk b/amdgpu/Android.mk
deleted file mode 100644
index 1f028d0b..00000000
--- a/amdgpu/Android.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-# Import variables LIBDRM_AMDGPU_FILES, LIBDRM_AMDGPU_H_FILES
-include $(LOCAL_PATH)/Makefile.sources
-
-LOCAL_MODULE := libdrm_amdgpu
-
-LOCAL_SHARED_LIBRARIES := libdrm
-
-LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES)
-
-LOCAL_CFLAGS := \
- -DAMDGPU_ASIC_ID_TABLE=\"/vendor/etc/hwdata/amdgpu.ids\"
-
-LOCAL_REQUIRED_MODULES := amdgpu.ids
-
-include $(LIBDRM_COMMON_MK)
-include $(BUILD_SHARED_LIBRARY)
diff --git a/amdgpu/Android.sources.bp b/amdgpu/Android.sources.bp
new file mode 100644
index 00000000..62b8f054
--- /dev/null
+++ b/amdgpu/Android.sources.bp
@@ -0,0 +1,14 @@
+// Autogenerated with Android.sources.bp.mk
+
+cc_defaults {
+ name: "libdrm_amdgpu_sources",
+ srcs: [
+ "amdgpu_bo.c",
+ "amdgpu_cs.c",
+ "amdgpu_device.c",
+ "amdgpu_gpu_info.c",
+ "amdgpu_vamgr.c",
+ "util_hash.c",
+ "util_hash_table.c",
+ ],
+}