From 8057734f3df6037a841acfd02fc3ac0f8fc3733c Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Fri, 22 Nov 2024 16:08:41 +0100 Subject: [PATCH] fix: add recursive tafkile task Signed-off-by: AtomicFS --- Taskfile.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 894a430..a098014 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -22,10 +22,31 @@ tasks: status: - test -d output-coreboot-example + #============================================= + # Run coreboot with LinuxBoot example in QEMU + #============================================= + + qemu:run-coreboot: + desc: Run the coreboot in QEMU + interactive: true + cmds: + - qemu-system-x86_64 -bios output-linuxboot-coreboot/coreboot.rom -serial stdio -M q35 + #================================= # coreboot with LinuxBoot example #================================= + build:coreboot-linuxboot:recursive: + desc: Build coreboot with linux and uroot with recursion + cmds: + - firmware-action build --config='{{.CONFIG}}' --target='{{.TARGET}}' --recursive {{.CLI_ARGS}} + vars: + CONFIG: coreboot-linuxboot-example.json + TARGET: coreboot-example-with-linuxboot + requires: + vars: [CONFIG, TARGET] + + build:coreboot-linuxboot: desc: Build coreboot with linux and uroot deps: @@ -82,8 +103,3 @@ tasks: generates: - output-linuxboot-uroot/initramfs.linux_amd64.cpio - qemu:run-coreboot: - desc: Run the coreboot in QEMU - interactive: true - cmds: - - qemu-system-x86_64 -bios output-linuxboot-coreboot/coreboot.rom -serial stdio -M q35