1# $NetBSD: riscv32.conf,v 1.1 2023/05/07 12:41:46 skrll Exp $
2# RISCV32 customization script used by mkimage
3#
4board=riscv64
5console=fb
6resize=true
7gpt=true
8#gpt_hybrid=true
9gpt_create_flags="-p 16"
10gpt_label_boot="EFI"
11gpt_label_ffs="netbsd-root"
12
13. ${DIR}/conf/riscv.conf
14
15kernel_GENERIC="GENERIC"
16
17make_label() {
18	make_label_riscv
19}
20
21make_fstab() {
22	make_fstab_riscv
23}
24
25customize() {
26	customize_riscv
27	cat >> "${mnt}/etc/rc.conf" << EOF
28mdnsd=YES
29devpubd=YES
30wscons=\$(dev_exists wsdisplay0)
31dhcpcd_flags="\$dhcpcd_flags -b"
32EOF
33}
34
35populate_common() {
36	# Install kernel to root of the FFS partition
37	${GZIP_CMD} -dc ${kernel}/netbsd-${kernel_GENERIC}.gz > "${mnt}/netbsd"
38	echo "./netbsd type=file uname=root gname=wheel mode=0755" \
39	    >> "$tmp/selected_sets"
40}
41
42
43populate() {
44	# common configuration
45	populate_common
46}
47