Compilation and Firmware Packaging
Prerequisites
- Source retrieval and environment dependencies are prepared.
- Current directory is the source root directory (contains
Aidlux_build.sh). - Compile as a regular user, not root.
Enter Build Container
Run in the source root directory:
bash
docker run --privileged -it --rm --hostname $(hostname) -v $(pwd):/home/build $(whoami)/androidbuilder:u22 androidFirst-time Build Preparation
Before the first build, extract downloads.tar.gz to the source root to ensure all script dependencies are complete.
Run Compilation and Packaging
The Aidlux_build.sh script includes the complete build and image packaging flow.
Build debug version:
bash
./Aidlux_build.sh debug 01Build user (performance) version:
bash
./Aidlux_build.sh user 01Artifact Check
After compilation, check whether image/firmware packages are generated in the expected output directory and record the corresponding version number for subsequent flashing.
Warning
Do not compile as root, otherwise file-permission issues may cause subsequent steps to fail.