-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·48 lines (34 loc) · 1.03 KB
/
entrypoint.sh
File metadata and controls
executable file
·48 lines (34 loc) · 1.03 KB
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
#!/bin/bash
#######################################
# Extremely simple build script to
# build DavinciCodeOS
# error handling is not yet done,
# manual review is required
#
# Requires AOSP tree at /aosp-src
# Cathedra at /cathedra
# and tmpfs at /build
#######################################
set -e
BUILDER_USER="leonardo"
BUILDER_EMAIL="not@existing.org"
CACHE_SIZE="100GB"
DEVICE=${DEVICE:="davinci"}
BUILD_TYPE=${BUILD_TYPE:="user"}
THREAD_COUNT=$(nproc --all)
echo "[i] Setting up ccache..."
export USE_CCACHE=1
export CCACHE_EXEC=$(which ccache)
mkdir -p /build/ccache
export CCACHE_DIR="/build/ccache"
ccache -M $CACHE_SIZE
export HOME=/build
cd /aosp-src
echo "[i] Setting build environment..."
source build/envsetup.sh
lunch aosp_$DEVICE-$BUILD_TYPE
echo "[i] Regenerating ABI reference dumps for O3 build..."
development/vndk/tools/header-checker/utils/create_reference_dumps.py -products aosp_$DEVICE --build-variant $BUILD_TYPE
echo "[i] Starting build process..."
make -j$THREAD_COUNT bacon
echo "[i] Done building!"