@@ -77,6 +77,14 @@ if BR2_aarch64
config BR2_PACKAGE_PROVIDES_LIBGBM
default "imx-gpu-viv"
+config BR2_PACKAGE_IMX_GPU_VIV_PLATFORM
+ string
+ default "mx8mn" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN
+ default "mx8mp" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
+ default "mx8mq" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
+ default "mx8qm" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8
+ default "mx8qxp" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
+
endif
config BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES
@@ -51,6 +51,13 @@ endef
endif
endif
+IMX_GPU_VIV_PLATFORM_DIR = $(call qstrip,$(BR2_PACKAGE_IMX_GPU_VIV_PLATFORM))
+ifneq ($(IMX_GPU_VIV_PLATFORM_DIR),)
+define IMX_GPU_VIV_COPY_PLATFORM
+ cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_PLATFORM_DIR)/* $(@D)/gpu-core/usr/lib/
+endef
+endif
+
# Instead of building, we fix up the inconsistencies that exist
# in the upstream archive here. We also remove unused backend files.
# Make sure these commands are idempotent.
@@ -59,6 +66,10 @@ define IMX_GPU_VIV_BUILD_CMDS
$(foreach backend,fb wayland, \
$(RM) -r $(@D)/gpu-core/usr/lib/$(backend)
)
+ $(IMX_GPU_VIV_COPY_PLATFORM)
+ $(foreach platform,mx8mn mx8mp mx8mq mx8qm mx8qxp mx8ulp, \
+ $(RM) -r $(@D)/gpu-core/usr/lib/$(platform)
+ )
$(IMX_GPU_VIV_FIXUP_PKGCONFIG)
endef
Since e8df0f7 (package/freescale-imx/imx-gpu-viv: bump to version 6.4.3.p4.4) the archive contains platform specific drivers that need to be copied and included. Signed-off-by: Daniel Lang <d.lang@abatec.at> --- package/freescale-imx/imx-gpu-viv/Config.in | 8 ++++++++ package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk | 11 +++++++++++ 2 files changed, 19 insertions(+)