[Letux-kernel] [PATCH 3/3] drm: pvrsgx: 1.17.4948957: fix Makefile for out-of-tree builds

H. Nikolaus Schaller hns at goldelico.com
Fri Dec 3 22:15:38 CET 2021


Suggested-by: Jean Rene Dawin <jdawin at math.uni-bielefeld.de>
Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
---
 .../drm/pvrsgx/1.17.4948957/eurasia_km/Makefile    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
index 161018044f2de..88534e94847de 100644
--- a/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
+++ b/drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/Makefile
@@ -40,9 +40,9 @@ ccflags-y += -D$(SOC_VENDOR)_$(SOC)_$(SGX)_$(SGX_REV)
 ccflags-y += -DSGX_CORE_REV=$(SGX_REV)
 
 ccflags-y += \
-	-Iinclude \
-	-Iarch/arm/mach-omap2 \
-	-Idrivers/video/fbdev/omap2 \
+	-I$(srctree)/include \
+	-I$(srctree)/arch/arm/mach-omap2 \
+	-I$(srctree)/drivers/video/fbdev/omap2 \
 	-I$(srctree)/$(src)/ \
 	-I$(srctree)/$(src)/include4 \
 	-I$(srctree)/$(src)/services4/include \
@@ -55,7 +55,7 @@ ccflags-y += \
 	-I$(srctree)/$(src)/services4/srvkm/hwdefs \
 	-I$(srctree)/$(src)/services4/srvkm/include \
 	-I$(srctree)/$(src)/services4/3rdparty/bufferclass_ti \
-	-Iinclude/linux
+	-I$(srctree)/include/linux
 
 # choose SoC integration variant to choose the right source subtree
 
@@ -231,8 +231,8 @@ endif
 # gives duplicate export of drm_pvr_dev_add etc.
 # $(TARGET) += services4/3rdparty/linux_drm/pvr_drm_stubs.o
 
-ccflags-y += -Iinclude/drm \
-	-I$(src)/services4/3rdparty/linux_drm
+ccflags-y += -I$(srctree)/include/drm \
+	-I$(srctree)/$(src)/services4/3rdparty/linux_drm
 
 ccflags-y += -DSUPPORT_HW_RECOVERY
 ccflags-y += -DPVR_LINUX_USING_WORKQUEUES
@@ -270,7 +270,7 @@ endif
 ifneq ($(SUPPORT_OMAPLFB),)
 
 ccflags-y += \
-	-I$(src)/services4/3rdparty/dc_omapfb3_linux \
+	-I$(srctree)/$(src)/services4/3rdparty/dc_omapfb3_linux \
 	-DFBDEV_PRESENT=1 \
 	-DSUPPORT_OMAP3430_OMAPFB3 \
 	-DDISPLAY_CONTROLLER=omaplfb \
-- 
2.33.0



More information about the Letux-kernel mailing list