-
Notifications
You must be signed in to change notification settings - Fork 6
/
README_BUILD
41 lines (31 loc) · 1.13 KB
/
README_BUILD
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
### BUILD in Clang and gcc 7.5 ###
## Download gcc 10.x :
# 64bit:
https://codeload.github.com/theradcolor/aarch64-linux-gnu/zip/master
# 32bit:
https://codeload.github.com/theradcolor/arm-linux-gnueabi/zip/master
# Download Clang:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/android-10.0.0_r3/clang-r353983c.tar.gz
# Download necessary tools
https://codeload.github.com/sjllls/android_kernel_sony_sdm845/zip/tools
-----------------------------------
Dependence:
sudo apt install libfl-dev
----------------------------------------------------------------------------------
# Compile
export ARCH=arm64
export SUBARCH=arm64
export DTC_EXT=/home/sjll/tool/dtc
export DTC_OVERLAY_TEST_EXT=/home/sjll/tool/ufdt_apply_overlay_host
export PATH=/home/sjll/aarch64-linux-gnu/bin:$PATH
export PATH=/home/sjll/arm-linux-gnueabi/bin:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-
export CROSS_COMPILE_ARM32=arm-linux-gnueabi-
export CC=clang
export CLANG_TRIPLE=aarch64-linux-gnu-
# For XZ2
make O=out tama_akari_defconfig
make -j$(nproc --all) O=out
# For XZ2C
make O=out tama_apollo_defconfig
make -j$(nproc --all) O=out