android: add rules to build amdgpu.ids
PATCH v2 1/2 android: add rules to build amdgpu.ids
--- data/Android.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/Android.mk
data/Android.mk new file +9 -0
@@ -0,0 +1,9 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := amdgpu.ids +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := ETC +LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/hwdata +LOCAL_SRC_FILES := $(LOCAL_MODULE) +include $(BUILD_PREBUILT)
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 2/2 android: amdgpu: fix build break
Define two macros to avoid building errors.
--- amdgpu/Android.mk | 6 ++++++ 1 file changed, 6 insertions(+)
amdgpu/Android.mk +6 -0
@@ -10,5 +10,11 @@ LOCAL_SHARED_LIBRARIES := libdrm LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES) +LOCAL_CFLAGS := \ + -DAMDGPU_ASIC_ID_TABLE=\"/system/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)
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 2/2] android: amdgpu: fix build break
Ping. Is there any other concern to merge the fix?
2017-07-27 16:20 GMT+08:00 Chih-Wei Huang <[email protected]>:
Quoted 26 lines
Define two macros to avoid building errors.
Fixes 7e6bf88cac (amdgpu: move asic id table to a separate file)Signed-off-by Chih-Wei Huang <[email protected]>--- amdgpu/Android.mk | 6 ++++++ 1 file changed, 6 insertions(+)amdgpu/Android.mk +6
-1@@ -10,5 +10,11 @@ LOCAL_SHARED_LIBRARIES := libdrm LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES) +LOCAL_CFLAGS := \ + -DAMDGPU_ASIC_ID_TABLE=\"/system/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) --
Signature · 7 lines
Chih-Wei Android-x86 project http://www.android-x86.org _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 2/2] android: amdgpu: fix build break
Quoted 2 lines · Chih-Wei Huang
Ping. Is there any other concern to merge the fix?
My earlier suggestion was to use the respective Android build system variable, instead of hardcoding the actual path.
Merged v2 of the series, although I reserve my right of "I told you so" as this comes to bite :-)
Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 2/2] android: amdgpu: fix build break
2017-08-21 20:18 GMT+08:00 Emil Velikov <[email protected]>:
Quoted 5 lines · Chih-Wei Huang
Quoted 2 lines
Ping. Is there any other concern to merge the fix?
My earlier suggestion was to use the respective Android build system variable, instead of hardcoding the actual path.
Oh. Sorry I didn't really get your point.
But IMO that's not possible.TARGET_OUT_ETC is not a valid path in the target device. Unless you want to see a more complex rule like /($notdir $(TARGET_OUT_ETC))/hwdata/amdgpu.ids ...
Quoted 2 lines
Merged v2 of the series, although I reserve my right of "I told you so" as this comes to bite :-)
Signature · 7 lines
Chih-Wei Android-x86 project http://www.android-x86.org _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel