diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2022-05-07 13:42:04 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2022-05-16 10:47:44 +0200 |
commit | 55ac7d9d4689e7400c855c9b580c1705c2af7be8 (patch) | |
tree | a80404d5374646dab226e4f425f2120509c2e4f1 /recipes-graphics | |
parent | b64f6c5b4a42909f9b5aa419f88d524f05ad6751 (diff) |
weston-init: import weston.sh from meta-freescale-distro
Import the file `profile` and rename it directly to its final name
`weston.sh` from meta-freescale-distro.
This allows to use it in a Toradex Easy Installer setup and it
simplifies the bbappend which does not add the freescale-distro layer.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 8 | ||||
-rw-r--r-- | recipes-graphics/wayland/weston-init/weston.sh | 7 |
2 files changed, 12 insertions, 3 deletions
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 494db7c..43bc86a 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend @@ -1,3 +1,7 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://weston.sh" + PACKAGECONFIG:append:upstream:tdx = " no-idle-timeout" PACKAGECONFIG:append:upstream:colibri-imx6ull = " use-pixman" PACKAGECONFIG:append:upstream:colibri-imx6ull-emmc = " use-pixman" @@ -5,9 +9,7 @@ PACKAGECONFIG:append:upstream:colibri-imx7 = " use-pixman" PACKAGECONFIG:append:upstream:colibri-imx7-emmc = " use-pixman" do_install:append:tdx() { - # profile is from meta-freescale-distro layer but only being installed for fsl,fslc distros - # we need install it for Toradex distros here. - install -Dm0755 ${WORKDIR}/profile ${D}${sysconfdir}/profile.d/weston.sh + install -Dm0755 ${WORKDIR}/weston.sh ${D}${sysconfdir}/profile.d/weston.sh # We need run weston systemd service with root user, or else it could not # access input devices and GPU acceleration hardwares diff --git a/recipes-graphics/wayland/weston-init/weston.sh b/recipes-graphics/wayland/weston-init/weston.sh new file mode 100644 index 0000000..89b04ec --- /dev/null +++ b/recipes-graphics/wayland/weston-init/weston.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Set WAYLAND_DISPLAY manually. +# It will cause app failures if this variable is not set for ssh login. +if test -z "$WAYLAND_DISPLAY"; then + export WAYLAND_DISPLAY="/run/wayland-0" +fi |