diff options
author | Jammy Zhou <Jammy.Zhou@amd.com> | 2015-11-24 03:55:20 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-02 12:45:56 -0500 |
commit | 288912cb95d156ad9fbb626b0b05d714c2ec8c8e (patch) | |
tree | bf0c0dd53eaf10076c0577102c591fcd61dcff15 /drivers/gpu/drm/amd | |
parent | dbb17a21c131eca94eb31136eee9a7fe5aff00d9 (diff) |
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: Jammy Zhou <Jammy.Zhou@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/gpu/drm/amd/amdgpu/Makefile index 04c270757030..a5c3aa0de773 100644 --- a/drivers/gpu/drm/amd/amdgpu/Makefile +++ b/drivers/gpu/drm/amd/amdgpu/Makefile | |||
@@ -2,10 +2,12 @@ | |||
2 | # Makefile for the drm device driver. This driver provides support for the | 2 | # Makefile for the drm device driver. This driver provides support for the |
3 | # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. | 3 | # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. |
4 | 4 | ||
5 | ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \ | 5 | FULL_AMD_PATH=$(src)/.. |
6 | -Idrivers/gpu/drm/amd/include \ | 6 | |
7 | -Idrivers/gpu/drm/amd/amdgpu \ | 7 | ccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \ |
8 | -Idrivers/gpu/drm/amd/scheduler | 8 | -I$(FULL_AMD_PATH)/include \ |
9 | -I$(FULL_AMD_PATH)/amdgpu \ | ||
10 | -I$(FULL_AMD_PATH)/scheduler | ||
9 | 11 | ||
10 | amdgpu-y := amdgpu_drv.o | 12 | amdgpu-y := amdgpu_drv.o |
11 | 13 | ||