diff options
| -rw-r--r-- | conf/machine/imx8qm-mek.conf | 1 | ||||
| -rw-r--r-- | conf/machine/imx8qxp-mek.conf | 2 | ||||
| -rw-r--r-- | conf/machine/include/imx-base.inc | 1 | ||||
| -rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 102 | ||||
| -rw-r--r-- | recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini | 11 |
5 files changed, 62 insertions, 55 deletions
diff --git a/conf/machine/imx8qm-mek.conf b/conf/machine/imx8qm-mek.conf index d35a28318..6847585d8 100644 --- a/conf/machine/imx8qm-mek.conf +++ b/conf/machine/imx8qm-mek.conf | |||
| @@ -31,6 +31,7 @@ KERNEL_DEVICETREE = " \ | |||
| 31 | freescale/imx8qm-mek-ca53.dtb \ | 31 | freescale/imx8qm-mek-ca53.dtb \ |
| 32 | freescale/imx8qm-mek-ca72.dtb \ | 32 | freescale/imx8qm-mek-ca72.dtb \ |
| 33 | freescale/imx8qm-mek-dsi-rm67191.dtb \ | 33 | freescale/imx8qm-mek-dsi-rm67191.dtb \ |
| 34 | freescale/imx8qm-mek-dsi-rm67199.dtb \ | ||
| 34 | freescale/imx8qm-mek-enet2-tja1100.dtb \ | 35 | freescale/imx8qm-mek-enet2-tja1100.dtb \ |
| 35 | freescale/imx8qm-mek-esai.dtb \ | 36 | freescale/imx8qm-mek-esai.dtb \ |
| 36 | freescale/imx8qm-mek-hdmi.dtb \ | 37 | freescale/imx8qm-mek-hdmi.dtb \ |
diff --git a/conf/machine/imx8qxp-mek.conf b/conf/machine/imx8qxp-mek.conf index 5c8df513e..877ac55ff 100644 --- a/conf/machine/imx8qxp-mek.conf +++ b/conf/machine/imx8qxp-mek.conf | |||
| @@ -13,6 +13,8 @@ KERNEL_DEVICETREE:append:use-nxp-bsp = " \ | |||
| 13 | freescale/${KERNEL_DEVICETREE_BASENAME}-a0.dtb \ | 13 | freescale/${KERNEL_DEVICETREE_BASENAME}-a0.dtb \ |
| 14 | freescale/${KERNEL_DEVICETREE_BASENAME}-dpu-lcdif.dtb \ | 14 | freescale/${KERNEL_DEVICETREE_BASENAME}-dpu-lcdif.dtb \ |
| 15 | freescale/${KERNEL_DEVICETREE_BASENAME}-dpu-lcdif-rpmsg.dtb \ | 15 | freescale/${KERNEL_DEVICETREE_BASENAME}-dpu-lcdif-rpmsg.dtb \ |
| 16 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsi-rm67199.dtb \ | ||
| 17 | freescale/${KERNEL_DEVICETREE_BASENAME}-dsi-rm67199-rpmsg.dtb \ | ||
| 16 | freescale/${KERNEL_DEVICETREE_BASENAME}-enet2.dtb \ | 18 | freescale/${KERNEL_DEVICETREE_BASENAME}-enet2.dtb \ |
| 17 | freescale/${KERNEL_DEVICETREE_BASENAME}-lcdif.dtb \ | 19 | freescale/${KERNEL_DEVICETREE_BASENAME}-lcdif.dtb \ |
| 18 | freescale/${KERNEL_DEVICETREE_BASENAME}-lcdif-rpmsg.dtb \ | 20 | freescale/${KERNEL_DEVICETREE_BASENAME}-lcdif-rpmsg.dtb \ |
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 06d6e96be..cd6a077a3 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -416,6 +416,7 @@ IMX_ALSA_EXTRA:imx-nxp-bsp = "imx-alsa-plugins" | |||
| 416 | MACHINE_EXTRA_RRECOMMENDS:append:mx6-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | 416 | MACHINE_EXTRA_RRECOMMENDS:append:mx6-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" |
| 417 | MACHINE_EXTRA_RRECOMMENDS:append:mx7-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | 417 | MACHINE_EXTRA_RRECOMMENDS:append:mx7-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" |
| 418 | MACHINE_EXTRA_RRECOMMENDS:append:mx8-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | 418 | MACHINE_EXTRA_RRECOMMENDS:append:mx8-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" |
| 419 | MACHINE_EXTRA_RRECOMMENDS:append:mx9-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', '${IMX_ALSA_EXTRA}', '', d)}" | ||
| 419 | 420 | ||
| 420 | # Extra Cypress Wi-Fi and BTW firmware (Murata) | 421 | # Extra Cypress Wi-Fi and BTW firmware (Murata) |
| 421 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4339', 'linux-firmware-bcm4339', '', d)}" | 422 | MACHINE_FIRMWARE:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'bcm4339', 'linux-firmware-bcm4339', '', d)}" |
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index a742bb86b..69a807a3b 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
| @@ -8,64 +8,72 @@ REQUIRED_DISTRO_FEATURES:remove = "${IMX_REQUIRED_DISTRO_FEATURES_REMOVE}" | |||
| 8 | 8 | ||
| 9 | SRC_URI:append:mx6sl-nxp-bsp = " file://weston.config" | 9 | SRC_URI:append:mx6sl-nxp-bsp = " file://weston.config" |
| 10 | 10 | ||
| 11 | # To customize weston.ini, start by setting the desired assignment in weston.ini, | 11 | PACKAGECONFIG ??= " \ |
| 12 | # commented in. For example: | 12 | no-idle-timeout \ |
| 13 | # xwayland=true | 13 | ${PACKAGECONFIG_GBM_FORMAT} \ |
| 14 | # Then add the assignment to INI_COMMENT_ASSIGNMENTS. | 14 | ${PACKAGECONFIG_REPAINT_WINDOW} \ |
| 15 | # | 15 | ${PACKAGECONFIG_SIZE} \ |
| 16 | # commented out. For example: | 16 | ${PACKAGECONFIG_USE_G2D} \ |
| 17 | # #xwayland=true | ||
| 18 | # Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS. | ||
| 19 | INI_COMMENT_ASSIGNMENTS:append:imx-mainline-bsp = " \ | ||
| 20 | xwayland=true \ | ||
| 21 | " | 17 | " |
| 22 | 18 | ||
| 23 | INI_UNCOMMENT_ASSIGNMENTS:append:mx8-nxp-bsp = " \ | 19 | PACKAGECONFIG_GBM_FORMAT ?= "" |
| 24 | repaint-window=16 \ | 20 | PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" |
| 25 | " | ||
| 26 | INI_UNCOMMENT_ASSIGNMENTS:append:mx8mq-nxp-bsp = " \ | ||
| 27 | gbm-format=argb8888 \ | ||
| 28 | \\[shell\\] \ | ||
| 29 | size=1920x1080 \ | ||
| 30 | " | ||
| 31 | 21 | ||
| 32 | # FIXME: The 8QM and 8QXP SoCs have better performance without G2D so don't enable it | 22 | GBM_FORMAT_VALUE:mx8mq-nxp-bsp = "argb8888" |
| 33 | # Ideally, this should be seamless and Vivante ought to handle it internally and take the fastest | ||
| 34 | # rendering code. | ||
| 35 | INI_UNCOMMENT_USE_G2D ?= "" | ||
| 36 | INI_UNCOMMENT_USE_G2D:imxgpu2d ?= "use-g2d=1" | ||
| 37 | INI_UNCOMMENT_USE_G2D:mx8qm-nxp-bsp ?= "" | ||
| 38 | INI_UNCOMMENT_USE_G2D:mx8qxp-nxp-bsp ?= "" | ||
| 39 | INI_UNCOMMENT_USE_G2D:mx8dx-nxp-bsp ?= "" | ||
| 40 | INI_UNCOMMENT_ASSIGNMENTS:append = " \ | ||
| 41 | ${INI_UNCOMMENT_USE_G2D} \ | ||
| 42 | " | ||
| 43 | 23 | ||
| 44 | comment() { | 24 | PACKAGECONFIG_REPAINT_WINDOW ?= "" |
| 45 | if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then | 25 | PACKAGECONFIG_REPAINT_WINDOW:mx8-nxp-bsp ?= "repaint-window" |
| 46 | bbwarn "Commented setting '#$1' not found in file $2" | 26 | PACKAGECONFIG_REPAINT_WINDOW:mx9-nxp-bsp ?= "repaint-window" |
| 47 | fi | ||
| 48 | sed -i -e 's,^'"$1"',#'"$1"',g' $2 | ||
| 49 | } | ||
| 50 | 27 | ||
| 51 | uncomment() { | 28 | PACKAGECONFIG_SIZE ?= "" |
| 52 | if ! grep -q "^#$1" $2 && ! grep -q "^$1" $2; then | 29 | PACKAGECONFIG_SIZE:mx8mq-nxp-bsp ?= "size" |
| 53 | bbwarn "Commented setting '#$1' not found in file $2" | 30 | |
| 54 | fi | 31 | SIZE_VALUE:mx8mq-nxp-bsp = "1920x1080" |
| 55 | sed -i -e 's,^#'"$1"','"$1"',g' $2 | 32 | |
| 56 | } | 33 | PACKAGECONFIG_USE_G2D ?= "" |
| 34 | PACKAGECONFIG_USE_G2D:imxgpu2d ?= "use-g2d" | ||
| 35 | PACKAGECONFIG_USE_G2D:mx8qm-nxp-bsp ?= "" | ||
| 36 | PACKAGECONFIG_USE_G2D:mx8qxp-nxp-bsp ?= "" | ||
| 37 | PACKAGECONFIG_USE_G2D:mx8dx-nxp-bsp ?= "" | ||
| 38 | PACKAGECONFIG_USE_G2D:mx93-nxp-bsp ?= "use-g2d" | ||
| 39 | |||
| 40 | USE_G2D_VALUE = "true" | ||
| 41 | USE_G2D_VALUE:mx6-nxp-bsp = "1" | ||
| 42 | USE_G2D_VALUE:mx7-nxp-bsp = "1" | ||
| 43 | |||
| 44 | PACKAGECONFIG[gbm-format] = ",," | ||
| 45 | PACKAGECONFIG[rdp] = ",," | ||
| 46 | PACKAGECONFIG[repaint-window] = ",," | ||
| 47 | PACKAGECONFIG[size] = ",," | ||
| 48 | PACKAGECONFIG[use-g2d] = ",," | ||
| 57 | 49 | ||
| 58 | do_install:append() { | 50 | do_install:append() { |
| 59 | if [ -f "${WORKDIR}/weston.config" ]; then | 51 | if [ -f "${WORKDIR}/weston.config" ]; then |
| 60 | install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston | 52 | install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston |
| 61 | fi | 53 | fi |
| 62 | 54 | ||
| 63 | for assignment in ${INI_COMMENT_ASSIGNMENTS}; do | 55 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'gbm-format', 'yes', 'no', d)}" = "yes" ]; then |
| 64 | comment "$assignment" ${D}${sysconfdir}/xdg/weston/weston.ini | 56 | sed -i -e "/^\[core\]/a gbm-format=${GBM_FORMAT_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini |
| 65 | done | 57 | fi |
| 58 | |||
| 59 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'rdp', 'yes', 'no', d)}" = "yes" ]; then | ||
| 60 | sed -i -e "s|^command=${bindir}/weston .*|& --rdp-tls-cert=${sysconfdir}/freerdp/keys/server.crt --rdp-tls-key=${sysconfdir}/freerdp/keys/server.key|" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 61 | sed -i -e "/^\[core\]/a modules=screen-share.so" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 62 | fi | ||
| 63 | |||
| 64 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'repaint-window', 'yes', 'no', d)}" = "yes" ]; then | ||
| 65 | sed -i -e "/^\[core\]/a repaint-window=16" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 66 | fi | ||
| 67 | |||
| 68 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'size', 'yes', 'no', d)}" = "yes" ]; then | ||
| 69 | sed -i -e "/^\[shell\]/a size=${SIZE_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 70 | fi | ||
| 71 | |||
| 72 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'use-g2d', 'yes', 'no', d)}" = "yes" ]; then | ||
| 73 | sed -i -e "/^\[core\]/a use-g2d=${USE_G2D_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 74 | else | ||
| 75 | sed -i -e "/^\[core\]/a #use-g2d=${USE_G2D_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 76 | fi | ||
| 66 | 77 | ||
| 67 | for assignment in ${INI_UNCOMMENT_ASSIGNMENTS}; do | ||
| 68 | uncomment "$assignment" ${D}${sysconfdir}/xdg/weston/weston.ini | ||
| 69 | done | ||
| 70 | sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini | 78 | sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini |
| 71 | } | 79 | } |
diff --git a/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini b/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini index 3e2989734..19e6ad244 100644 --- a/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini +++ b/recipes-graphics/wayland/weston-init/imx-nxp-bsp/weston.ini | |||
| @@ -1,13 +1,7 @@ | |||
| 1 | [core] | 1 | [core] |
| 2 | #gbm-format=argb8888 | ||
| 3 | idle-time=0 | ||
| 4 | #use-g2d=1 | ||
| 5 | #repaint-window=16 | ||
| 6 | #enable-overlay-view=1 | 2 | #enable-overlay-view=1 |
| 7 | modules=screen-share.so | ||
| 8 | 3 | ||
| 9 | #[shell] | 4 | [shell] |
| 10 | #size=1920x1080 | ||
| 11 | 5 | ||
| 12 | [libinput] | 6 | [libinput] |
| 13 | touchscreen_calibrator=true | 7 | touchscreen_calibrator=true |
| @@ -27,4 +21,5 @@ touchscreen_calibrator=true | |||
| 27 | #transform=rotate-90 | 21 | #transform=rotate-90 |
| 28 | 22 | ||
| 29 | [screen-share] | 23 | [screen-share] |
| 30 | command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/etc/freerdp/keys/server.crt --rdp-tls-key=/etc/freerdp/keys/server.key | 24 | command=@bindir@/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize |
| 25 | #start-on-startup=true | ||
