Files
meta-riscv/conf/machine/freedom-u540.conf
2019-03-21 09:06:06 -07:00

60 lines
1.5 KiB
Plaintext

#@TYPE: Machine
#@NAME: freedom-u540
#@SOC: Freedom U540
#@DESCRIPTION: Machine configuration for the HiFive Unleashed development board
require conf/machine/include/tune-riscv.inc
MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
# This must be vmlinux for bbl to work and Image for openSBI
KERNEL_IMAGETYPE = "Image"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-riscv"
PREFERRED_VERSION_linux-riscv ?= "5.0%"
GDBVERSION = "riscv"
EXTRA_IMAGEDEPENDS += "opensbi"
RISCV_SBI_PLAT = "sifive/fu540"
# When we have better openSBI -> u-boot -> kernel support in released
# versions of u-boot and Linux kernel swap to u-boot binary here.
# RISCV_SBI_PAYLOAD ?= "u-boot-${MACHINE}.bin"
RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
# Override the DTB from the firmware with this one from openSBI
# Use this to add Microsemi Expansion board support
# RISCV_SBI_FDT ?= "HiFiveUnleashed-MicroSemi-Expansion.dtb"
SERIAL_CONSOLES = "115200;ttySIF0"
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
IMAGE_FSTYPES_append = " wic.gz ext4"
# Do not update fstab file when using wic images
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
IMAGE_BOOT_FILES = ""
### wic default support
WKS_FILE_DEPENDS ?= " \
opensbi \
e2fsprogs-native \
bmap-tools-native \
"
WKS_FILE ?= "freedom-u540-opensbi.wks"
BAD_RECOMMENDATIONS += "\
libcxx-dev \
libcxx-staticdev \
compiler-rt-dev \
compiler-rt-staticdev \
"
ASSUME_PROVIDED += "\
libcxx-dev \
libcxx-staticdev \
compiler-rt-dev \
compiler-rt-staticdev \
"