gedit rockchip_rk3566_defconfig
###start no weston and wayland by stone###
BR2_PACKAGE_DEVICEIO_RELEASE=y
BR2_PACKAGE_MTDEV=y
BR2_PACKAGE_LIBEVDEV=y
BR2_PACKAGE_LIBINPUT=y
BR2_PACKAGE_FONTCONFIG=y
BR2_PACKAGE_FREETYPE=y
#BR2_PACKAGE_QLAUNCHER=y
###end no weston and wayland by stone###
gedit qt_app.config
#BR2_PACKAGE_RKAIQ_TOOL_SERVER=y #put in first line will failed
###start move to rockchip_rk3566_defconfig because not stable here stone###
#BR2_PACKAGE_QSETTING=y #for widgets position load/save, when qpa=eglfs is no need
#BR2_PACKAGE_QLAUNCHER=y
###end move to rockchip_rk3566_defconfig because not stable here stone###
BR2_PACKAGE_RKAIQ_TOOL_SERVER=y
gedit ~/[SDK]/buildroot/package/qt5/qt5base/Config.in
###start add by stone
config BR2_PACKAGE_SUNXI_MALI_MAINLINE
bool "Compile QT with -eglfs_mali"
config BR2_PACKAGE_GBM_MALI_MAINLINE
bool "Compile QT with -eglfs_gbm"
###end add by stone
gedit sdk/buildroot/package/rockchip/minigui/Config.in
config BR2_PACKAGE_MINIGUI_SOFTWARE_SCALE
bool "Minigui use software scale"
depends on BR2_PACKAGE_LIBDRM
select BR2_PACKAGE_PIXMAN
#default y ###by stone
////////////////////////////////////
qt.config
BR2_PACKAGE_QT5=y
#BR2_PACKAGE_QT5CONNECTIVITY=y ###no network by stone
#BR2_PACKAGE_QT5MULTIMEDIA=y ###no play video by stone
#BR2_PACKAGE_QT5QUICKCONTROLS=y ###no wayland window by stone
#BR2_PACKAGE_QT5WAYLAND=y ###no wayland window by stone
BR2_PACKAGE_QT5BASE_JPEG=y
BR2_PACKAGE_QT5BASE_PNG=y
#BR2_PACKAGE_QT5SVG=y ###no SVG window by stone
#BR2_PACKAGE_QT5VIRTUALKEYBOARD=y ###no VIRTUALKEYBOARD window by stone
###start no weston and wayland by stone###
#BR2_PACKAGE_WAYLAND=y
#BR2_PACKAGE_WESTON=y
#BR2_PACKAGE_WESTON_DRM=y
###end no weston and wayland by stone###
///////////////////////////////
gedit qt5base.mk
ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
# use vivante backend
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_viv
else ifeq ($(BR2_PACKAGE_SUNXI_MALI_MAINLINE),y)
# use mali backend
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_mali
else ifeq ($(BR2_PACKAGE_GBM_MALI_MAINLINE),y) ###by stone
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_gbm
endif
###start fbdev_window.h for eglfs by stone###
define QT5BASE_CONFIGURE_EGLFS
wget --continue https://raw.githubusercontent.co ... /EGL/fbdev_window.h
mkdir -p ./output/rockchip_rk3566/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL
cp -f ./fbdev_window.h ./output/rockchip_rk3566/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/EGL
endef
###end fbdev_window.h for eglfs by stone###
/////////////////////////////////////////
gedit brmake
###start compile verbose by stone###
#( exec 2>&1; unbuffer make "${@}"; ) \
#> >( while read line; do
# printf "%(%Y-%m-%dT%H:%M:%S)T %s\n" -1 "${line}"
# done \
# |tee -a br.log \
# |grep --colour=never -E '>>>'
# )
( exec 2>&1; unbuffer make "${@}"; )
###end compile verbose by stone###
when build compile will see log
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... yes
EGLFS GBM ............................ yes
EGLFS VSP2 ........................... no
EGLFS Mali ........................... yes
EGLFS Raspberry Pi ................... no
EGLFS X11 ............................ no
LinuxFB ................................ yes
VNC .................................... yes
here are 3 files can be refered
~/SDK/buildroot/output/rockchip_rk3566/build/qt5base-5.15.2/src/plugins/platforms/eglfs/deviceintegration/eglfs_mali/qeglfsmaliintegration.cpp