aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2016-12-25 21:26:57 +0100
committerLeah Rowe <info@minifree.org>2017-01-15 14:24:46 +0000
commit0466ef18ef6748753b2f205a2169e85c73ae2d8e (patch)
tree39738b2f389e2ec19b256368717ec998d767eb90
parent08f4d448c94904f9193099570345742c7aeff22a (diff)
downloadlibrebootfr-0466ef18ef6748753b2f205a2169e85c73ae2d8e.tar.gz
librebootfr-0466ef18ef6748753b2f205a2169e85c73ae2d8e.zip
libreboot: Export verified boot keys path, with fallback
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rwxr-xr-xlibreboot7
1 files changed, 7 insertions, 0 deletions
diff --git a/libreboot b/libreboot
index 31fc04e1..7bef278d 100755
--- a/libreboot
+++ b/libreboot
@@ -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"