-
Establish Android build environment and install repo.
-
Install additional packages:
sudo apt-get install bc coreutils dosfstools e2fsprogs fdisk kpartx mtools ninja-build pkg-config python3-pip
sudo pip3 install meson mako jinja2 ply pyyaml
- Initialize repo:
repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r52 --depth=1
git clone https://github.com/pizzafactory/aaos_local_manifest.git .repo/local_manifests --depth=1
- Sync source code:
repo sync
- Compile:
. build/envsetup.sh
lunch aosp_rpi4-userdebug
make bootimage systemimage vendorimage
- Make flashable image:
./rpi4-mkimg.sh
Also look into Linux kernel build instructions.