mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
build: unify QEMU and gem5 kernel configs! The last one!
Split optional and required kernel configs into separate files. readme: describe how our kernel configs are generated from Buildroot readme: document QEMU `-no-reboot` and speculate gem5 `panic_on_panic` in preparation for some more automated bisection with ktest.
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
# Changes to this file are automatically trigger kernel reconfigures
|
||||
# even without using the linux-reconfigure target.
|
||||
#
|
||||
# Timestamps are used to decide if changes happened or not.
|
||||
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_DYNAMIC_DEBUG=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
@@ -200,22 +195,5 @@ CONFIG_DUMMY_IRQ=m
|
||||
# Like CONFIG_X86_PTDUMP for ARM.
|
||||
CONFIG_ARM64_PTDUMP=y
|
||||
|
||||
## aarch64
|
||||
|
||||
# For some reason not selected by the Buildroot kernel config by default as it was for arm,
|
||||
# and pci modules fail to build. Not that we have PCI working on ARM anyways.
|
||||
CONFIG_PCI=y
|
||||
|
||||
### gem5 aarch64
|
||||
# Minimal options required to run gem5 aarch64 in addition to QEMU's aarch64 setup.
|
||||
# Doing such a minimal boot made the gem5 boot 3x faster on the P51, which is awesome.
|
||||
CONFIG_ATA_PIIX=y
|
||||
CONFIG_PCI_HOST_GENERIC=y
|
||||
|
||||
### qemu aarch64 ext2
|
||||
# Also requires gem5 aarch64 options.
|
||||
# Not needed for initrd / initramfs.
|
||||
CONFIG_VIRTIO_PCI=y
|
||||
|
||||
# For record and replay.
|
||||
CONFIG_8139CP=y
|
||||
25
kernel_config_fragment/min
Normal file
25
kernel_config_fragment/min
Normal file
@@ -0,0 +1,25 @@
|
||||
# This file contains only configs which are required to boot all configurations.
|
||||
|
||||
## gem5 x86
|
||||
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||
|
||||
## qemu aarch64
|
||||
|
||||
# For some reason not selected by the Buildroot kernel config by default as it was for arm,
|
||||
# and pci modules fail to build. Not that we have PCI working on ARM anyways.
|
||||
CONFIG_PCI=y
|
||||
|
||||
## gem5 aarch64
|
||||
|
||||
# Minimal options required to run gem5 aarch64 in addition to QEMU's aarch64 setup.
|
||||
# Doing such a minimal boot made the gem5 boot 3x faster on the P51, which is awesome.
|
||||
CONFIG_ATA_PIIX=y
|
||||
CONFIG_PCI_HOST_GENERIC=y
|
||||
|
||||
## qemu aarch64 ext2
|
||||
|
||||
# Also requires gem5 aarch64 options.
|
||||
# Not needed for initrd / initramfs.
|
||||
CONFIG_VIRTIO_PCI=y
|
||||
Reference in New Issue
Block a user