diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-27 14:18:05 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-27 14:18:05 +0100 |
commit | e08ab163a3006d50f930f0c36aaab9ec4b87b917 (patch) | |
tree | 7875b285b998ff9f272f1b037c1a64c20776b748 | |
parent | 1f3b00602751ffe56d089cb215c8d6398e1cd786 (diff) |
build-matrix: Use src dir simple-cam
Use the source directory for storing the sources of simple-cam
when build testing it against each compiler.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rwxr-xr-x | 10-build-matrix.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/10-build-matrix.sh b/10-build-matrix.sh index d022f13..e5dd618 100755 --- a/10-build-matrix.sh +++ b/10-build-matrix.sh @@ -87,10 +87,10 @@ function build_simple_cam() { CC="$1" CXX="$2" - SIMPLE_CAM=./simple-cam + SIMPLE_CAM=$(srcdir simple-cam) if [ ! -d $SIMPLE_CAM ]; then - git clone https://git.libcamera.org/libcamera/simple-cam.git + git clone https://git.libcamera.org/libcamera/simple-cam.git $SIMPLE_CAM fi echo Using: $LIBCAMERA_BUILD @@ -111,7 +111,7 @@ function build_simple_cam() { ninja -C "$BUILDDIR" ret=$? - cd .. + cd - return $ret } |