[PATCH] drm/amdxcp: fix Makefile to build amdxcp module

Chen, Guchun Guchun.Chen at amd.com
Wed May 31 01:12:29 UTC 2023


[Public]

Reviewed-by: Guchun Chen <guchun.chen at amd.com>

Regards,
Guchun

> -----Original Message-----
> From: Bob Zhou <bob.zhou at amd.com>
> Sent: Tuesday, May 30, 2023 5:52 PM
> To: amd-gfx at lists.freedesktop.org; Zhu, James <James.Zhu at amd.com>
> Cc: Cui, Flora <Flora.Cui at amd.com>; Chen, Guchun
> <Guchun.Chen at amd.com>; Shi, Leslie <Yuliang.Shi at amd.com>; Ma, Jun
> <Jun.Ma2 at amd.com>; Song, Asher <Asher.Song at amd.com>; Zhou, Bob
> <Bob.Zhou at amd.com>
> 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.
>
> Signed-off-by: Bob Zhou <bob.zhou at amd.com>
> ---
>  drivers/gpu/drm/amd/amdxcp/Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdxcp/Makefile
> b/drivers/gpu/drm/amd/amdxcp/Makefile
> index 5e1bd70748d4..870501a4bb8c 100644
> --- a/drivers/gpu/drm/amd/amdxcp/Makefile
> +++ b/drivers/gpu/drm/amd/amdxcp/Makefile
> @@ -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



More information about the amd-gfx mailing list