From 0466ef18ef6748753b2f205a2169e85c73ae2d8e Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sun, 25 Dec 2016 21:26:57 +0100 Subject: libreboot: Export verified boot keys path, with fallback Signed-off-by: Paul Kocialkowski --- libreboot | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libreboot') 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" -- cgit v1.2.3-70-g09d2