aboutsummaryrefslogtreecommitdiff
path: root/projects/depthcharge/depthcharge-helper
diff options
context:
space:
mode:
authorSwift Geek <swiftgeek@gmail.com>2018-11-24 04:38:17 +0000
committerGogs <gogitservice@gmail.com>2018-11-24 04:38:17 +0000
commit76569363b59f21adf09e812afb45c51c69c31e4b (patch)
treea0b262f862a1d23d76ed823b29716929fbd88305 /projects/depthcharge/depthcharge-helper
parenta6fcd6bdd8d352137733cf36943d495733edb201 (diff)
parent84c7f3d68de6f4e882c1c4a1666e6807cfd7a7e0 (diff)
downloadlibrebootfr-76569363b59f21adf09e812afb45c51c69c31e4b.tar.gz
librebootfr-76569363b59f21adf09e812afb45c51c69c31e4b.zip
Merge branch 'depthcharge-libpayload' of and_who/libreboot into master
Diffstat (limited to 'projects/depthcharge/depthcharge-helper')
-rwxr-xr-xprojects/depthcharge/depthcharge-helper20
1 files changed, 20 insertions, 0 deletions
diff --git a/projects/depthcharge/depthcharge-helper b/projects/depthcharge/depthcharge-helper
index 440fe0fe..d389fb97 100755
--- a/projects/depthcharge/depthcharge-helper
+++ b/projects/depthcharge/depthcharge-helper
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
+# Copyright (C) 2018 Andrew Robbins <contact@andrewrobbins.info>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -24,3 +25,22 @@ depthcharge_arch() {
depthcharge_device() {
arguments_concat "_" "$@"
}
+
+depthcharge_libpayload_build_path() {
+ local project='libpayload'
+ local build_path="$root/$BUILD/$project"
+
+ local argument
+
+ for argument in "$@"; do
+ build_path="$build_path-$argument"
+
+ if [[ -d $build_path ]]; then
+ break
+ else
+ continue
+ fi
+ done
+
+ printf '%s\n' "$build_path"
+}