# Kernel Configs Used for ARM Tests
#
# Build Linux:
#
#     export ARCH=arm
#     export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
#     make mrproper
#     make tinyconfig
#     cat arm_config.txt generic_config.txt >> .config
#     make menuconfig  # Exit and save.
#     make -j$(($(nproc) * 2 + 1))
#
# Cross-compile u-root:
#
#     go get github.com/u-root/u-root
#     GOARCH=arm u-root -format=cpio -build=bb
#
# Test:
#
# 1. `qemu-system-arm -machine virt -kernel arch/arm/boot/zImage -initrd /tmp/initramfs.linux_arm.cpio -nographic -append 'console=ttyAMA0'`
# 2. Exit with CTRL-A + X

# Config settings specific to ARM hardware:

CONFIG_MMU=y
CONFIG_ARCH_MULTIPLATFORM=y
CONFIG_ARCH_MULTI_V7=y
CONFIG_ARCH_VIRT=y
CONFIG_ARM_AMBA=y

# Minimal kernel config needed for Go and serial port:

CONFIG_BINFMT_ELF=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_COMPAT_32BIT_TIME=y
CONFIG_DEVTMPFS=y
CONFIG_EPOLL=y
CONFIG_FUTEX=y
CONFIG_PRINTK=y
CONFIG_PROC_FS=y
CONFIG_TTY=y
CONFIG_SERIAL_AMBA_PL011=y
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y

# Add /dev/mem for io command:

CONFIG_DEVMEM=y
