diff options
author | Ross Burton <ross.burton@intel.com> | 2013-02-05 14:00:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-22 06:09:22 -0800 |
commit | 4f977ab120d8e8cb2601e42f200a76eefd169ef4 (patch) | |
tree | 8cf51527f6bc4bf43901a14e16fa8c3cca5d8e2b | |
parent | f017eb38bbca4af106ed359adfbbd4bfdf9bad5c (diff) | |
download | poky-4f977ab120d8e8cb2601e42f200a76eefd169ef4.tar.gz |
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.
(From OE-Core rev: 4b46149df5f123c7acf4699dbc552cc0e07f709a)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/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 3c29f8b7bf..90d6f56746 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" | |||
7 | 7 | ||
8 | SRC_URI = "file://xorg.conf" | 8 | SRC_URI = "file://xorg.conf" |
9 | 9 | ||
10 | CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf" | 10 | CONFFILES_${PN} = "${sysconfdir}/X11/xorg.conf" |
11 | 11 | ||
12 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
13 | ALLOW_EMPTY_${PN} = "1" | ||
13 | 14 | ||
14 | do_install () { | 15 | do_install () { |
15 | install -d ${D}/${sysconfdir}/X11 | 16 | if test -s ${WORKDIR}/xorg.conf; then |
16 | install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/ | 17 | install -d ${D}/${sysconfdir}/X11 |
18 | install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/ | ||
19 | fi | ||
17 | } | 20 | } |
18 | |||