blob: 09a6ea0e01c26c8c34056fe8ca19415fecf23d05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Compile test builder for the IPU3 IPA
#
source ./common.sh
# IPU3 IPA builds against a libcamera BUILD directory...
LIBCAMERA_BUILD=${1:-"$(builddir unit-tests)"}
LIBCAMERA=$LIBCAMERA_BUILD/source/
IPU3IPA=$(srcdir ipu3-ipa)
IPU3IPA_REPO=https://git.libcamera.org/libcamera/ipu3-ipa.git
check_version $LIBCAMERA $ID
echo "Build latest $ID for libcamera at version : " $(libcamera_version "$LIBCAMERA")
#### Building and compiling
function update_sources() {
if [ ! -d $IPU3IPA ]; then
git clone $IPU3IPA_REPO $IPU3IPA
fi
git -C $IPU3IPA pull --ff-only
}
function build() {
echo Using: $LIBCAMERA_BUILD
LIBCAMERA_BUILD=$(realpath -L $LIBCAMERA_BUILD/meson-uninstalled/)
# Always build from clean
BUILDDIR="$(builddir $ID)"
rm -fr "$BUILDDIR"
PKG_CONFIG_PATH=$LIBCAMERA_BUILD \
meson "$BUILDDIR" "$IPU3IPA"
ninja -C "$BUILDDIR"
ret=$?
return $ret
}
logfile=$(log_filename $ID)
update_sources > $logfile
build >> $logfile
pass_fail $? "$ID"
completed $ID
|