mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
This defconfig enables EDK2 UEFI firmware and grub2 x86_64-efi boot of a Linux Kernel in QEMU virt machine. Signed-off-by: Scott Fan <fancp2007@gmail.com> [Julien: - add .in suffix to genimage.cfg and grub.cfg template file names - change UUID_TMP template variable to %PARTUUID% - use human readable partition-type-uuid in genimage.cfg.in - break long qemu-system-x86_64 command line in readme.txt - add "-serial stdio" in readme.txt qemu command line for CI ] Signed-off-by: Julien Olivain <ju.o@free.fr>
12 lines
277 B
Bash
Executable File
12 lines
277 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -u
|
|
set -e
|
|
|
|
# Add a console on tty1
|
|
if [ -e "${TARGET_DIR}/etc/inittab" ]; then
|
|
grep -qE '^tty1::' "${TARGET_DIR}/etc/inittab" || \
|
|
sed -i '/GENERIC_SERIAL/a\
|
|
tty1::respawn:/sbin/getty -L tty1 0 vt100 # QEMU graphical window' "${TARGET_DIR}/etc/inittab"
|
|
fi
|