The AOSP Build System - Chris Simmonds, 2net
HTML-код
- Опубликовано: 10 июл 2023
- The AOSP Build System - Chris Simmonds, 2net
AOSP has multiple build systems: Soong, Kati, Make and Bazel. Unfortunately you need to know all of them if you want to develop AOSP modules and debug build errors. In this 90 minute workshop I will take time to show the parts that each has to play in creating Android device images and other artefacts. I will begin with the overall architecture, from parsing recipes to writing the Ninja manifests, through to executing the tasks. I will look at log files to show how thing progress and the kind of things that can go wrong. Next, I will look at Soong and the Soong recipe language, Blueprint. I will show how to write Android.bp files for various tasks. Then comes the legacy Makefiles and the Makefile parser, Kati. The intention was to replace Makefiles with Blueprint (or so I believe) but after 6 release, Makefiles are still here, especially in the low level definition of a device. I will show you the important parts Finally, I will address the new kid on the block: Bazel. Currently used to build the kernel, we are given to understand that Bazel will eventually take over There will be live demos!