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

Alex Deucher alexdeucher at gmail.com
Mon Nov 30 12:36:45 PST 2015


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

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 at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list