[oe-commits] Ross Burton : xserver-xf86-config: don't ship empty xorg.conf

git at git.openembedded.org git at git.openembedded.org
Fri Feb 22 14:09:19 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 4b46149df5f123c7acf4699dbc552cc0e07f709a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4b46149df5f123c7acf4699dbc552cc0e07f709a

Author: Ross Burton <ross.burton at intel.com>
Date:   Tue Feb  5 14:00:40 2013 +0000

xserver-xf86-config: don't ship empty xorg.conf

Many hardware platforms can autodetect their hardware and don't need a xorg.conf
at all.  Make it easy for BSPs to not ship a xorg.conf by not installing empty
xorg.conf files.

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 .../xorg-xserver/xserver-xf86-config_0.1.bb        |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb
index 3c29f8b..90d6f56 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bb
@@ -7,12 +7,14 @@ PR = "r11"
 
 SRC_URI = "file://xorg.conf"
 
-CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf"
+CONFFILES_${PN} = "${sysconfdir}/X11/xorg.conf"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
+ALLOW_EMPTY_${PN} = "1"
 
 do_install () {
-	install -d ${D}/${sysconfdir}/X11
-	install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
+	if test -s ${WORKDIR}/xorg.conf; then
+		install -d ${D}/${sysconfdir}/X11
+		install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
+	fi
 }
-





More information about the Openembedded-commits mailing list