[Openpvrsgx-devgroup] [PATCH] drm: pvrsgx: Fix module build for switching between DDK versions
H. Nikolaus Schaller
hns at goldelico.com
Mon Nov 9 08:50:52 CET 2020
Hi Tony,
> Am 09.11.2020 um 07:14 schrieb Tony Lindgren <tony at atomide.com>:
>
> 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
Yes I have seen that several times...
My solution was to make a clean build, but yours is much better :)
>
> 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
BR and thanks,
Nikolaus
More information about the openpvrsgx-devgroup
mailing list