Skip to contentSkip to conversation

android: add rules to build amdgpu.ids

PATCH New Chih-Wei Huang 4 participants 4 messages Jul 19, 2017 – Aug 1, 2017 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 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
new file mode 100644
index 0000000..3c1fd7c
@@ -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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
#1 lore raw

PATCH 2/2 android: amdgpu: fix build break

Define two macros to avoid building errors.

Fixes 7e6bf88cac (amdgpu: move asic id table to a separate file)
---
 amdgpu/Android.mk | 6 ++++++
 1 file changed, 6 insertions(+)
amdgpu/Android.mk +6 -0
index bf0611b..955bd53 100644
@@ -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)
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

A message that is not in the archive (sent off-list or not yet received): 1500459483-5795-2-git-send-email-cwhuang-Xh+NVF5n0LIoRNOVWjJ6hg@public.gmane.org

#3 lore raw

Re: [PATCH 2/2] android: amdgpu: fix build break

Quoted 14 lines · Chih-Wei Huang

Define two macros to avoid building errors.

Fixes 7e6bf88cac (amdgpu: move asic id table to a separate file)
---
 amdgpu/Android.mk | 6 ++++++
 1 file changed, 6 insertions(+)
amdgpu/Android.mk +0 -0
index bf0611b..955bd53 100644

amdgpu/Android.mk LOCAL_SHARED_LIBRARIES := libdrm · line 14

Quoted 5 lines
amdgpu/Android.mk +2 -0
@@ -10,5 +10,11 @@ LOCAL_SHARED_LIBRARIES := libdrm
 
 LOCAL_SRC_FILES := $(LIBDRM_AMDGPU_FILES)
 
+LOCAL_CFLAGS := \
+       -DAMDGPU_ASIC_ID_TABLE=\"/etc/hwdata/amdgpu.ids\" \

You want to use the same path in both places like we do in automake - see libdrmdatadir.
One simply does not need to bother/track if TARGET_OUT_ETC expands to /etc/ or as mentioned in [1] /system/etc/

-Emil
[1] https://source.codeaurora.org/external/gigabyte/ag-gb-dsds-7227/plain/frameworks/base/data/etc/Android.mk
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAKc24n2f6QQss_dXdnd0cBTtc4t7L5djE998reDUo53P6_mTPA@mail.gmail.com

#6 lore raw

Re: enable adbd over tcp in terminal before surfaceflinger

+ dri-devel, maybe other guys know it.

Quoted 8 lines · Chih-Wei Huang
Quoted 8 lines

I want to enable tcp adb in terminal before surfaceflinger, since in some cases, adb cannot connect over tcp if surfaceflinger crash or dead off. I have tried several things:
Android7 doesn't have netcfg and dhcpcd binary, so I pushed these two
commands to system.
with 'netcfg eth0 up' and 'netcfg eth0 dhcp', I can get IP address, but client cannot connect to this ip(time out).

Quoted 7 lines
Quoted 5 lines

and when running 'netcfg eth0 dhcp', the terminal will output failed log "action 'dhcp' failed (Network is unreachable)".

What do you think of it? Is there a know method to enable tcp adb in terminal without depending on framework?

Honestly speaking I didn't try that.
I'll give a try later.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel