[oe] [PATCH 08/15] meta-installer: add xserver-xf86-config bbappend

Hongxu Jia hongxu.jia at windriver.com
Thu Nov 23 12:09:08 UTC 2017


Tweak display rate from "640x480" to "1024x768". The xorg.conf
is already overridden by qemux86-64 in oe-core, so we have to
use sed to do the modification.

The bbappend works only if DISTRO = "anaconda".

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend            | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend

diff --git a/meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000..5447273
--- /dev/null
+++ b/meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -0,0 +1,12 @@
+do_install_prepend_qemux86-64_anaconda () {
+    if test -s ${WORKDIR}/xorg.conf; then
+        sed -i 's/Modes *"640x480"/Modes    "1024x768"/g' ${WORKDIR}/xorg.conf
+    fi
+}
+
+do_install_prepend_qemux86_anaconda () {
+    if test -s ${WORKDIR}/xorg.conf; then
+        sed -i 's/Modes *"640x480"/Modes    "1024x768"/g' ${WORKDIR}/xorg.conf
+    fi
+}
+
-- 
2.8.1




More information about the Openembedded-devel mailing list