diff options
| author | Christian Kohn <chris.kohn@amd.com> | 2022-12-21 16:27:08 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-04-10 09:03:22 -0700 |
| commit | 68b4da3d30e567f6c26bc6fcde67e88181deaabf (patch) | |
| tree | 381186183d3fe42af285ca76e65ef8a226222fda | |
| parent | 33fd654be03f9c7afac44faabef4029e77f9dff4 (diff) | |
| download | meta-xilinx-68b4da3d30e567f6c26bc6fcde67e88181deaabf.tar.gz | |
weston-init: Don't replace weston.ini
Instead of replacing the template weston.ini from the original recipe, augment
it as needed:
1. There is a PACKAGECONFIG option to set idle-time=0. Use it.
2. For zynqmp device enablement, set gbm-format=rgb565.
This keeps the template weston.ini intact so the user can easily uncomment the
desired options while running on the target.
Signed-off-by: Christian Kohn <chris.kohn@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/wayland/files/weston.ini | 6 | ||||
| -rw-r--r-- | meta-xilinx-core/recipes-graphics/wayland/weston-init.bbappend | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/meta-xilinx-core/recipes-graphics/wayland/files/weston.ini b/meta-xilinx-core/recipes-graphics/wayland/files/weston.ini deleted file mode 100644 index 2ff81795..00000000 --- a/meta-xilinx-core/recipes-graphics/wayland/files/weston.ini +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | [core] | ||
| 2 | idle-time=0 | ||
| 3 | |||
| 4 | gbm-format=rgb565 | ||
| 5 | |||
| 6 | require-input=false | ||
diff --git a/meta-xilinx-core/recipes-graphics/wayland/weston-init.bbappend b/meta-xilinx-core/recipes-graphics/wayland/weston-init.bbappend index 3b2b17fd..f0d64e27 100644 --- a/meta-xilinx-core/recipes-graphics/wayland/weston-init.bbappend +++ b/meta-xilinx-core/recipes-graphics/wayland/weston-init.bbappend | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | FILESEXTRAPATHS:prepend:zynqmp := "${THISDIR}/files:" | 1 | PACKAGECONFIG += "no-idle-timeout" |
| 2 | |||
| 3 | SRC_URI:append:zynqmp = " file://weston.ini" | ||
| 4 | 2 | ||
| 5 | do_install:append:zynqmp() { | 3 | do_install:append:zynqmp() { |
| 6 | install -D -p -m0644 ${WORKDIR}/weston.ini ${D}/${sysconfdir}/xdg/weston/weston.ini | 4 | sed -i -e "/^\[core\]/a gbm-format=rgb565" ${D}${sysconfdir}/xdg/weston/weston.ini |
| 7 | } | 5 | } |
