xref: /f-stack/freebsd/mips/mediatek/std.mediatek (revision 22ce4aff)
1#
2# std.mtk -- Base kernel configuration file for FreeBSD/MIPS Mediatek/Ralink
3# SoCs.
4#
5# This includes all the required drivers for the SoCs.
6#
7# $FreeBSD$
8#
9
10# Include the standard file list for Mediatek SoCs.
11files 		"../mediatek/files.mediatek"
12
13# Building a mips/mipsel kernel
14machine 	mips mipsel
15
16# Little-endian machine
17makeoptions 	MIPS_LITTLE_ENDIAN=defined
18
19# Default kernel load address
20makeoptions 	KERNLOADADDR=0x80001000
21
22# Mediatek/Ralink SoC support depends on FDT (with static DTB for the moment)
23options 	FDT
24options 	FDT_DTB_STATIC
25
26# We rely on INTRNG code
27options 	INTRNG
28options 	MIPS_NIRQ=256
29
30# We rely on NEW_PCIB code
31options 	NEW_PCIB
32
33# Build kernel with gdb(1) debug symbols
34makeoptions 	DEBUG=-g
35
36# Support for DDB and KDB
37options 	DDB
38options 	KDB
39
40# Debugging for use in -current
41options 	INVARIANTS
42options 	INVARIANT_SUPPORT
43options 	WITNESS
44options 	WITNESS_SKIPSPIN
45options 	DEBUG_REDZONE
46options 	DEBUG_MEMGUARD
47
48# For small memory footprints
49options 	VM_KMEM_SIZE_SCALE=1
50
51# General options, including scheduler, etc.
52options 	SCHED_ULE	# ULE scheduler
53options 	INET		# InterNETworking
54#options 	INET6		# IPv6
55options 	PSEUDOFS	# Pseude-filesystem framework
56options 	FFS		# Berkeley Fast Filesystem
57#options 	SOFTUPDATES	# Enable FFS soft updates support
58#options 	UFS_ACL		# Support for access control lists
59#options 	UFS_DIRHASH	# Improve big directory performance
60#options 	MSDOSFS		# Enable support for MSDOS filesystems
61options 	_KPOSIX_PRIORITY_SCHEDULING	# Posix P1003_1B real-time ext.
62
63#
64# Standard drivers section
65#
66# The drivers in the following section are required in order to successfully
67# compile the kernel.
68#
69
70# FDT clock and pinctrl framework
71device 		fdt_clock
72device 		fdt_pinctrl
73
74# UART support
75device 		uart
76
77# loop device support
78device 		loop
79
80# ether device support
81device 		ether
82
83# ether switch support
84device 		etherswitch
85device 		miibus
86device 		mtkswitch
87device 		mdio
88