libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 0466ef18ef6748753b2f205a2169e85c73ae2d8e
parent 08f4d448c94904f9193099570345742c7aeff22a
Author: Paul Kocialkowski <contact@paulk.fr>
Date:   Sun, 25 Dec 2016 21:26:57 +0100

libreboot: Export verified boot keys path, with fallback

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Diffstat:
libreboot | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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"