commit | 2ecded04a604c9d36a32e2900e55009f9db88cef | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Wed Jul 05 16:00:36 2023 +0900 |
committer | Jooyung Han <jooyung@google.com> | Tue Jul 11 22:26:15 2023 +0900 |
tree | d11ad6d2260f93fd4d24169a11789a1e6222839a | |
parent | b14b4cd6a551a8de01ae155b02e01ca4a8ca0af0 [diff] |
Do not install required modules from order-only deps When a vintf_fragments or init_rc file is shared by two modules, unintended modules are installed due to the shared file. This was caused by add-all-target-to-target-required-modules-deps. With the following definitions: cc_binary { name: "foo", vintf_fragments: ["shared.xml"], required: ["foo-req"], } cc_binary { name: "bar", vintf_fragments: ["shared.xml"], } When installing "bar", surprisingly, "foo-req" is installed due to the link between "shared.xml" and "foo-req" added by add-all-target-to-target-required-modules-deps. To fix that, in this change, vintf_fragments and init_rc files are marked as "order-only" deps. In add-all-target-to-target-required-modules-deps, order-only deps are not used to add links to "required" modules. Now, with the same definitions, installing "bar" won't installs "foo-req". Bug: 198818343 Test: (see above) Change-Id: I16be0dcb84564c559cb2f4223e2812321ee14729
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.