efi: Adjust script to show pre-relocation output on terminal
authorSimon Glass <sjg@chromium.org>
Fri, 10 Mar 2023 20:47:19 +0000 (12:47 -0800)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:53:01 +0000 (13:53 +0100)
When running with video enabled, the pre-relocation output of U-Boot is
currently lost. Add a -serial flag to show it on the terminal.

Signed-off-by: Simon Glass <sjg@chromium.org>
scripts/build-efi.sh

index bc9aeeb..46c2880 100755 (executable)
@@ -96,6 +96,8 @@ run_qemu() {
        fi
        if [[ -n "${serial}" ]]; then
                extra="-display none -serial mon:stdio"
+       else
+               extra="-serial mon:stdio"
        fi
        echo "Running ${qemu}"
        # Use 512MB since U-Boot EFI likes to have 256MB to play with