From 8fa54dab081c7c52e149cf624ae2528d439a2ed8 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Tue, 19 Mar 2024 16:48:59 +0900 Subject: Reland "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. This fixes an error caused by an incorrect path to build thumbprint file. Bug: 322090587 Test: compare build.prop before and after Test: build multiple times and see build.prop isn't rebuilt Change-Id: Id4fa830009538856c30825ff47268b11fa6cb5d6 --- android/sdk.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'android/sdk.go') 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) +} -- cgit v1.2.3-59-g8ed1b