diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-12-25 21:26:57 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2017-01-15 14:24:46 +0000 |
commit | 0466ef18ef6748753b2f205a2169e85c73ae2d8e (patch) | |
tree | 39738b2f389e2ec19b256368717ec998d767eb90 /libreboot | |
parent | 08f4d448c94904f9193099570345742c7aeff22a (diff) | |
download | librebootfr-0466ef18ef6748753b2f205a2169e85c73ae2d8e.tar.gz librebootfr-0466ef18ef6748753b2f205a2169e85c73ae2d8e.zip |
libreboot: Export verified boot keys path, with fallback
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'libreboot')
-rwxr-xr-x | libreboot | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -65,6 +65,7 @@ libreboot_usage() { printf " PROJECTS_FORCE - Projects to always perform actions for\n" >&2 printf " TOOLS_FORCE - Tools to always perform actions for\n" >&2 printf " RELEASE_KEY - GPG key to use for release\n" >&2 + printf " VBOOT_KEYS_PATH - Path to the vboot keys\n" >&2 printf " TASKS - Number of simultaneous tasks to run\n" >&2 printf " VERSION - Version string to use\n" >&2 @@ -189,6 +190,7 @@ libreboot_setup_include() { } libreboot_setup_variables() { + local vboot_tools_path=$( project_install_path "vboot" "tools" ) local version_path="$root/$DOTVERSION" local epoch_path="$root/$DOTEPOCH" @@ -223,6 +225,11 @@ libreboot_setup_variables() { fi fi + if [ -z "$VBOOT_KEYS_PATH" ] && [ -d "$vboot_tools_path/devkeys/" ] + then + VBOOT_KEYS_PATH="$vboot_tools_path/devkeys/" + fi + if [ -z "$EDITOR" ] then EDITOR="nano" |