LTB
Learn To Build
!/usr/bin/env bash
#
# LineageOS 16.0 build script
#
#MANIFEST_URL="https://github.com/LineageOS/android.git"
#BRANCH="lineage-16.0"
#repo init --depth=1 --no-repo-verify -u
https://github.com/LineageOS/android.git -b lineage-16.0 -g default,-mibs,-darwin,-notdefault
#repo sync --force-sync --fail-fast -c -q --no-tag --no-clone-bundle --optimized-fetch --current-branch -j16
# Setup ccache
export USE_CCACHE=1
export CCACHE_DIR=$PWD/.ccache
#prebuilts/misc/linux-x86/ccache/ccache -M 50G
# Resize the JACK Heap size
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -Xmx4096m -XX:+TieredCompilation"
#make clean
. build/envsetup.sh
#lunch lineage_angler-userdebug
breakfast lineage_angler-userdebug
#make init
make bootimage
#make recoveryimage
#make kernel
#mmma device/huawei/angler/camera/QCamera2/stack/mm-camera-test/
#mmma hardware/qcom/display/msm8994/libhdmi
#mmma hardware/qcom/audio/default/hal
make bacon
edit AndroidProducts.mk change aosp in lineage
create device/huawei/angler/lineage_angler.mk from aosp_angler.mk and change PRODUCT_NAME := lineage_angler
open BoardConfig.mk and fix TARGET_COPY_OUT_VENDOR := vendor
add proprietary cause phone not available
<project name="PureNexusProject/proprietary_vendor_huawei" path="vendor/huawei" remote="github" revision="o-mr1" />
make init OK
make bootimage >./error_bootimage.txt
test fix
https://android-git.linaro.org/devi...d&id=dbe30cae1ef227860089e1840aeb1cd140c0003a
make bootimage OK
make recoveryimage OK
make kernel OK
mmma device/huawei/angler/camera/QCamera2/stack/mm-camera-test/
fix O_TMPFILE
https://review.lineageos.org/c/Line...r/+/279981/1/include/uapi/asm-generic/fcntl.h
mmma hardware/qcom/display/msm8994/libhdmi
fix %zd --> %ld
https://review.lineageos.org/c/LineageOS/android_hardware_qcom_display/+/186168
mmma hardware/qcom/audio/default/hal
fix %zd --> %ld line 3116
make bacon
mkbootimg_version_args = (str) --os_version 9 --os_patch_level 2022-01-05
[100% 62406/62406] build bacon
Package Complete: /home/ivan/Esperimenti/i9105p_los160/out/target/product/angler/lineage-.zip