package/freescale-imx/imx-gpu-viv: drop X11 output

Since e8df0f7 (package/freescale-imx/imx-gpu-viv: bump to version 6.4.3.p4.4)
the X11 folder is no longer included in the archive.

Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Lang Daniel 2023-01-10 09:32:43 +00:00 committed by Thomas Petazzoni
parent 4db36b268d
commit 424f53ac07
3 changed files with 11 additions and 33 deletions

View File

@ -146,6 +146,12 @@ endif
comment "Legacy options removed in 2023.02" comment "Legacy options removed in 2023.02"
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11
bool "imx-gpu-viv X11 output has been removed"
select BR2_LEGACY
help
The X11 output was dropped by NXP.
config BR2_PACKAGE_QEMU_CUSTOM_TARGETS config BR2_PACKAGE_QEMU_CUSTOM_TARGETS
string "the QEMU specific targets option has been removed" string "the QEMU specific targets option has been removed"
help help

View File

@ -27,9 +27,9 @@ config BR2_PACKAGE_IMX_GPU_VIV
Userspace libraries for Vivante GPU on i.MX platforms Userspace libraries for Vivante GPU on i.MX platforms
It contains libraries and headers for GLES, OpenCL, and It contains libraries and headers for GLES, OpenCL, and
OpenVG. It also contains a DRI plugin for X11. It also OpenVG. It also contains a plugin for DirectFB-1.4.0, but
contains a plugin for DirectFB-1.4.0, but that doesn't work that doesn't work together with buildroot's DirectFB
together with buildroot's DirectFB version. version.
This library is provided by Freescale as-is and doesn't have This library is provided by Freescale as-is and doesn't have
an upstream. an upstream.
@ -40,22 +40,9 @@ choice
prompt "Output option" prompt "Output option"
help help
There are two versions of this library: one for There are two versions of this library: one for
direct framebuffer access, one for X11 rendering. direct framebuffer access, one for wayland rendering.
Choose here which version to install. Choose here which version to install.
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11
bool "X11"
depends on BR2_PACKAGE_XORG7
# The i.MX8 blob doesn't support X11 output
depends on !BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
select BR2_PACKAGE_XLIB_LIBXDAMAGE
select BR2_PACKAGE_XLIB_LIBXEXT
select BR2_PACKAGE_XLIB_LIBXFIXES
comment "X11 backend needs Xorg package"
depends on !BR2_PACKAGE_XORG7
depends on !BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
bool "Framebuffer" bool "Framebuffer"
# The i.MX8 blob doesn't support FB output # The i.MX8 blob doesn't support FB output
@ -70,7 +57,6 @@ endchoice
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT
string string
default "x11" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11
default "fb" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB default "fb" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
default "wayland" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL default "wayland" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL

View File

@ -26,14 +26,6 @@ endif
IMX_GPU_VIV_LIB_TARGET = $(call qstrip,$(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT)) IMX_GPU_VIV_LIB_TARGET = $(call qstrip,$(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT))
ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
# The libGAL.so library provided by imx-gpu-viv uses X functions. Packages
# may want to link against libGAL.so (QT5 Base with OpenGL and X support
# does so). For this to work we need build dependencies to libXdamage,
# libXext and libXfixes so that X functions used in libGAL.so are referenced.
IMX_GPU_VIV_DEPENDENCIES += xlib_libXdamage xlib_libXext xlib_libXfixes
endif
# Libraries are linked against libdrm, except framebuffer output on ARM # Libraries are linked against libdrm, except framebuffer output on ARM
ifneq ($(IMX_GPU_VIV_LIB_TARGET)$(BR2_arm),fby) ifneq ($(IMX_GPU_VIV_LIB_TARGET)$(BR2_arm),fby)
IMX_GPU_VIV_DEPENDENCIES += libdrm IMX_GPU_VIV_DEPENDENCIES += libdrm
@ -55,12 +47,6 @@ else ifeq ($(IMX_GPU_VIV_LIB_TARGET),wayland)
define IMX_GPU_VIV_FIXUP_PKGCONFIG define IMX_GPU_VIV_FIXUP_PKGCONFIG
ln -sf egl_wayland.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc ln -sf egl_wayland.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
endef endef
else ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
define IMX_GPU_VIV_FIXUP_PKGCONFIG
$(foreach lib,egl glesv1_cm glesv2 vg, \
ln -sf $(lib)_x11.pc $(@D)/gpu-core/usr/lib/pkgconfig/$(lib).pc
)
endef
endif endif
# Instead of building, we fix up the inconsistencies that exist # Instead of building, we fix up the inconsistencies that exist
@ -68,7 +54,7 @@ endif
# Make sure these commands are idempotent. # Make sure these commands are idempotent.
define IMX_GPU_VIV_BUILD_CMDS define IMX_GPU_VIV_BUILD_CMDS
cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_LIB_TARGET)/* $(@D)/gpu-core/usr/lib/ cp -dpfr $(@D)/gpu-core/usr/lib/$(IMX_GPU_VIV_LIB_TARGET)/* $(@D)/gpu-core/usr/lib/
$(foreach backend,fb x11 wayland, \ $(foreach backend,fb wayland, \
$(RM) -r $(@D)/gpu-core/usr/lib/$(backend) $(RM) -r $(@D)/gpu-core/usr/lib/$(backend)
) )
$(IMX_GPU_VIV_FIXUP_PKGCONFIG) $(IMX_GPU_VIV_FIXUP_PKGCONFIG)