|
@@ -5,9 +5,9 @@
|
|
|
################################################################################
|
|
|
|
|
|
ifeq ($(BR2_aarch64),y)
|
|
|
-IMX_GPU_VIV_VERSION = 6.4.3.p0.0-aarch64
|
|
|
+IMX_GPU_VIV_VERSION = 6.4.3.p1.0-aarch64
|
|
|
else
|
|
|
-IMX_GPU_VIV_VERSION = 6.4.3.p0.0-aarch32
|
|
|
+IMX_GPU_VIV_VERSION = 6.4.3.p1.0-aarch32
|
|
|
endif
|
|
|
IMX_GPU_VIV_SITE = $(FREESCALE_IMX_SITE)
|
|
|
IMX_GPU_VIV_SOURCE = imx-gpu-viv-$(IMX_GPU_VIV_VERSION).bin
|
|
@@ -29,7 +29,7 @@ ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
|
|
|
IMX_GPU_VIV_DEPENDENCIES += xlib_libXdamage xlib_libXext xlib_libXfixes
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(IMX_GPU_VIV_LIB_TARGET),wl)
|
|
|
+ifeq ($(IMX_GPU_VIV_LIB_TARGET),wayland)
|
|
|
IMX_GPU_VIV_DEPENDENCIES += libdrm wayland
|
|
|
endif
|
|
|
|
|
@@ -38,24 +38,13 @@ define IMX_GPU_VIV_EXTRACT_CMDS
|
|
|
endef
|
|
|
|
|
|
# Instead of building, we fix up the inconsistencies that exist
|
|
|
-# in the upstream archive here.
|
|
|
+# in the upstream archive here. We also remove unused backend files.
|
|
|
# Make sure these commands are idempotent.
|
|
|
define IMX_GPU_VIV_BUILD_CMDS
|
|
|
- $(SED) 's/defined(LINUX)/defined(__linux__)/g' $(@D)/gpu-core/usr/include/*/*.h
|
|
|
- $(if $(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11)$(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL),
|
|
|
- ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so
|
|
|
- ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so.1
|
|
|
- ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so.1.2
|
|
|
- ln -sf libGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGL.so.1.2.0
|
|
|
- )
|
|
|
- ln -sf libEGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libEGL.so
|
|
|
- ln -sf libEGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libEGL.so.1
|
|
|
- ln -sf libEGL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libEGL.so.1.0
|
|
|
- ln -sf libGLESv2-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGLESv2.so
|
|
|
- ln -sf libGLESv2-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGLESv2.so.2
|
|
|
- ln -sf libGLESv2-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGLESv2.so.2.0.0
|
|
|
- ln -sf libGAL-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libGAL.so
|
|
|
- ln -sf libVDK-$(IMX_GPU_VIV_LIB_TARGET).so $(@D)/gpu-core/usr/lib/libVDK.so
|
|
|
+ cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_LIB_TARGET)/* $(@D)/gpu-core/usr/lib/
|
|
|
+ for backend in fb x11 wayland; do \
|
|
|
+ $(RM) -r $(@D)/gpu-core/usr/lib/$$backend ; \
|
|
|
+ done
|
|
|
endef
|
|
|
|
|
|
ifeq ($(IMX_GPU_VIV_LIB_TARGET),fb)
|
|
@@ -64,7 +53,7 @@ define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
|
endef
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(IMX_GPU_VIV_LIB_TARGET),wl)
|
|
|
+ifeq ($(IMX_GPU_VIV_LIB_TARGET),wayland)
|
|
|
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|
|
ln -sf egl_wayland.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
|
|
|
endef
|
|
@@ -101,22 +90,11 @@ define IMX_GPU_VIV_INSTALL_GMEM_INFO
|
|
|
endef
|
|
|
endif
|
|
|
|
|
|
-# On the target, remove the unused libraries.
|
|
|
-# Note that this is _required_, else ldconfig may create symlinks
|
|
|
-# to the wrong library
|
|
|
define IMX_GPU_VIV_INSTALL_TARGET_CMDS
|
|
|
$(IMX_GPU_VIV_INSTALL_EXAMPLES)
|
|
|
$(IMX_GPU_VIV_INSTALL_GMEM_INFO)
|
|
|
cp -a $(@D)/gpu-core/usr/lib $(TARGET_DIR)/usr
|
|
|
$(INSTALL) -D -m 0644 $(@D)/gpu-core/etc/Vivante.icd $(TARGET_DIR)/etc/OpenCL/vendors/Vivante.icd
|
|
|
- for lib in EGL GAL GLESv2 VDK; do \
|
|
|
- for f in $(TARGET_DIR)/usr/lib/lib$${lib}-*.so; do \
|
|
|
- case $$f in \
|
|
|
- *-$(IMX_GPU_VIV_LIB_TARGET).so) : ;; \
|
|
|
- *) $(RM) $$f ;; \
|
|
|
- esac; \
|
|
|
- done; \
|
|
|
- done
|
|
|
endef
|
|
|
|
|
|
$(eval $(generic-package))
|