Merge "Add mainline dev certificate dir to config" am: e0ac9f74a6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2185477 Change-Id: I0014fd54a432a0a8054c953711ac5fadf54fdd54 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -798,6 +798,15 @@ func (c *config) ApexKeyDir(ctx ModuleContext) SourcePath {
|
||||
return PathForSource(ctx, filepath.Dir(defaultCert))
|
||||
}
|
||||
|
||||
// Certificate for the NetworkStack sepolicy context
|
||||
func (c *config) MainlineSepolicyDevCertificatesDir(ctx ModuleContext) SourcePath {
|
||||
cert := String(c.productVariables.MainlineSepolicyDevCertificates)
|
||||
if cert != "" {
|
||||
return PathForSource(ctx, cert)
|
||||
}
|
||||
return c.DefaultAppCertificateDir(ctx)
|
||||
}
|
||||
|
||||
// AllowMissingDependencies configures Blueprint/Soong to not fail when modules
|
||||
// are configured to depend on non-existent modules. Note that this does not
|
||||
// affect missing input dependencies at the Ninja level.
|
||||
|
@@ -249,7 +249,8 @@ type productVariables struct {
|
||||
AAPTPreferredConfig *string `json:",omitempty"`
|
||||
AAPTPrebuiltDPI []string `json:",omitempty"`
|
||||
|
||||
DefaultAppCertificate *string `json:",omitempty"`
|
||||
DefaultAppCertificate *string `json:",omitempty"`
|
||||
MainlineSepolicyDevCertificates *string `json:",omitempty"`
|
||||
|
||||
AppsDefaultVersionName *string `json:",omitempty"`
|
||||
|
||||
|
Reference in New Issue
Block a user