mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
imx-gpu-viv: add Wayland backend option
This package has been tested with Wayland back-end using weston-imx repository on a i.MX6Q Nitrogen6x: https://source.codeaurora.org/external/imx/weston-imx/ (tag rel_imx_4.9.51_8mq_ga to work with both i.MX6 and i.MX8MQ) Weston was started as follows: # export XDG_RUNTIME_DIR=/tmp # weston --tty=1 --device=/dev/fb0 Finally the Vivante sample apps were started from weston-terminal: # cd /usr/share/examples/viv_samples/vdk/ # ./tutorial7 Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
f18ca0e7bb
commit
ae7e5960a3
@ -12,7 +12,7 @@ config BR2_PACKAGE_IMX_GPU_VIV
|
|||||||
select BR2_PACKAGE_HAS_LIBGLES
|
select BR2_PACKAGE_HAS_LIBGLES
|
||||||
select BR2_PACKAGE_HAS_LIBOPENVG
|
select BR2_PACKAGE_HAS_LIBOPENVG
|
||||||
help
|
help
|
||||||
Userspace libraries for Vivante GPU on i.MX6 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 DRI plugin for X11. It also
|
||||||
@ -44,12 +44,20 @@ comment "X11 backend needs Xorg package"
|
|||||||
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
|
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
|
||||||
bool "Framebuffer"
|
bool "Framebuffer"
|
||||||
|
|
||||||
|
config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
|
||||||
|
bool "Wayland"
|
||||||
|
# libdrm needed by gbm_viv.so
|
||||||
|
select BR2_PACKAGE_LIBDRM
|
||||||
|
select BR2_PACKAGE_WAYLAND
|
||||||
|
select BR2_PACKAGE_HAS_LIBEGL_WAYLAND
|
||||||
|
|
||||||
endchoice
|
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 "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 "wl" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
|
||||||
|
|
||||||
config BR2_PACKAGE_PROVIDES_LIBEGL
|
config BR2_PACKAGE_PROVIDES_LIBEGL
|
||||||
default "imx-gpu-viv"
|
default "imx-gpu-viv"
|
||||||
|
@ -25,6 +25,10 @@ ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
|
|||||||
IMX_GPU_VIV_DEPENDENCIES += xlib_libXdamage xlib_libXext xlib_libXfixes
|
IMX_GPU_VIV_DEPENDENCIES += xlib_libXdamage xlib_libXext xlib_libXfixes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(IMX_GPU_VIV_LIB_TARGET),wl)
|
||||||
|
IMX_GPU_VIV_DEPENDENCIES += libdrm wayland
|
||||||
|
endif
|
||||||
|
|
||||||
define IMX_GPU_VIV_EXTRACT_CMDS
|
define IMX_GPU_VIV_EXTRACT_CMDS
|
||||||
$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_GPU_VIV_DL_DIR)/$(IMX_GPU_VIV_SOURCE))
|
$(call FREESCALE_IMX_EXTRACT_HELPER,$(IMX_GPU_VIV_DL_DIR)/$(IMX_GPU_VIV_SOURCE))
|
||||||
endef
|
endef
|
||||||
@ -62,6 +66,12 @@ define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(IMX_GPU_VIV_LIB_TARGET),wl)
|
||||||
|
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
||||||
|
ln -sf egl_wayland.pc $(@D)/gpu-core/usr/lib/pkgconfig/egl.pc
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
|
ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)
|
||||||
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
define IMX_GPU_VIV_FIXUP_PKGCONFIG
|
||||||
for lib in egl gbm glesv1_cm glesv2 vg; do \
|
for lib in egl gbm glesv1_cm glesv2 vg; do \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user