Android quanzhi A10 (2.3.4) development II documentation details: http://www.a10bbs.com/forum.php? MoD = viewthread & tid = 504 & extra =
Precautions for compiling source code
Note: When downloading the project to a local machine for compilation for the first time, obtain the code from git that does not contain any compiled files. Although the intermediate files generated by the makeclean command can be clearly compiled each time, however, this makefile still cannot completely clear intermediate files. I have repeatedly failed compilation because the code is copied to another user's computer and cannot analyze the cause of the error, this issue should be paid more attention to during Android source code compilation. Unknown errors may occur when the intermediate file is not clear;
Source code structure description
Note: The source tree must be stored strictly in accordance with the directory structure. The default value is ~ /Workspace/exdroid
| -- Android2.3.4 --- Android source code
| -- Lichee --- Linux Kernel
| -- Buildroot
| -- Build. Sh
| -- Linux-2.6.36
| '-- Out --- directory for generating the image file. This directory is generated after compilation.
| -- Tools
| -- Crane_pack_src
| -- Crane-win-v2
| -- Logogen
| -- Pack
| -- Pack_25
| '-- Production
Note: When storing files, the android2.3.4 source code and lichee must be in the same level directory, because part of the header files compiled by the kernel are called through relative paths in the android source code. For example:
Kernel Compilation
1. Enter Lichee
2. Go to the lichee/linux-2.6.36 directory
Before executing make clean
Go back to the CD directory ..
Run the./build. Sh-psun4i_crane command to compile the SDK.
3. If the compilation succeeds, you should see the lichee/out generated. The directory contains the generated content. bimage is the generated kernel image,
4. Common Errors and Solutions
Error 1 of 3.1
Solution:
Lichee/linux-2.6.36/modules/WiFi/usi-bcm4329/v4.218.248.15/Open-src/DHD/Linux
1. Delete the dhd-cdc-sdmmc-gpl-2.6.36-android directory
2. Go to the lichee/linux-2.6.36 directory and run make clean before clearing
3. Execute the command:./build. Sh-P sun4i_crane for compilation.
Android2.3.4 source code compilation
1. First download the source code from git, so that you can get a non-compiled, clean code library;
2. Run CD android2.3.4 to enter the directory;
3. Execute the script source build/envsetup. Sh.
4. Lunch
5. Select 7
6. Make-J8
7. After compilation, it takes about 1 hour and 30 minutes to compile and finally produce the out directory in the root directory,