drm/amdgpu: clean up path handling for powerplay
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2016 15:22:27 +0000 (11:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Mar 2016 15:52:13 +0000 (11:52 -0400)
Use $(FULL_AMD_PATH) like everything else.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/Makefile

index e195bf59da86151f9b8a16436d769f6d6be7c170..043e6ebab5757915ed964aca20bc537158866da2 100644 (file)
@@ -1,17 +1,17 @@
 
 subdir-ccflags-y += -Iinclude/drm  \
-               -Idrivers/gpu/drm/amd/powerplay/inc/  \
-               -Idrivers/gpu/drm/amd/include/asic_reg  \
-               -Idrivers/gpu/drm/amd/include  \
-               -Idrivers/gpu/drm/amd/powerplay/smumgr\
-               -Idrivers/gpu/drm/amd/powerplay/hwmgr \
-               -Idrivers/gpu/drm/amd/powerplay/eventmgr
+               -I$(FULL_AMD_PATH)/powerplay/inc/  \
+               -I$(FULL_AMD_PATH)/include/asic_reg  \
+               -I$(FULL_AMD_PATH)/include  \
+               -I$(FULL_AMD_PATH)/powerplay/smumgr\
+               -I$(FULL_AMD_PATH)/powerplay/hwmgr \
+               -I$(FULL_AMD_PATH)/powerplay/eventmgr
 
 AMD_PP_PATH = ../powerplay
 
 PP_LIBS = smumgr hwmgr eventmgr
 
-AMD_POWERPLAY = $(addsuffix /Makefile,$(addprefix drivers/gpu/drm/amd/powerplay/,$(PP_LIBS)))
+AMD_POWERPLAY = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/powerplay/,$(PP_LIBS)))
 
 include $(AMD_POWERPLAY)