summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2019-07-22 15:09:37 -0600
committerMartin Roth <martinroth@google.com>2019-08-03 17:11:17 +0000
commitc989e0bd56ae19770af91e30cbbf9dc5c9717da8 (patch)
tree10eeec2bafa01809605e4b4c4c457dc34cddcf4c /util/abuild
parenteaee392cb323e2d4e9e6fd985dda4a0bbbeb5b87 (diff)
downloadcoreboot-c989e0bd56ae19770af91e30cbbf9dc5c9717da8.tar.xz
util/abuild: Use realpath for FAILED_BOARDS/PASSED_BOARDS
The abuild script will `cd` into the build directory. FAILED_BOARDS defaults to a relative path, so it ends up trying to echo into a directory that doesn't exist. If we set the realpath to the file then we can correctly update the failed/passed boards file. BUG=none TEST=make what-jenkins-does and verified there was a failed_boards and passed_boards in coreboot-builds. Change-Id: Ib3af003b090668380a9425583a9f4367023820a6 Signed-off-by: Raul E Rangel <rrangel@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34526 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index b816d3f626..03be0d412e 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -746,13 +746,18 @@ if [ -z "$TARGET" ] || [ "$TARGET" = "/" ]; then
exit 1
fi
+if ! mkdir -p "$TARGET"; then
+ echo "Unable to create build directory"
+ exit 1
+fi
+
customizing=$(echo "$customizing" | cut -c3-)
if [ "$customizing" = "" ]; then
customizing="default configuration"
fi
-FAILED_BOARDS="${TARGET}/failed_boards"
-PASSED_BOARDS="${TARGET}/passing_boards"
+FAILED_BOARDS="$(realpath ${TARGET}/failed_boards)"
+PASSED_BOARDS="$(realpath ${TARGET}/passing_boards)"
if [ "$recursive" = "false" ]; then
rm -f "$FAILED_BOARDS" "$PASSED_BOARDS"