mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f017eb38bb
commit
4f977ab120
@@ -7,12 +7,14 @@ PR = "r11"
|
|||||||
|
|
||||||
SRC_URI = "file://xorg.conf"
|
SRC_URI = "file://xorg.conf"
|
||||||
|
|
||||||
CONFFILES_${PN} += "${sysconfdir}/X11/xorg.conf"
|
CONFFILES_${PN} = "${sysconfdir}/X11/xorg.conf"
|
||||||
|
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
ALLOW_EMPTY_${PN} = "1"
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}/${sysconfdir}/X11
|
if test -s ${WORKDIR}/xorg.conf; then
|
||||||
install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
|
install -d ${D}/${sysconfdir}/X11
|
||||||
|
install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user