summaryrefslogtreecommitdiff
path: root/01-update-libcamera.sh
blob: c7187485910bd70e4960092ba0478c95d786f7b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# SPDX-License-Identifier: GPL-2.0-or-later

source ./common.sh

REPO=git://linuxtv.org/libcamera.git

LIBCAMERA=${1:-$(srcdir libcamera)}

if [ ! -d $LIBCAMERA ] ;
then
	git clone $REPO $LIBCAMERA
fi

git -C $LIBCAMERA fetch
git -C $LIBCAMERA log --oneline HEAD...origin/master
git -C $LIBCAMERA pull --ff-only

echo "libcamera at version : " $(libcamera_version "$LIBCAMERA")