diff options
Diffstat (limited to 'yocto-poky/meta/recipes-graphics/x11-common/x11-common_0.1.bb')
-rw-r--r-- | yocto-poky/meta/recipes-graphics/x11-common/x11-common_0.1.bb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/yocto-poky/meta/recipes-graphics/x11-common/x11-common_0.1.bb b/yocto-poky/meta/recipes-graphics/x11-common/x11-common_0.1.bb index 156b32948..6d7c347c0 100644 --- a/yocto-poky/meta/recipes-graphics/x11-common/x11-common_0.1.bb +++ b/yocto-poky/meta/recipes-graphics/x11-common/x11-common_0.1.bb @@ -9,14 +9,21 @@ inherit distro_features_check REQUIRED_DISTRO_FEATURES = "x11" SRC_URI = "file://etc \ + file://Xserver.in \ file://gplv2-license.patch" S = "${WORKDIR}" +PACKAGECONFIG ??= "blank" +# dpms and screen saver will be on only if 'blank' is in PACKAGECONFIG +PACKAGECONFIG[blank] = "" + do_install() { cp -R ${S}/etc ${D}${sysconfdir} + sed -e 's/@BLANK_ARGS@/${@bb.utils.contains('PACKAGECONFIG', 'blank', '', '-s 0 -dpms', d)}/' \ + ${S}/Xserver.in > ${D}${sysconfdir}/X11/Xserver + chmod -R 755 ${D}${sysconfdir} - find ${D}${sysconfdir} -type f -name \*~ -exec rm -rf {} \; } RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xtscal xinit formfactor" |