mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
f2a65bd268
* also add UVESA_MODE variable for easier change of resolution and respect it in QB_KERNEL_CMDLINE_APPEND as well * don't use init script just to call modprobe * I wasn't able to test this all the way with runqemu, because runqemu doesn't work on my system, but I've verified that the right params appear there and that I can easily change UVESA_MODE from conf/local.conf, the modules.d and modprobe.d files look OK: OE qemux86@ ~/build/oe-core/tmp-glibc/deploy/images/qemux86/core-image-sato-qemux86-20170427212613.rootfs $ cat etc/modules-load.d/uvesafb.conf uvesafb OE qemux86@ ~/build/oe-core/tmp-glibc/deploy/images/qemux86/core-image-sato-qemux86-20170427212613.rootfs $ cat etc/modprobe.d/uvesafb.conf options uvesafb mode_option=1600x1200-32 so I'll be able to drop this KERNEL_MODULE_AUTOLOAD + KERNEL_MODULE_PROBECONF from my DISTRO conf. (From OE-Core rev: 3a8613a101aebf4f2a75ea95dac72202bbda8238) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
762 B
PHP
21 lines
762 B
PHP
# For runqemu
|
|
IMAGE_CLASSES += "qemuboot"
|
|
QB_SYSTEM_NAME_x86 = "qemu-system-i386"
|
|
QB_CPU_x86 = "-cpu pentium2"
|
|
QB_CPU_KVM_x86 = "-cpu pentium2"
|
|
|
|
QB_SYSTEM_NAME_x86-64 = "qemu-system-x86_64"
|
|
QB_CPU_x86-64 = "-cpu core2duo"
|
|
QB_CPU_KVM_x86-64 = "-cpu core2duo"
|
|
|
|
QB_AUDIO_DRV = "alsa"
|
|
QB_AUDIO_OPT = "-soundhw ac97,es1370"
|
|
QB_KERNEL_CMDLINE_APPEND = "vga=0 uvesafb.mode_option=${UVESA_MODE} oprofile.timer=1 uvesafb.task_timeout=-1"
|
|
# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
|
|
QB_OPT_APPEND = "-vga vmware -show-cursor -usb -usbdevice tablet -device virtio-rng-pci"
|
|
|
|
KERNEL_MODULE_AUTOLOAD += "uvesafb"
|
|
KERNEL_MODULE_PROBECONF += "uvesafb"
|
|
UVESA_MODE ?= "640x480-32"
|
|
module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}"
|