Skip to content

Compilation & Firmware Packaging ​

Prerequisites ​

  • Source code acquisition and environment dependency preparation completed.
  • Compile with a regular user; do not compile with the root user.

Source Code into Git ​

The code automatically detects whether a Git repository exists, so after extracting the code you can place it into a repository as needed. If you only need a temporary build, you can create an empty repository in the extracted code root directory first:

bash
git init

Installing Required Environment on the Host ​

bash
sudo apt install qemu-user-static qemu-user binfmt-support

Entering the Build Container ​

For build environment consistency, use Docker to compile.

Run the following command in the source root directory to enter the Docker environment:

bash
docker run --privileged -it --rm --hostname $(hostname) -v $(pwd):/home/build $(whoami)/androidbuilder:u22 android

AidLux Version Build ​

Enter the ubuntu/ directory and run Aidlux_build.sh:

Aidlux_build.sh user|debug version

Build the user (performance) version:

bash
cd ubuntu/
./Aidlux_build.sh user 01

Artifact Check ​

After compilation, check whether the image/firmware package has been generated in the output directory agreed upon by the project, and record the corresponding version number for later flashing.

Note

Do not compile with the root user to avoid file permission issues that may cause subsequent steps to fail.