8 FP2
Markus Bergholz edited this page 2 weeks ago

Build Android 9 (Fairphone OS)

#!/bin/bash
# ubuntu 18.04

sudo apt update
sudo apt upgrade -y
sudo apt install -y repo git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
mkdir fairphone_os && cd fairphone_os
repo init -u https://gerrit-public.fairphone.software/manifest -b fp2-p-sibon
repo sync --detach --current-branch --no-tags -j 5

export LC_ALL=C
. build/envsetup.sh

python3 vendor/fairphone/tools/bin/get_blobs.py --device FP2 --build-id 20.10.1 --blobs-dir /home/ubuntu/fairphone_os/device/fairphone/fp2-proprietary

choosecombo release fp2_sibon userdebug

make -j5

Build LineageOS 16

#!/bin/bash

sudo apt update
sudo apt upgrade
sudo apt install -y bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
mkdir -p ~/bin
mkdir -p ~/android/lineage
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH="$HOME/bin:$PATH"
cd ~/android/lineage
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
repo sync -j 2
source build/envsetup.sh
breakfast FP2
croot
brunch FP2


Build /e/ Android 9

Ubuntu 20.04 on c5ad.2xlarge

  • 20GB gp3 root partition (500mb/s & 3000 iops)
  • 300GB pyhsical nvme for /srv
  • 8 ryzen cores
  • 16GB ram
  • 2.5 gbit network baseline (10gbit burst)
sudo mkfs.ext4 /dev/nvme1n1 
sudo mount /dev/nvme1n1 /srv/
sudo apt update
sudo apt install docker.io -y
sudo mkdir -p \
/srv/e/src \
/srv/e/zips \
/srv/e/logs \
/srv/e/ccache
sudo  docker pull registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:community
sudo docker run \
-v "/srv/e/src:/srv/src" \
-v "/srv/e/zips:/srv/zips" \
-v "/srv/e/logs:/srv/logs" \
-v "/srv/e/ccache:/srv/ccache" \
-e "BRANCH_NAME=v0.14.1-pie" \
-e "DEVICE_LIST=FP2" \
-e "MINIMAL_APPS=true" \
-e "REPO=https://gitlab.e.foundation/e/os/releases.git" \
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:community