![]() ![]() The kernel is compiled as a standalone binary (it does not useĪ program loader or link to any outside libraries). This is usually a "cross" toolchain that runs on an X86 platform, but produces code for some other A different toolchain is used to compile the C andĬ++ code that will wind up on the target (which is an embedded board, device or the emulator). Toolchain (compiler, linker and other tools) and libraries will be used to build programsĪnd tools that will run on the host. ![]() This matches the separate file system partitions used on most Android devices.ĭuring the build you will be using soong, ninja and 'make' to control the build steps themselves. System.img, ramdisk.img, and userdata.img. Usually, these are bundled up into image files called The file system of the target is stored in the directories root, system, and data, under ![]() The directory 'out/target/product//obj' is used for staging "object" files, whichĪre intermediate binary images used for building the final programs. Stuff under 'out/target/product/' eventually makes it's way to a target device (or emulator). Stuff under 'out/host' are thingsĬompiled for your host platform (your desktop machine). The build output is placed in 'out/host' and 'out/target'. You can add some options to the make command line (other targets) to turn on verbose output, or perform different actions. You set some environment variables, then type 'make' or just m to build stuff. There is only one official file named 'Makefile', at the top of the source tree for the whole repository. Subprojects' Android build files named Android.bp and Android.mk. In order to build an Android system and prepare it for deployment to a platform. The build system uses some pre-set environment variables and a series of 'make' files 5.1 Steps for adding a new program to the Android source tree.4.3 Add a file directly to the output area.3.6 Setting module-specific build parameters.3.5 Building only an individual program or module.3.1 Seeing the actual commands used to build the software.2.2 Telling the system where the Java toolchain is. ![]()
0 Comments
Leave a Reply. |