riscv32.conf revision 1.1
11.1Sskrll# $NetBSD: riscv32.conf,v 1.1 2023/05/07 12:41:46 skrll Exp $
21.1Sskrll# RISCV32 customization script used by mkimage
31.1Sskrll#
41.1Sskrllboard=riscv64
51.1Sskrllconsole=fb
61.1Sskrllresize=true
71.1Sskrllgpt=true
81.1Sskrll#gpt_hybrid=true
91.1Sskrllgpt_create_flags="-p 16"
101.1Sskrllgpt_label_boot="EFI"
111.1Sskrllgpt_label_ffs="netbsd-root"
121.1Sskrll
131.1Sskrll. ${DIR}/conf/riscv.conf
141.1Sskrll
151.1Sskrllkernel_GENERIC="GENERIC"
161.1Sskrll
171.1Sskrllmake_label() {
181.1Sskrll	make_label_riscv
191.1Sskrll}
201.1Sskrll
211.1Sskrllmake_fstab() {
221.1Sskrll	make_fstab_riscv
231.1Sskrll}
241.1Sskrll
251.1Sskrllcustomize() {
261.1Sskrll	customize_riscv
271.1Sskrll	cat >> "${mnt}/etc/rc.conf" << EOF
281.1Sskrllmdnsd=YES
291.1Sskrlldevpubd=YES
301.1Sskrllwscons=\$(dev_exists wsdisplay0)
311.1Sskrlldhcpcd_flags="\$dhcpcd_flags -b"
321.1SskrllEOF
331.1Sskrll}
341.1Sskrll
351.1Sskrllpopulate_common() {
361.1Sskrll	# Install kernel to root of the FFS partition
371.1Sskrll	${GZIP_CMD} -dc ${kernel}/netbsd-${kernel_GENERIC}.gz > "${mnt}/netbsd"
381.1Sskrll	echo "./netbsd type=file uname=root gname=wheel mode=0755" \
391.1Sskrll	    >> "$tmp/selected_sets"
401.1Sskrll}
411.1Sskrll
421.1Sskrll
431.1Sskrllpopulate() {
441.1Sskrll	# common configuration
451.1Sskrll	populate_common
461.1Sskrll}
47