diff options
author | 2024-03-19 16:48:59 +0900 | |
---|---|---|
committer | 2024-03-26 05:55:49 +0000 | |
commit | 5baf2cbcb63a799ea16d67525493b36fd028e1bc (patch) | |
tree | 7b0b11002ad818d2f031fcb7d26d06727097c44b /android/sdk.go | |
parent | 9dcc3676a9b6e610a9301c7dc7297f25652b852e (diff) |
Migrate buildinfo.sh script into Soong
To build system.img in Soong, we need all artifacts including
build.prop. This fully migrates buildinfo.prop file into Soong as a
first step to build build.prop on Soong.
Bug: 322090587
Test: compare build.prop before and after
Test: build multiple times and see build.prop isn't rebuilt
Change-Id: Icaa7e1fdab2a8c169ac00949d3aaf6c8212a1872
Diffstat (limited to 'android/sdk.go')
-rw-r--r-- | android/sdk.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/sdk.go b/android/sdk.go index 6d5293e65..121470d6e 100644 --- a/android/sdk.go +++ b/android/sdk.go @@ -868,3 +868,11 @@ type AdditionalSdkInfo struct { } var AdditionalSdkInfoProvider = blueprint.NewProvider[AdditionalSdkInfo]() + +var apiFingerprintPathKey = NewOnceKey("apiFingerprintPathKey") + +func ApiFingerprintPath(ctx PathContext) OutputPath { + return ctx.Config().Once(apiFingerprintPathKey, func() interface{} { + return PathForOutput(ctx, "api_fingerprint.txt") + }).(OutputPath) +} |