Files
meta-riscv/conf/machine/riscv32.conf
Khem Raj 80e2da578c machine: Add machines for riscv32 baremetal
- Organize the machines a bit better
- Add baremetal machine configs for 32/64 bit
  so we can generate SDKs for zephyr and other RTOSes
- Fixup tune files to match BSP layer norms

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 14:57:23 -07:00

34 lines
1.0 KiB
Plaintext

#@TYPE: Machine
#@NAME: generic riscv32 baremetal machine
#@DESCRIPTION: Machine configuration for running a generic riscv32
DEFAULTTUNE = "riscv32"
require conf/machine/include/qemu.inc
require conf/machine/include/tune-riscv.inc
MACHINE_ARCH = "riscv32"
PREFERRED_VERSION_qemu = "${QEMUVERSION}"
PREFERRED_VERSION_qemu-native = "${QEMUVERSION}"
PREFERRED_VERSION_nativesdk-qemu = "${QEMUVERSION}"
GDBVERSION = "riscv"
QEMUVERSION = "riscv"
# qemuboot options
QB_MACHINE = "-machine virt"
QB_DEFAULT_KERNEL = "bbl"
QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@"
QB_ROOTFS_OPT = "-drive file=@ROOTFS@,format=raw,id=hd0 -device virtio-blk-device,drive=hd0"
QB_SLIRP_OPT = "-netdev user,id=net0,hostfwd=tcp::22222-:22"
# Prelink does not yet work
USER_CLASSES_remove = "image-prelink"
# To support baremetal ld complains
# /opt/riscv32/sysroots/x86_64-becsdk-linux/usr/libexec/riscv32-bec-elf/gcc/riscv32-bec-elf/7.3.0/real-ld: unrecognized option '--hash-style=gnu'
#TARGET_LINK_HASH_STYLE = ""
LINKER_HASH_STYLE = ""
TCLIBC = "baremetal"