| commit | 5394144d43a66e3b79b927da93c01579dc43f474 | [log] [tgz] |
|---|---|---|
| author | Cole Faust <colefaust@google.com> | Mon Apr 21 13:50:56 2025 -0700 |
| committer | Cole Faust <colefaust@google.com> | Mon Apr 21 13:50:56 2025 -0700 |
| tree | 418ebcd058a6bd08fba27ae1bb50365018f3801f | |
| parent | 5443257994cd94c97220cefe68741b41a037cf60 [diff] |
Remove newline from kernel version file The kernel version file can be generated via 2 different methods: - Extracting it from the kernel via the extract_kernel.py script - Specifying it via the BOARD_KERNEL_VERSION variable, in which case it must still match extract_kernel.py's results. extract_kernel.py never added a newline to the end of the file that it generated. But in make, when using BOARD_KERNEL_VERSION, it did add the newline. We ended up adding a newline to the soong-built kernel version file always, because we were comparing against a BOARD_KERNEL_VERSION scenario. But that didn't match in the non-BOARD_KERNEL_VERSION scenario, leading to slow builds when toggling between soong-only and soong+make. Bug: 412416205 Test: soong_only_diff_test.py Change-Id: I1b6476701358c01f059ac170e2c26817f7c57c06
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.