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:
git initInstalling Required Environment on the Host
sudo apt install qemu-user-static qemu-user binfmt-supportEntering 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:
docker run --privileged -it --rm --hostname $(hostname) -v $(pwd):/home/build $(whoami)/androidbuilder:u22 androidUbuntu Version Build
build_qcs8550_lu.sh script syntax:
build_qcs8550_lu.sh user|debug versionBuild the user (performance) version:
./build_qcs8550_lu.sh user 01AidLux Version Build
Enter the ubuntu/ directory and run Aidlux_build.sh:
Aidlux_build.sh user|debug versionBuild the user (performance) version:
cd ubuntu/
./Aidlux_build.sh user 01Artifact 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.