forked from openembedded/openembedded-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemuppc64: Add a QEMU machine definition for ppc64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#@TYPE: Machine | ||
#@NAME: QEMU PPC64 machine | ||
#@DESCRIPTION: Machine configuration for running a PPC system on QEMU | ||
|
||
require conf/machine/include/qemu.inc | ||
require conf/machine/include/tune-power9.inc | ||
|
||
#TARGET_CC_KERNEL_ARCH = "-mno-spe" | ||
|
||
KERNEL_IMAGETYPE = "vmlinux" | ||
|
||
SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0" | ||
|
||
# For runqemu | ||
QB_SYSTEM_NAME = "qemu-system-ppc64" | ||
QB_MACHINE = "-machine pseries" | ||
QB_CPU = "-cpu POWER9" | ||
QB_KERNEL_CMDLINE_APPEND = "console=tty console=ttyS0" | ||
QB_OPT_APPEND = "-show-cursor" | ||
QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd" | ||
# Add the virtio RNG | ||
QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" | ||
# Virtio Networking support | ||
QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no" | ||
# Virtio serial console | ||
QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon" | ||
QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" | ||
|
||
#prelink broken on ppc64 | ||
#USER_CLASSES_remove = "image-prelink" | ||
#IMAGE_PREPROCESS_COMMAND_remove = "prelink_image;" |