drm/amdgpu: use $(src) in Makefile (v2)
authorJammy Zhou <Jammy.Zhou@amd.com>
Tue, 24 Nov 2015 08:55:20 +0000 (16:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2015 17:45:56 +0000 (12:45 -0500)
This can solve the path problem when compile amdgpu with DKMS.

v2: agd: rebase on current drm-next

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile

index 04c2707570308df807f96b10e2cf3695cf8da092..a5c3aa0de773272779c8fc8a3bece1ebeed85294 100644 (file)
@@ -2,10 +2,12 @@
 # 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
+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
 
 amdgpu-y := amdgpu_drv.o