Skip to contentSkip to conversation

drm/amdxcp: fix Makefile to build amdxcp module

PATCH In review Bob Zhou 3 participants 3 messages May 30, 2023 – May 31, 2023

Subsystems (2)
lore
Share & tools
lore

Bob Zhou

author
#0 lore raw

PATCH 1/1 drm/amdxcp: fix Makefile to build amdxcp module

After drm conduct amdgpu Makefile, amdgpu.ko has been created and "amdgpu-y +=" in amdxcp Makefile isn't used.
So modify amdgpu-y to amdxcp-y and build amdxcp module.

---
 drivers/gpu/drm/amd/amdxcp/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdxcp/Makefile +2 -2
index 5e1bd70748d4..870501a4bb8c 100644
@@ -20,6 +20,6 @@
 # OTHER DEALINGS IN THE SOFTWARE.
 #
 
-amdgpu-y := amdgpu_xcp_drv.o
+amdxcp-y := amdgpu_xcp_drv.o
 
-obj-$(CONFIG_DRM_AMDGPU) += amdgpu_xcp_drv.o
+obj-$(CONFIG_DRM_AMDGPU) += amdxcp.o
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw
Quoted 26 lines · Bob Zhou

After drm conduct amdgpu Makefile, amdgpu.ko has been created and "amdgpu-y +=" in amdxcp Makefile isn't used.
So modify amdgpu-y to amdxcp-y and build amdxcp module.

---
 drivers/gpu/drm/amd/amdxcp/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdxcp/Makefile +2 -3
index 5e1bd70748d4..870501a4bb8c 100644
@@ -20,6 +20,6 @@
 # OTHER DEALINGS IN THE SOFTWARE.
 #
 
-amdgpu-y := amdgpu_xcp_drv.o
+amdxcp-y := amdgpu_xcp_drv.o
 
-obj-$(CONFIG_DRM_AMDGPU) += amdgpu_xcp_drv.o
+obj-$(CONFIG_DRM_AMDGPU) += amdxcp.o
--

2.34.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Bob Zhou

[Public]

Regards,
Guchun

Quoted 35 lines

-----Original Message-----
From: Bob Zhou <[email protected]>
Sent: Tuesday, May 30, 2023 5:52 PM
To: [email protected]; Zhu, James <[email protected]>
Cc: Cui, Flora <[email protected]>; Chen, Guchun <[email protected]>; Shi, Leslie <[email protected]>; Ma, Jun <[email protected]>; Song, Asher <[email protected]>; Zhou, Bob <[email protected]>
Subject: [PATCH] drm/amdxcp: fix Makefile to build amdxcp module

After drm conduct amdgpu Makefile, amdgpu.ko has been created and "amdgpu-y +=" in amdxcp Makefile isn't used.
So modify amdgpu-y to amdxcp-y and build amdxcp module.

---
 drivers/gpu/drm/amd/amdxcp/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdxcp/Makefile +2 -3
index 5e1bd70748d4..870501a4bb8c 100644
@@ -20,6 +20,6 @@
 # OTHER DEALINGS IN THE SOFTWARE.
 #
 
-amdgpu-y := amdgpu_xcp_drv.o
+amdxcp-y := amdgpu_xcp_drv.o
 
-obj-$(CONFIG_DRM_AMDGPU) += amdgpu_xcp_drv.o
+obj-$(CONFIG_DRM_AMDGPU) += amdxcp.o
--

2.34.1