Merge "soong: Add product variable DevicePageSizeAgnostic" into main am: 83a740e888 am: d02e4d9670 am: ee81963a69 am: 0f82705c6e am: 8af318dbf9

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2700794

Change-Id: I3e875298c9270426537c4bf39050e15b74cfd3bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Juan Yescas
2023-08-11 09:45:59 +00:00
committed by Automerger Merge Worker
4 changed files with 18 additions and 8 deletions

View File

@@ -190,6 +190,12 @@ func (c Config) MaxPageSizeSupported() string {
return String(c.config.productVariables.DeviceMaxPageSizeSupported)
}
// PageSizeAgnostic returns true when AOSP is page size agnostic,
// othersise it returns false.
func (c Config) PageSizeAgnostic() bool {
return Bool(c.config.productVariables.DevicePageSizeAgnostic)
}
// The release version passed to aconfig, derived from RELEASE_VERSION
func (c Config) ReleaseVersion() string {
return c.config.productVariables.ReleaseVersion