aboutsummaryrefslogtreecommitdiff
path: root/tests/products
diff options
context:
space:
mode:
authorJuan Yescas <jyescas@google.com>2023-04-13 16:53:42 -0700
committerCherrypicker Worker <android-build-cherrypicker-worker@google.com>2023-04-28 18:28:44 +0000
commit643b262becfa90486a6559001764ee6309523ea0 (patch)
tree2f30886d437b414ce000ae9c4c37e0c03246526b /tests/products
parent8d159256acb13df9ac7175fcb5dcd04c8ed7d060 (diff)
downloadbazel-643b262becfa90486a6559001764ee6309523ea0.tar.gz
16K: Declare DeviceMaxPageSizeSupported as a product variable
DeviceMaxPageSizeSupported product variable will be used in arm/arm64 targets to configure the binary alignment. Test: Unit tests Bug: 276963698 Bug: 276801883 (cherry picked from https://android-review.googlesource.com/q/commit:68470992f2bbdcc5c01fbf28a6407029e38c55bc) Merged-In: I27168b3343ac383020483eddf907ee71cf084de8 Change-Id: I27168b3343ac383020483eddf907ee71cf084de8
Diffstat (limited to 'tests/products')
-rw-r--r--tests/products/BUILD34
-rw-r--r--tests/products/aosp_arm.variables.bzl1
-rw-r--r--tests/products/aosp_arm64.variables.bzl1
-rw-r--r--tests/products/aosp_x86.variables.bzl1
-rw-r--r--tests/products/aosp_x86_64.variables.bzl1
-rw-r--r--tests/products/product_labels.bzl6
6 files changed, 33 insertions, 11 deletions
diff --git a/tests/products/BUILD b/tests/products/BUILD
index 0e78ebaa..22dd0163 100644
--- a/tests/products/BUILD
+++ b/tests/products/BUILD
@@ -24,18 +24,16 @@ android_product(
)
android_product(
- name = "aosp_arm64_for_testing",
- soong_variables = _soong_variables_arm64,
-)
-
-android_product(
- name = "aosp_x86_for_testing",
- soong_variables = _soong_variables_x86,
+ name = "aosp_arm_for_testing_custom_linker_alignment",
+ soong_variables = dicts.add(
+ _soong_variables_arm,
+ {"DeviceMaxPageSizeSupported": "65536"},
+ ),
)
android_product(
- name = "aosp_x86_64_for_testing",
- soong_variables = _soong_variables_x86_64,
+ name = "aosp_arm64_for_testing",
+ soong_variables = _soong_variables_arm64,
)
android_product(
@@ -70,3 +68,21 @@ android_product(
},
),
)
+
+android_product(
+ name = "aosp_arm64_for_testing_custom_linker_alignment",
+ soong_variables = dicts.add(
+ _soong_variables_arm64,
+ {"DeviceMaxPageSizeSupported": "16384"},
+ ),
+)
+
+android_product(
+ name = "aosp_x86_for_testing",
+ soong_variables = _soong_variables_x86,
+)
+
+android_product(
+ name = "aosp_x86_64_for_testing",
+ soong_variables = _soong_variables_x86_64,
+)
diff --git a/tests/products/aosp_arm.variables.bzl b/tests/products/aosp_arm.variables.bzl
index 3d531ea1..75d59e75 100644
--- a/tests/products/aosp_arm.variables.bzl
+++ b/tests/products/aosp_arm.variables.bzl
@@ -32,6 +32,7 @@ variables = json.decode('''{
"DeviceSecondaryArchVariant": "",
"DeviceSecondaryCpuVariant": "",
"DeviceSecondaryAbi": [],
+ "DeviceMaxPageSizeSupported": "4096",
"Aml_abis": false,
"Ndk_abis": false,
"NativeBridgeArch": "",
diff --git a/tests/products/aosp_arm64.variables.bzl b/tests/products/aosp_arm64.variables.bzl
index 21cb0e8c..3b2e97a0 100644
--- a/tests/products/aosp_arm64.variables.bzl
+++ b/tests/products/aosp_arm64.variables.bzl
@@ -32,6 +32,7 @@ variables = json.decode('''{
"DeviceSecondaryArchVariant": "armv8-a",
"DeviceSecondaryCpuVariant": "generic",
"DeviceSecondaryAbi": ["armeabi-v7a","armeabi"],
+ "DeviceMaxPageSizeSupported": "4096",
"Aml_abis": false,
"Ndk_abis": false,
"NativeBridgeArch": "",
diff --git a/tests/products/aosp_x86.variables.bzl b/tests/products/aosp_x86.variables.bzl
index c6ec1b69..09ee23de 100644
--- a/tests/products/aosp_x86.variables.bzl
+++ b/tests/products/aosp_x86.variables.bzl
@@ -32,6 +32,7 @@ variables = json.decode('''{
"DeviceSecondaryArchVariant": "",
"DeviceSecondaryCpuVariant": "",
"DeviceSecondaryAbi": [],
+ "DeviceMaxPageSizeSupported": "4096",
"Aml_abis": false,
"Ndk_abis": false,
"NativeBridgeArch": "",
diff --git a/tests/products/aosp_x86_64.variables.bzl b/tests/products/aosp_x86_64.variables.bzl
index f6e89589..f6661a8b 100644
--- a/tests/products/aosp_x86_64.variables.bzl
+++ b/tests/products/aosp_x86_64.variables.bzl
@@ -32,6 +32,7 @@ variables = json.decode('''{
"DeviceSecondaryArchVariant": "x86_64",
"DeviceSecondaryCpuVariant": "",
"DeviceSecondaryAbi": ["x86"],
+ "DeviceMaxPageSizeSupported": "4096",
"Aml_abis": false,
"Ndk_abis": false,
"NativeBridgeArch": "",
diff --git a/tests/products/product_labels.bzl b/tests/products/product_labels.bzl
index e3d88d76..e1cefefc 100644
--- a/tests/products/product_labels.bzl
+++ b/tests/products/product_labels.bzl
@@ -1,9 +1,11 @@
product_labels = [
"@//build/bazel/tests/products:aosp_arm_for_testing",
+ "@//build/bazel/tests/products:aosp_arm_for_testing_custom_linker_alignment",
"@//build/bazel/tests/products:aosp_arm64_for_testing",
- "@//build/bazel/tests/products:aosp_x86_for_testing",
- "@//build/bazel/tests/products:aosp_x86_64_for_testing",
+ "@//build/bazel/tests/products:aosp_arm64_for_testing_custom_linker_alignment",
"@//build/bazel/tests/products:aosp_arm64_for_testing_no_compression",
"@//build/bazel/tests/products:aosp_arm64_for_testing_unbundled_build",
"@//build/bazel/tests/products:aosp_arm64_for_testing_with_overrides_and_app_cert",
+ "@//build/bazel/tests/products:aosp_x86_for_testing",
+ "@//build/bazel/tests/products:aosp_x86_64_for_testing",
]