Re: [PATCH 1/3] drm/amdgpu: use $(src) in Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 24, 2015 at 3:55 AM, Jammy Zhou <Jammy.Zhou@xxxxxxx> wrote:
> This can solve the path problem when compile amdgpu with DKMS.
>
> Signed-off-by: Jammy Zhou <Jammy.Zhou@xxxxxxx>
> Acked-by: Alex Deucher <alexander.deucher@xxxxxxx>

Applied and rebased for drm-next.  I'll adapt the acp, powerplay, etc.
changes as those components make it upstream.

Alex

> ---
>  drivers/gpu/drm/amd/amdgpu/Makefile | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/gpu/drm/amd/amdgpu/Makefile
> index 156b726..0540a20 100644
> --- a/drivers/gpu/drm/amd/amdgpu/Makefile
> +++ b/drivers/gpu/drm/amd/amdgpu/Makefile
> @@ -2,12 +2,14 @@
>  # Makefile for the drm device driver.  This driver provides support for the
>  # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
>
> -ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \
> -       -Idrivers/gpu/drm/amd/include \
> -       -Idrivers/gpu/drm/amd/amdgpu \
> -       -Idrivers/gpu/drm/amd/scheduler \
> -       -Idrivers/gpu/drm/amd/powerplay/inc \
> -       -Idrivers/gpu/drm/amd/acp/include
> +FULL_AMD_PATH=$(src)/..
> +
> +ccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \
> +               -I$(FULL_AMD_PATH)/include \
> +               -I$(FULL_AMD_PATH)/amdgpu \
> +               -I$(FULL_AMD_PATH)/scheduler \
> +               -I$(FULL_AMD_PATH)/powerplay/inc \
> +               -I$(FULL_AMD_PATH)/acp/include
>
>  amdgpu-y := amdgpu_drv.o
>
> --
> 1.9.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux