From: Chih-Wei Huang <cwhuang@android-x86.org>
To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org
Cc: Chih-Wei Huang <cwhuang@linux.org.tw>
Subject: [PATCH 2/2] android: amdgpu: fix build break
Date: Wed, 19 Jul 2017 18:18:03 +0800 [thread overview]
Message-ID: <1500459483-5795-2-git-send-email-cwhuang@linux.org.tw> (raw)
In-Reply-To: <1500459483-5795-1-git-send-email-cwhuang@linux.org.tw>
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>
---
amdgpu/Android.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/amdgpu/Android.mk b/amdgpu/Android.mk
index bf0611b..955bd53 100644
--- a/amdgpu/Android.mk
+++ b/amdgpu/Android.mk
@@ -10,5 +10,11 @@ LOCAL_SHARED_LIBRARIES := libdrm
LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES)
+LOCAL_CFLAGS := \
+ -DAMDGPU_ASIC_ID_TABLE=\"/etc/hwdata/amdgpu.ids\" \
+ -DAMDGPU_ASIC_ID_TABLE_NUM_ENTRIES=$(shell egrep -ci '^[0-9a-f]{4},.*[0-9a-f]+,' $(LIBDRM_TOP)/data/amdgpu.ids)
+
+LOCAL_REQUIRED_MODULES := amdgpu.ids
+
include $(LIBDRM_COMMON_MK)
include $(BUILD_SHARED_LIBRARY)
--
1.9.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-07-19 10:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-19 10:18 [PATCH 1/2] android: add rules to build amdgpu.ids Chih-Wei Huang
2017-07-19 10:18 ` Chih-Wei Huang [this message]
[not found] ` <1500459483-5795-2-git-send-email-cwhuang-Xh+NVF5n0LIoRNOVWjJ6hg@public.gmane.org>
2017-07-19 18:13 ` [PATCH 2/2] android: amdgpu: fix build break Emil Velikov
[not found] ` <037de989-41b8-22aa-fe1a-1070bd800211@amd.com>
[not found] ` <CAKc24n2f6QQss_dXdnd0cBTtc4t7L5djE998reDUo53P6_mTPA@mail.gmail.com>
2017-08-01 2:57 ` enable adbd over tcp in terminal before surfaceflinger zhoucm1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1500459483-5795-2-git-send-email-cwhuang@linux.org.tw \
--to=cwhuang@android-x86.org \
--cc=amd-gfx@lists.freedesktop.org \
--cc=cwhuang@linux.org.tw \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox