aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorChih-Wei Huang2017-07-27 03:20:52 -0500
committerEmil Velikov2017-08-21 07:05:13 -0500
commita0531e76f68e5f69cdc149d7cbff4ba299352dfe (patch)
treedb134738ee342cb5b30ce32952a87b7daabeda76 /amdgpu
parente5ce5c6807a85187dd9cede54e9144f3bcc3ee47 (diff)
downloadexternal-libdrm-a0531e76f68e5f69cdc149d7cbff4ba299352dfe.tar.gz
external-libdrm-a0531e76f68e5f69cdc149d7cbff4ba299352dfe.tar.xz
external-libdrm-a0531e76f68e5f69cdc149d7cbff4ba299352dfe.zip
android: amdgpu: fix build break
Define two macros to avoid building errors. Fixes: 7e6bf88cac (amdgpu: move asic id table to a separate file) Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Diffstat (limited to 'amdgpu')
-rw-r--r--amdgpu/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/amdgpu/Android.mk b/amdgpu/Android.mk
index bf0611ba..88d37651 100644
--- a/amdgpu/Android.mk
+++ b/amdgpu/Android.mk
@@ -10,5 +10,11 @@ LOCAL_SHARED_LIBRARIES := libdrm
10 10
11LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES) 11LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES)
12 12
13LOCAL_CFLAGS := \
14 -DAMDGPU_ASIC_ID_TABLE=\"/system/etc/hwdata/amdgpu.ids\" \
15 -DAMDGPU_ASIC_ID_TABLE_NUM_ENTRIES=$(shell egrep -ci '^[0-9a-f]{4},.*[0-9a-f]+,' $(LIBDRM_TOP)/data/amdgpu.ids)
16
17LOCAL_REQUIRED_MODULES := amdgpu.ids
18
13include $(LIBDRM_COMMON_MK) 19include $(LIBDRM_COMMON_MK)
14include $(BUILD_SHARED_LIBRARY) 20include $(BUILD_SHARED_LIBRARY)