Skip to content

Build & Firmware Packaging

Prerequisites

  • Source code acquisition and environment dependencies are complete.
  • Use a regular user account for building; do not use root.

Enter the Build Container

For build environment consistency, use Docker for compilation.

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

Ubuntu Build

build_qcs8550_lu.sh script syntax:

build_qcs8550_lu.sh user|debug version

Build the user (performance) variant:

bash
./build_qcs8550_lu.sh user 01

AidLux Build

Enter the ubuntu/ directory and run Aidlux_build.sh:

Aidlux_build.sh user|debug version

Build the user (performance) variant:

bash
cd ubuntu/
./Aidlux_build.sh user 01

Output Verification

After the build completes, check whether the image/firmware packages have been generated in the project's designated output directory, and record the corresponding version number for subsequent flashing.

Caution

Do not use the root user for building to avoid file permission anomalies that may cause subsequent process failures.