diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2021-07-08 19:16:17 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-07-19 09:20:52 +0000 |
commit | f72568cad31092df5c3bc7a87536b84ab178cfa7 (patch) | |
tree | 8c97e7579a7fcdd717708fbf42fdf6c328d44a80 /payloads/external/FILO/Makefile | |
parent | 750200020ab82f3be2bfda959bd3280a46b7a1cc (diff) |
payloads: FILO: Hook up autoboot options
FILO allows to configure a line to autoboot. Hook this up into
coreboot’s build system.
TEST=Configure coreboot for QEMU i440fx with FILO as payload and
configure:
CONFIG_FILO_MASTER=y
CONFIG_FILO_USE_AUTOBOOT=y
CONFIG_FILO_AUTOBOOT_FILE="hda1:/vmlinuz root=/dev/sda1 console=tty0 console=ttyS0,115200 initrd=hda1:/initrd.img"
CONFIG_FILO_AUTOBOOT_DELAY=5
Boot Debian image with:
qemu-system-x86_64 -bios /dev/shm/coreboot/build/coreboot.rom -L /dev/shm -enable-kvm -smp cpus=2 -m 1G -hda /dev/shm/debian-32.img -serial stdio -net nic -net user,hostfwd=tcp::22222-:22
Change-Id: Id167e9a144bf466da87469108002672b299b702a
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56213
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/external/FILO/Makefile')
-rw-r--r-- | payloads/external/FILO/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/payloads/external/FILO/Makefile b/payloads/external/FILO/Makefile index 90895572a9..e2fec369e8 100644 --- a/payloads/external/FILO/Makefile +++ b/payloads/external/FILO/Makefile @@ -33,6 +33,13 @@ config: libpayload #echo "CONFIG_VGAHOOKS=y" >> filo/.config # This shows how to force a previously set .config option *off* #echo "# CONFIG_SMBIOS is not set" >> filo/.config +ifeq ($(CONFIG_FILO_USE_AUTOBOOT),y) + echo "# CONFIG_USE_GRUB is not set" >> filo/.config + echo "CONFIG_USE_AUTOBOOT=y" >> filo/.config + echo 'CONFIG_AUTOBOOT_FILE="$(CONFIG_FILO_AUTOBOOT_FILE)"' >> filo/.config + echo "CONFIG_AUTOBOOT_DELAY=$(CONFIG_FILO_AUTOBOOT_DELAY)" >> filo/.config +endif + $(MAKE) -C filo oldconfig LIBCONFIG_PATH=../../../libpayload filo: config |