[Openpvrsgx-devgroup] [PATCH] drm: pvrsgx: Fix module build for switching between DDK versions

Tony Lindgren tony at atomide.com
Mon Nov 9 07:14:22 CET 2020


We get build errors for modules when switching between DDK versions:

error: the following would cause module name conflict:
  drivers/gpu/drm/pvrsgx/1.9.2253347/pvrsrvkm_omap4_sgx540_120.ko
  drivers/gpu/drm/pvrsgx/1.17.4948957/eurasia_km/pvrsrvkm_omap4_sgx540_120.ko

Signed-off-by: Tony Lindgren <tony at atomide.com>
---
 drivers/gpu/drm/pvrsgx/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/pvrsgx/Makefile b/drivers/gpu/drm/pvrsgx/Makefile
--- a/drivers/gpu/drm/pvrsgx/Makefile
+++ b/drivers/gpu/drm/pvrsgx/Makefile
@@ -60,6 +60,7 @@ SOURCE=$(obj)/$(SUBPATH)
 # FIXME: should somehow keep the compiled .o separate...
 
 $(obj)/pvr:
+	@rm -f $(obj)/modules.order
 ifneq ($(CONFIG_SGX_CEDARVIEW),)
 	@$(kecho) "  MAKE    $(obj): cedarview"
 # Fix versions
-- 
2.29.2


More information about the openpvrsgx-devgroup mailing list