-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild-aosp-hikey960
executable file
·37 lines (30 loc) · 1.11 KB
/
build-aosp-hikey960
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
#!/usr/bin/env bash
# Hikey960
# https://source.android.com/setup/devices
export USE_CCACHE=1
mkdir tmp
cd tmp
top="$(pwd)"
mkdir android
cd android
repo init -b android-8.1.0_r1 --depth 1 -u https://android.googlesource.com/platform/manifest
repo sync -c -j$(($(nproc) - 2)) --no-clone-bundle
# TODO closed source driver blobs?
wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz
tar xzf arm-hikey960-OPR-cf4e0c80.tgz
./extract-arm-hikey960.sh
. ./build/envsetup.sh
lunch hikey960-userdebug
make -j$(nproc)
cd device/linaro/hikey/installer/hikey960
./flash-all.sh
#cd "$top"
#git clone https://android.googlesource.com/kernel/hikey-linaro
#cd hikey-linaro
#git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
#make ARCH=arm64 hikey960_defconfig
#make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
# TODO
#Copy hi3660-hikey960.dtb (arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb) to the hikey-kernel directory as file: hi3660-hikey960.dtb-4.9
#Copy the Image file (arch/arm64/boot/Image.gz) to the hikey-kernel directory as file: Image.gz-hikey960-4.9
make bootimage -j$(nproc)