commit | 7162b95f83984cadf7cfcde4e5f8ec2e61f54fcb | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Fri Jun 24 14:37:33 2022 -0700 |
committer | Cole Faust <colefaust@google.com> | Fri Jun 24 15:42:46 2022 -0700 |
tree | cc3564c0f1e6177ba73b753dc733862fb2bb88cd | |
parent | dc08c346fbfec8238d79ae2a42bf680550a7bcdf [diff] |
Deduplicate multiple $(inherit-product) calls The makefile product inheritance code was supposed to deduplicate inheritance calls, but there was a bug in the uniq-word function that caused it to not work when duplicated words were adjacent. $(subst |||x|||,||| |||,|||x|||x|||) produces ||| |||x||| instead of ||| ||| |||. Rewrite the uniq-word function to fix the bug. This issue was causing a discrepency between the makefile and starlark based product configurations, as the starlark implementation didn't have this bug. Bug: 237019892 Test: ./build/bazel/ci/rbc_dashboard.py --quick on an internal-only product Change-Id: I543a80746412ffcb9743203399413a0e707111e6
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.