All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] android: add rules to build amdgpu.ids
@ 2017-07-19 10:18 Chih-Wei Huang
  2017-07-19 10:18 ` [PATCH 2/2] android: amdgpu: fix build break Chih-Wei Huang
  0 siblings, 1 reply; 4+ messages in thread
From: Chih-Wei Huang @ 2017-07-19 10:18 UTC (permalink / raw)
  To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Chih-Wei Huang

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
---
 data/Android.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 data/Android.mk

diff --git a/data/Android.mk b/data/Android.mk
new file mode 100644
index 0000000..3c1fd7c
--- /dev/null
+++ b/data/Android.mk
@@ -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)
-- 
1.9.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] android: amdgpu: fix build break
  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
       [not found]   ` <1500459483-5795-2-git-send-email-cwhuang-Xh+NVF5n0LIoRNOVWjJ6hg@public.gmane.org>
       [not found]   ` <037de989-41b8-22aa-fe1a-1070bd800211@amd.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Chih-Wei Huang @ 2017-07-19 10:18 UTC (permalink / raw)
  To: dri-devel, amd-gfx; +Cc: Chih-Wei Huang

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] android: amdgpu: fix build break
       [not found]   ` <1500459483-5795-2-git-send-email-cwhuang-Xh+NVF5n0LIoRNOVWjJ6hg@public.gmane.org>
@ 2017-07-19 18:13     ` Emil Velikov
  0 siblings, 0 replies; 4+ messages in thread
From: Emil Velikov @ 2017-07-19 18:13 UTC (permalink / raw)
  To: Chih-Wei Huang; +Cc: Chih-Wei Huang, amd-gfx mailing list, ML dri-devel

On 19 July 2017 at 11:18, Chih-Wei Huang <cwhuang@android-x86.org> wrote:
> 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\" \
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
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: enable adbd over tcp in terminal before surfaceflinger
       [not found]     ` <CAKc24n2f6QQss_dXdnd0cBTtc4t7L5djE998reDUo53P6_mTPA@mail.gmail.com>
@ 2017-08-01  2:57       ` zhoucm1
  0 siblings, 0 replies; 4+ messages in thread
From: zhoucm1 @ 2017-08-01  2:57 UTC (permalink / raw)
  To: Chih-Wei Huang, Maling list - DRI developers


[-- Attachment #1.1: Type: text/plain, Size: 810 bytes --]

+ dri-devel, maybe other guys know it.


On 2017年08月01日 00:15, Chih-Wei Huang wrote:
>> 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).
>>
>> 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.


[-- Attachment #1.2: Type: text/html, Size: 1268 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-01  3:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 10:18 [PATCH 1/2] android: add rules to build amdgpu.ids Chih-Wei Huang
2017-07-19 10:18 ` [PATCH 2/2] android: amdgpu: fix build break Chih-Wei Huang
     [not found]   ` <1500459483-5795-2-git-send-email-cwhuang-Xh+NVF5n0LIoRNOVWjJ6hg@public.gmane.org>
2017-07-19 18:13     ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.