Commit 288912cb authored by Jammy Zhou's avatar Jammy Zhou Committed by Alex Deucher

drm/amdgpu: use $(src) in Makefile (v2)

This can solve the path problem when compile amdgpu with DKMS.

v2: agd: rebase on current drm-next
Signed-off-by: default avatarJammy Zhou <Jammy.Zhou@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dbb17a21
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
# Makefile for the drm device driver. This driver provides support for the # Makefile for the drm device driver. This driver provides support for the
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \ FULL_AMD_PATH=$(src)/..
-Idrivers/gpu/drm/amd/include \
-Idrivers/gpu/drm/amd/amdgpu \ ccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \
-Idrivers/gpu/drm/amd/scheduler -I$(FULL_AMD_PATH)/include \
-I$(FULL_AMD_PATH)/amdgpu \
-I$(FULL_AMD_PATH)/scheduler
amdgpu-y := amdgpu_drv.o amdgpu-y := amdgpu_drv.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment