mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
musl does not support BIND_LAZY intentionally, which means dlopen will always complain about missing symbols which is what X does when loading graphics drivers, here we preload the needed drivers for all emulator machines if libc is musl Change-Id: I908c94c30db8a5e872922e1a677126d82fa17145 (From OE-Core rev: 92be71296e1b7ed1e6387ae381942072aa3bb4f3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
32 lines
852 B
BlitzBasic
32 lines
852 B
BlitzBasic
SUMMARY = "X.Org X server configuration file"
|
|
HOMEPAGE = "http://www.x.org"
|
|
SECTION = "x11/base"
|
|
LICENSE = "MIT-X"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
PR = "r33"
|
|
|
|
SRC_URI = "file://xorg.conf"
|
|
|
|
SRC_URI_append_libc-musl = "\
|
|
file://10-preload-modules.conf \
|
|
"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
CONFFILES_${PN} = "${sysconfdir}/X11/xorg.conf"
|
|
CONFFILES_${PN}_append_libc-musl = " ${sysconfdir}/X11/xorg.conf.d/10-preload-modules.conf"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
ALLOW_EMPTY_${PN} = "1"
|
|
|
|
do_install () {
|
|
if test -s ${WORKDIR}/xorg.conf; then
|
|
install -d ${D}/${sysconfdir}/X11
|
|
install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/
|
|
fi
|
|
}
|
|
|
|
do_install_append_libc-musl () {
|
|
install -Dm 0644 ${WORKDIR}/10-preload-modules.conf ${D}/${sysconfdir}/X11/xorg.conf.d/10-preload-modules.conf
|
|
}
|