Soo build steps, sorry i dont normally use any standard method or manifest.xml but here we go
I’m on Ubuntu 24.04
Pre-Build
Dependencies
sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick protobuf-compiler python3-protobuf lib32readline-dev lib32z1-dev libdw-dev libelf-dev lz4 libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
sudo apt install imagemagick clang zip unzip
As mentioned in LineageOS Wiki (Build for espresso3g | LineageOS Wiki)
wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb && sudo dpkg -i libtinfo5_6.3-2_amd64.deb && rm -f libtinfo5_6.3-2_amd64.deb
wget https://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2_amd64.deb && sudo dpkg -i libncurses5_6.3-2_amd64.deb && rm -f libncurses5_6.3-2_amd64.deb
Java 8 for Oreo
sudo apt install openjdk-8-jdk
NOTE: For building these versions you’ll need to remove TLSv1 and TLSv1.1 from jdk.tls.disabledAlgorithms in /etc/java-8-openjdk/security/java.security.
Python 2.7, since Ubuntu 24.04 doesnt have its package i built it from source
wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar xzf Python-2.7.18.tgz
./configure --enable-optimizations
make
sudo make install
Repo
mkdir -p ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Ccache
sudo apt install ccache
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
ccache -M 25G
ccache -o compression=true
Build
Sync Sources
repo init -u https://gitlab.e.foundation/e/os/releases.git -b refs/tags/v0.21.4-oreo
repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)
Sync Device Trees
git clone https://github.com/MightyM17/android_kernel_ti_omap4 kernel/ti/omap4
git clone https://github.com/MightyM17/android_kernel_ti_omap4 kernel/ti/omap4 --depth 1
git clone https://github.com/MightyM17/android_hardware_ti_omap4 hardware/ti/omap4
git clone https://github.com/MightyM17/proprietary_vendor_samsung vendor/samsung
git clone https://github.com/Unlegacy-Android/proprietary_vendor_ti vendor/ti
git clone https://github.com/LineageOS/android_external_jhead external/jhead
git clone https://github.com/Unlegacy-Android/android_external_stlport -b aosp-8.1 external/stlport
Patches
https://xdaforums.com/t/rom-8-1-0-lineageos-15-1-unofficial.4540297/post-88043983
https://github.com/MightyM17/espresso_patches
Start building!
source build/envsetup.sh
brunch espresso3g
Fixes
export LC_ALL=C
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx8g
jack-admin kill-server && jack-admin start-server
Make MINIMAL_APPS = true in vendor/lineage/config/common.mk
