aboutsummaryrefslogtreecommitdiff
path: root/libreboot
diff options
context:
space:
mode:
Diffstat (limited to 'libreboot')
-rwxr-xr-xlibreboot16
1 files changed, 16 insertions, 0 deletions
diff --git a/libreboot b/libreboot
index 9c58618e..fac84e8f 100755
--- a/libreboot
+++ b/libreboot
@@ -129,12 +129,28 @@ libreboot_setup() {
executable="$(basename "$0")"
libreboot_setup_include
+ libreboot_setup_project_actions
requirements 'tar' 'sed' 'gpg' 'sha256sum' 'git'
libreboot_setup_variables
}
+libreboot_setup_project_actions() {
+ local -i project_actions_count="${#PROJECT_ACTIONS_GENERIC[@]}"
+ local -a project_actions
+
+ for ((i=0; i<"${project_actions_count}"; i++)); do
+ project_actions+=("${PROJECT_ACTIONS_GENERIC[i]}")
+
+ if [[ "${PROJECT_ACTIONS_GENERIC[i]}" == !(usage|clean) ]]; then
+ project_actions+=("${PROJECT_ACTIONS_GENERIC[i]/%/_check}")
+ fi
+ done
+
+ PROJECT_ACTIONS=("${PROJECT_ACTIONS_HELPERS[@]}" "${project_actions[@]}")
+}
+
libreboot_setup_include() {
local libs_path="${root}/libs"
local conf_path