freebsd-dev/sys/mips/conf/MT7621_FDT
Konstantin Belousov e8643b01e6 Modularize xz.
Embedded lzma decompression library becomes a module usable by other
consumers, in addition to geom_uzip.

Most important code changes are
- removal of XZ_DEC_SINGLE define, we need the code to work
  with XZ_DEC_DYNALLOC;
- xz_crc32_init() call is removed from geom_uzip, xz module handles
  initialization on its own.

xz is no longer embedded into geom_uzip, instead the depend line for
the module is provided, and corresponding kernel option is added to
each MIPS kernel config file using geom_uzip.

The commit also carries unrelated cleanup by removing excess "device geom_uzip"
in places which were missed in r344479.

Reviewed by:	cem, hselasky, ray, slavash (previous versions)
Sponsored by:	Mellanox Technologies
Differential revision:	https://reviews.freebsd.org/D19266
MFC after:	3 weeks
2019-02-26 19:55:03 +00:00

74 lines
1.3 KiB
Plaintext

#
# MT7621_FDT -- Kernel configuration file for FreeBSD/MIPS MT7621 SoC
#
# This includes all the configurable parts of the kernel.
#
# $FreeBSD$
#
#NO_UNIVERSE
#
# FDT_DTS_FILE should be modified to suit the target board type.
#
#makeoptions FDT_DTS_FILE=WITI.dts
# Start with a base configuration
include "../mediatek/std.mediatek"
ident MT7621
cpu CPU_MIPS1004K
# Don't build any modules by default
makeoptions MODULES_OVERRIDE=""
# Default rootfs device configuration, should be changed to suit target board
options ROOTDEVNAME=\"ufs:md0.uzip\"
# Support geom_uzip(4) compressed disk images
device xz
options GEOM_UZIP
# Support md(4) and md-based rootfs
device md
options MD_ROOT
# Interrupt controller support
device mtk_intr_gic
# UART device support is compiled in when uart_ns8250 is selected (default)
# SPI and SPI flash support
device mtk_spi_v2
device spibus
device mx25l
# GPIO and gpioled support
device mtk_gpio_v2
device gpio
device gpioled
# PCI support
device pci
# USB (ehci, ohci) support
device usb
device xhci
# USB umass(4) storage and da(4) support
device umass
device da
# CAM support, required if umass(4) is enabled above
device pass
device scbus
# Ethernet, BPF and bridge support
device rt
device bpf
device if_bridge
# Extres
options EXT_RESOURCES
device clk