2019-03-04 02:22:55 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-11-12 22:49:43 +11:00
|
|
|
set -e ; set -u
|
|
|
|
|
2019-05-25 02:40:13 +11:00
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
function build
|
|
|
|
{
|
2023-07-03 09:14:22 +11:00
|
|
|
echo "============= $1 =============="
|
2019-05-25 02:40:13 +11:00
|
|
|
curdir=${PWD}
|
|
|
|
cd $1
|
|
|
|
make
|
2019-03-04 02:22:55 +11:00
|
|
|
error=$?
|
2019-05-25 02:40:13 +11:00
|
|
|
cd ${curdir}
|
2019-03-04 02:22:55 +11:00
|
|
|
|
2019-05-25 02:40:13 +11:00
|
|
|
if [ ${error} -ne 0 ]
|
|
|
|
then
|
2023-07-03 09:14:22 +11:00
|
|
|
echo "=== error on $1 = ${error}"
|
2021-04-02 22:09:20 +11:00
|
|
|
exit 1
|
2019-03-04 02:22:55 +11:00
|
|
|
fi
|
2019-05-25 02:40:13 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
|
|
|
build lib
|
|
|
|
build funcs
|
|
|
|
build tools
|
2019-06-05 19:57:39 +11:00
|
|
|
build v4l2
|
2021-04-02 22:09:20 +11:00
|
|
|
build Fonderie
|
2019-05-25 02:40:13 +11:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
2019-03-04 02:22:55 +11:00
|
|
|
|
2023-07-03 09:14:22 +11:00
|
|
|
echo "========== Project root ==============="
|
2019-05-25 03:34:07 +11:00
|
|
|
make
|
|
|
|
|
2019-08-03 23:27:21 +11:00
|
|
|
# ------------------------------------------------------------------
|
2019-03-04 02:22:55 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|