From 04b8f78cb9a8e4c75f1e1f75de9ac1ae63e7bf37 Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Wed, 15 Nov 2023 10:44:05 +0100 Subject: [PATCH] dcu: imrove msg on missing cbfstool Signed-off-by: Maciej Pijanowski --- README.md | 2 +- dcu | 7 ++++--- src/bashly.yml | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c78984a..a06ab8b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Following packages must be installed: * `imagemagick` (for `convert` command) * `util-linux` (for `uuidparse` command) -* [coreboot's 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. diff --git a/dcu b/dcu index 2360fbd..76c0a58 100755 --- a/dcu +++ b/dcu @@ -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 diff --git a/src/bashly.yml b/src/bashly.yml index cd8f297..fcae62e 100644 --- a/src/bashly.yml +++ b/src/bashly.yml @@ -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"