A tool to build flashable and bootable image for Arch Linux
Install required packages
pacman -S p7zip rsync wget pyalpm python-yaml python-libarchive-c
For cross build (UNTESTED)
pacman -S qemu-user-static-binfmt
Install required packages
apt update
apt install -y pacman-package-manager gpg gpg-agent wget libalpm-dev libssl-dev libarchive-dev libgpgme-dev libcurl4-openssl-dev libmount-dev p7zip rsync python3-pip python3-venv
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
For cross build (UNTESTED)
apt install -y qemu-user-static
python build.py -p ayn-odin2-ufs-gnome-global -m bfsu,tuna
python build.py -c target/ayn-odin2-sdcard,locale/zh-cn,desktop/gnome -m bfsu,tuna
Option | Description |
---|---|
-C, --clean | Clean workspace before build |
-m MIRROR, --mirror MIRROR | Select mirror to download package |
-p PRESET, --preset PRESET | Select preset to create package |
-c CONFIG, --config CONFIG | Select configs to build |
-o WORKSPACE, --workspace WORKSPACE | Set workspace for builder |
-a ARTIFACTS, --artifacts ARTIFACTS | Set artifacts folder for builder |
-d, --debug | Enable debug logging |
-G, --no-gpgcheck | Disable GPG check |
-r, --repack | Repack rootfs only |
gpg: starting migration from earlier GnuPG versions
gpg: error running '/usr/bin/gpg-agent': exit status 2
gpg: failed to start gpg-agent '/usr/bin/gpg-agent': General error
gpg: can't connect to the gpg-agent: General error
gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be started.
gpg: migration aborted
gpg-agent unix socket path too long, please use shorter path for workspace
SPDX: GPL-3.0-or-later