commit | 3bcd0bca6fad62cb433f08d0fc226094d1fac56e | [log] [tgz] |
---|---|---|
author | Wei Li <weiwli@google.com> | Fri Apr 07 16:21:17 2023 -0700 |
committer | Wei Li <weiwli@google.com> | Fri Apr 07 16:36:30 2023 -0700 |
tree | 9501a44e41deb5f68a6d6c4861f927045177f28e | |
parent | 0bb86d051577787a74ac597cc413d48c71a8bea3 [diff] |
Check if an installed file exists and report error if not. So far there is only one case happened in b/277039235 that an installed file in that product is moved to another directory in LOCAL_POST_INSTALL_CMD. The team agreed to convert to Android.bp, but better to add a check and report the error. Resend this to check symlinks using os.path.islink(), which doesn't follow the link. os.path.isfile() follows symlinks and returns false since the symlinks are for devices and could not be resolved on host file systems. Bug: 277039235 Test: m sbom Test: build/soong/tests/sbom_test.sh Change-Id: Ia9f1cd24dc974a3e41487bc17c9c76a26d419395
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.