1# $NetBSD: std.generic_v5,v 1.1 2025/10/09 06:15:17 skrll Exp $
2#
3# generic_v5 NetBSD/evbarm with FDT support
4
5machine		evbarm arm
6include		"conf/std"
7include		"arch/arm/conf/std.arm"		# arch standard options
8
9options 	EXEC_ELF32
10options 	EXEC_SCRIPT
11
12# Architecture options
13options 	ARM32
14
15options 	ARM_GENERIC_TODR
16options 	ARM_INTR_IMPL="<arch/arm/fdt/fdt_intr.h>"
17options 	DRAM_BLOCKS=256
18options 	EVBARM_BOARDTYPE="evbarm"
19options 	FDT				# Flattened Device Tree support
20options 	FPU_VFP
21options 	MODULAR
22options 	MODULAR_DEFAULT_AUTOLOAD
23options 	PCI_NETBSD_CONFIGURE
24options 	__BUS_SPACE_HAS_STREAM_METHODS
25options 	__HAVE_CPU_UAREA_ALLOC_IDLELWP
26options 	__HAVE_FAST_SOFTINTS		# should be in types.h
27options 	__HAVE_GENERIC_START
28options 	__HAVE_GENERIC_CPU_INITCLOCKS
29options 	__HAVE_PCI_CONF_HOOK
30options 	__HAVE_PCI_MSI_MSIX
31
32makeoptions	BOARDMKFRAG="${THISARM}/conf/mk.generic"
33
34# initrd support
35options 	MEMORY_DISK_HOOKS
36options 	MEMORY_DISK_DYNAMIC
37pseudo-device 	md
38
39# Prevent the addition of a command line -DKERNEL_BASE_VOFFSET= as it
40# is done at runtime.
41makeoptions	KERNEL_VOFFSET_RUNTIME=1
42
43# The physical address is chosen by u-boot and determined by armv6_start.S.
44# The 64 byte offset is due to u-boot header.
45makeoptions	KERNEL_BASE_PHYS="0x00000040"
46makeoptions	KERNEL_BASE_VIRT="0xc0000040"
47
48# General options
49options 	CHILD_MAX=1024	# 160 is too few
50options 	OPEN_MAX=1024	# 128 is too few
51