mirror of
https://git.yoctoproject.org/poky
synced 2026-06-06 14:49:50 +00:00
qemu: replace a gtk wrapper with directly setting environment from runqemu
The wrapper is executed by host bash, and host bash refuses to run when pseudo libc is preloaded via LD_PRELOAD (which is the case when gl is enabled). Only the fontconfig setting is carried over as local testing showed that only that is necessary for the gui to look ok nowadays; adjust further if necessary. (From OE-Core rev: 34f152de14f803fcfe5c92c515bf585838bba10a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1dfa8537a3
commit
276975e4ea
@@ -5,7 +5,3 @@ inherit native
|
||||
EXTRA_OEMAKE:append = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
|
||||
|
||||
LDFLAGS:append = " -fuse-ld=bfd"
|
||||
|
||||
do_install:append() {
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
|
||||
}
|
||||
|
||||
@@ -138,17 +138,6 @@ do_install:append() {
|
||||
}
|
||||
# END of qemu-mips workaround
|
||||
|
||||
make_qemu_wrapper() {
|
||||
gdk_pixbuf_module_file=`pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0`
|
||||
|
||||
for tool in `ls ${D}${bindir}/qemu-system-*`; do
|
||||
create_wrapper $tool \
|
||||
GDK_PIXBUF_MODULE_FILE=$gdk_pixbuf_module_file \
|
||||
FONTCONFIG_PATH=/etc/fonts \
|
||||
GTK_THEME=Adwaita
|
||||
done
|
||||
}
|
||||
|
||||
# Disable kvm/virgl/mesa on targets that do not support it
|
||||
PACKAGECONFIG:remove:darwin = "kvm virglrenderer glx gtk+"
|
||||
PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer glx gtk+"
|
||||
|
||||
@@ -12,10 +12,6 @@ EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}"
|
||||
EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
|
||||
EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
|
||||
|
||||
do_install:append:class-nativesdk() {
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= " \
|
||||
fdt sdl kvm pie \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
|
||||
|
||||
@@ -1369,6 +1369,7 @@ class BaseConfig(object):
|
||||
if self.sdl == True:
|
||||
self.qemu_opt += 'sdl,'
|
||||
elif self.gtk == True:
|
||||
os.environ['FONTCONFIG_PATH'] = '/etc/fonts'
|
||||
self.qemu_opt += 'gtk,'
|
||||
|
||||
if self.gl == True:
|
||||
|
||||
Reference in New Issue
Block a user