From 97fc7f6b3d2933b404988e5ea68aadf7745419f1 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Sat, 17 Sep 2022 15:49:01 +0300 Subject: [PATCH] =?UTF-8?q?feat(qemu):=20=E2=9C=A8=20Generate=20QEMU=20log?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Makefile.toml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dd25b75..a08ac6a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ target/ kernel8* .gdb_history +qemu.log diff --git a/Makefile.toml b/Makefile.toml index 28d0228..b71e47c 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -103,7 +103,8 @@ dependencies = ["build-qemu", "kernel-binary"] env = { "TARGET_FEATURES" = "${QEMU_FEATURES}" } script = [ "echo Run QEMU ${QEMU_OPTS} ${QEMU_RUNNER_OPTS} with ${KERNEL_BIN}", - "${QEMU} ${QEMU_OPTS} ${QEMU_RUNNER_OPTS} -dtb ${TARGET_DTB} -kernel ${KERNEL_BIN}" + "rm -f qemu.log", + "${QEMU} ${QEMU_OPTS} ${QEMU_RUNNER_OPTS} -dtb ${TARGET_DTB} -kernel ${KERNEL_BIN} 2>&1 | tee qemu.log" ] [tasks.expand]