/
freedom-u540.conf
49 lines (34 loc) · 1.23 KB
/
freedom-u540.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#@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"
KERNEL_IMAGETYPE = "vmlinux"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-riscv"
PREFERRED_VERSION_linux-riscv ?= "4.15%"
GDBVERSION = "riscv"
QEMUVERSION = "riscv"
EXTRA_IMAGEDEPENDS += "riscv-pk"
SERIAL_CONSOLE = "115200 console"
MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
# The following options can be used to build images that use initramfs,
# since the SPI controller driver currently still has an issue, using this
# might speed up your boot process signifcantly
#
#RISCV_BBL_PAYLOAD ?= "${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin"
#INITRAMFS_IMAGE_BUNDLE = "1"
#INITRAMFS_IMAGE = "riscv-initramfs-image"
#KERNEL_INITRAMFS = '-initramfs'
RISCV_BBL_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
IMAGE_FSTYPES_append = " wic.gz"
# 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 ?= " \
riscv-pk \
e2fsprogs-native \
bmap-tools-native \
"
WKS_FILE ?= "freedom-u540-bbl.wks"