Skip to content

Commit

Permalink
dcu: imrove msg on missing cbfstool
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Pijanowski <[email protected]>
  • Loading branch information
macpijan committed Nov 15, 2023
1 parent 2c502f4 commit 04b8f78
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Following packages must be installed:

* `imagemagick` (for `convert` command)
* `util-linux` (for `uuidparse` command)
* [coreboot's cbfstool](<https://github.com/coreboot/coreboot/tree/master/util/cbfstool>
* [coreboot's cbfstool](https://github.com/coreboot/coreboot/tree/master/util/cbfstool)

The script will exit with an error if any of above are not present.

Expand Down
7 changes: 4 additions & 3 deletions dcu
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,10 @@ parse_requirements() {
else
printf "missing dependency: cbfstool\n" >&2
printf "%s\n" "You can build one from source code:
https://github.com/coreboot/coreboot/tree/main/util/cbfstool
Or download pre-built version:
https://dl.3mdeb.com/open-source-firmware/utilities/cbfstool
https://github.com/Dasharo/dcu#compiling-cbfstool
Or download and install pre-built version with following commands:
sudo wget -O /usr/local/bin/cbfstool https://dl.3mdeb.com/open-source-firmware/utilities/cbfstool
sudo chmod +x /usr/local/bin/cbfstool
" >&2
exit 1
fi
Expand Down
7 changes: 4 additions & 3 deletions src/bashly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ dependencies:
command: [cbfstool]
help: >
You can build one from source code:
https://github.com/coreboot/coreboot/tree/main/util/cbfstool
Or download pre-built version:
https://dl.3mdeb.com/open-source-firmware/utilities/cbfstool
https://github.com/Dasharo/dcu#compiling-cbfstool
Or download and install pre-built version with following commands:
sudo wget -O /usr/local/bin/cbfstool https://dl.3mdeb.com/open-source-firmware/utilities/cbfstool
sudo chmod +x /usr/local/bin/cbfstool
uuidparse:
command: [uuidparse]
help: "Please install util-linux package"
Expand Down

0 comments on commit 04b8f78

Please sign in to comment.