Skip to content

Commit

Permalink
fix: improve Taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicFS committed Nov 19, 2024
1 parent a96fef6 commit 1b8dc69
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,47 @@ version: '3'
tasks:
build-template:
cmds:
- firmware-action build --config='{{.CONFIG}}' --target='{{.TARGET}}' --interactive
- firmware-action build --config='{{.CONFIG}}' --target='{{.TARGET}}' {{.CLI_ARGS}}
requires:
vars: [CONFIG, TARGET]

# coreboot example

build:coreboot:
desc: Build coreboot hello world example
cmds:
- task: build-template
vars:
CONFIG: coreboot-example.json
TARGET: coreboot-example
status:
- test -d output-coreboot-example

# coreboot with LinuxBoot example

build:coreboot-linuxboot:
desc: Build coreboot with linux and uroot
deps:
- task: build:linux-with-uroot
cmds:
- task: build-template
vars:
CONFIG: coreboot-linuxboot-example.json
TARGET: coreboot-example-with-linuxboot
status:
- test -d output-linuxboot-coreboot

build:linux-with-uroot:
desc: Build linux with uroot
deps:
- task: build:uroot
cmds:
- task: build-template
vars:
CONFIG: coreboot-linuxboot-example.json
TARGET: linux-example-with-uroot
status:
- test -d output-linuxboot-linux

build:uroot:
desc: Build uroot
Expand All @@ -39,6 +53,8 @@ tasks:
vars:
CONFIG: coreboot-linuxboot-example.json
TARGET: uroot-example
status:
- test -d output-linuxboot-uroot

qemu:run-coreboot:
cmds:
Expand Down

0 comments on commit 1b8dc69

Please sign in to comment.