Merge "16k: soong: Update DevicePageSizeAgnostic to DeviceNoBionicPageSizeMacro" into main
This commit is contained in:
@@ -195,10 +195,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)
|
||||
// NoBionicPageSizeMacro returns true when AOSP is page size agnostic.
|
||||
// This means that the bionic's macro PAGE_SIZE won't be defined.
|
||||
// Returns false when AOSP is NOT page size agnostic.
|
||||
// This means that bionic's macro PAGE_SIZE is defined.
|
||||
func (c Config) NoBionicPageSizeMacro() bool {
|
||||
return Bool(c.config.productVariables.DeviceNoBionicPageSizeMacro)
|
||||
}
|
||||
|
||||
// The release version passed to aconfig, derived from RELEASE_VERSION
|
||||
|
@@ -224,7 +224,7 @@ type ProductVariables struct {
|
||||
DeviceCurrentApiLevelForVendorModules *string `json:",omitempty"`
|
||||
DeviceSystemSdkVersions []string `json:",omitempty"`
|
||||
DeviceMaxPageSizeSupported *string `json:",omitempty"`
|
||||
DevicePageSizeAgnostic *bool `json:",omitempty"`
|
||||
DeviceNoBionicPageSizeMacro *bool `json:",omitempty"`
|
||||
|
||||
VendorApiLevel *string `json:",omitempty"`
|
||||
|
||||
@@ -582,20 +582,20 @@ func (v *ProductVariables) SetDefaultConfig() {
|
||||
Platform_version_all_preview_codenames: []string{"S"},
|
||||
Platform_vndk_version: stringPtr("S"),
|
||||
|
||||
HostArch: stringPtr("x86_64"),
|
||||
HostSecondaryArch: stringPtr("x86"),
|
||||
DeviceName: stringPtr("generic_arm64"),
|
||||
DeviceProduct: stringPtr("aosp_arm-eng"),
|
||||
DeviceArch: stringPtr("arm64"),
|
||||
DeviceArchVariant: stringPtr("armv8-a"),
|
||||
DeviceCpuVariant: stringPtr("generic"),
|
||||
DeviceAbi: []string{"arm64-v8a"},
|
||||
DeviceSecondaryArch: stringPtr("arm"),
|
||||
DeviceSecondaryArchVariant: stringPtr("armv8-a"),
|
||||
DeviceSecondaryCpuVariant: stringPtr("generic"),
|
||||
DeviceSecondaryAbi: []string{"armeabi-v7a", "armeabi"},
|
||||
DeviceMaxPageSizeSupported: stringPtr("4096"),
|
||||
DevicePageSizeAgnostic: boolPtr(false),
|
||||
HostArch: stringPtr("x86_64"),
|
||||
HostSecondaryArch: stringPtr("x86"),
|
||||
DeviceName: stringPtr("generic_arm64"),
|
||||
DeviceProduct: stringPtr("aosp_arm-eng"),
|
||||
DeviceArch: stringPtr("arm64"),
|
||||
DeviceArchVariant: stringPtr("armv8-a"),
|
||||
DeviceCpuVariant: stringPtr("generic"),
|
||||
DeviceAbi: []string{"arm64-v8a"},
|
||||
DeviceSecondaryArch: stringPtr("arm"),
|
||||
DeviceSecondaryArchVariant: stringPtr("armv8-a"),
|
||||
DeviceSecondaryCpuVariant: stringPtr("generic"),
|
||||
DeviceSecondaryAbi: []string{"armeabi-v7a", "armeabi"},
|
||||
DeviceMaxPageSizeSupported: stringPtr("4096"),
|
||||
DeviceNoBionicPageSizeMacro: boolPtr(false),
|
||||
|
||||
AAPTConfig: []string{"normal", "large", "xlarge", "hdpi", "xhdpi", "xxhdpi"},
|
||||
AAPTPreferredConfig: stringPtr("xhdpi"),
|
||||
|
Reference in New Issue
Block a user