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
1 file changed
tree: 418ebcd058a6bd08fba27ae1bb50365018f3801f
  1. backported_fixes/
  2. ci/
  3. common/
  4. core/
  5. packaging/
  6. target/
  7. teams/
  8. tests/
  9. tools/
  10. .gitignore
  11. Android.bp
  12. banchanHelp.sh
  13. buildspec.mk.default
  14. Changes.md
  15. CleanSpec.mk
  16. Deprecation.md
  17. envsetup.sh
  18. help.sh
  19. navbar.md
  20. OWNERS
  21. PREUPLOAD.cfg
  22. rbesetup.sh
  23. README.md
  24. shell_utils.sh
  25. tapasHelp.sh
  26. Usage.txt
README.md

Android Make Build System

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.