github.com/shaardie/u-root@v4.0.1-0.20190127173353-f24a1c26aa2e+incompatible/configs/amd64_config.txt (about)

     1  # Kernel Configs Used for amd64 Tests
     2  #
     3  # Build Linux:
     4  #
     5  #     make mrproper
     6  #     make tinyconfig
     7  #     cat amd64_config.txt generic_config.txt >> .config
     8  #     make menuconfig  # Exit and save.
     9  #     make -j$(($(nproc) * 2 + 1))
    10  #
    11  # Build u-root:
    12  #
    13  #     go get github.com/u-root/u-root
    14  #     u-root -format=cpio -build=bb
    15  #
    16  # Test:
    17  #
    18  # 1. `qemu-system-x86_64 -kernel arch/x86_64/boot/bzImage -initrd /tmp/initramfs.linux_amd64.cpio -nographic -append 'earlyprintk=ttyS0 console=ttyS0'`
    19  # 2. Exit with CTRL-A + X
    20  
    21  # Minimal kernel config needed for Go and serial port:
    22  
    23  CONFIG_64BIT=y
    24  CONFIG_BINFMT_ELF=y
    25  CONFIG_BLK_DEV_INITRD=y
    26  CONFIG_DEVTMPFS=y
    27  CONFIG_EARLY_PRINTK=y
    28  CONFIG_EPOLL=y
    29  CONFIG_FUTEX=y
    30  CONFIG_PRINTK=y
    31  CONFIG_PROC_FS=y
    32  CONFIG_SERIAL_8250=y
    33  CONFIG_SERIAL_8250_CONSOLE=y
    34  CONFIG_TTY=y
    35  
    36  # Add /dev/port for io command:
    37  
    38  CONFIG_PCI=y
    39  CONFIG_DEVPORT=y
    40  
    41  # For the kernel doing the kexec'ing:
    42  
    43  CONFIG_CRYPTO=y
    44  CONFIG_KEXEC=y
    45  CONFIG_KEXEC_FILE=y
    46  
    47  # For the kernel being kexec'ed:
    48  
    49  CONFIG_RELOCATABLE=y