Files
meta-riscv/conf/machine/riscv32.conf
Khem Raj b7526a3e22 risc-v: Fix packagegroup dependencies for no clang
clang is not yet supported and when meta-clang is in
layermix things start to fail.

This patch patches by assuming the dependencies
and later adding them to bad recommendations so
they are dropped from runtime deps too

might not work with with dpkg backend

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 18:08:30 -07:00

44 lines
1.2 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
PREFERRED_VERSION_qemu = "${QEMUVERSION}"
PREFERRED_VERSION_qemu-native = "${QEMUVERSION}"
PREFERRED_VERSION_nativesdk-qemu = "${QEMUVERSION}"
GDBVERSION = "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"
BAD_RECOMMENDATIONS += "\
libcxx-dev \
libcxx-staticdev \
compiler-rt-dev \
compiler-rt-staticdev \
"
ASSUME_PROVIDED += "\
libcxx-dev \
libcxx-staticdev \
compiler-rt-dev \
compiler-rt-staticdev \
"