diff options
author | 2023-09-27 13:58:10 +0100 | |
---|---|---|
committer | 2023-11-29 19:11:28 +0000 | |
commit | a2bb806660435e159684c65ad3d85752ab7991e3 (patch) | |
tree | ba8c83b890f5a4240a466a49b20c3f453bd26743 /build/art.go | |
parent | 62d2a5ce9ea6723279ff47a984b66d1d538fecd5 (diff) |
Propagate page size agnosticism build switch
Define ART_PAGE_SIZE_AGNOSTIC based on the build system settings
i.e. ctx.Config().PageSizeAgnostic().
Co-authored-by: Branislav Rankov <branislav.rankov@arm.com>
Co-authored-by: Ruben Ayrapetyan <ruben.ayrapetyan@arm.com>
Test: - art/tools/run-gtests.sh -j4
- art/test/testrunner/testrunner.py --target --64
- art/tools/run-libcore-tests.sh --mode=device --variant=X64
- art/tools/run-libjdwp-tests.sh --mode=device --variant=X64
- On 16K device, using:
- aosp_cf_arm64_phone_pgagnostic-eng.
- On 4K device, using:
- armv8_cortex_a55-eng;
- aosp_cf_arm64_phone_pgagnostic-eng;
- aosp_cf_arm64_phone_pgagnostic-eng ART APEX
transferred to 4K chroot environment.
- Boot Android (4kB and 16kB pages setups) with the page agnostic
ART APEX.
- art/test/testrunner/testrunner.py --host --64
- art/test/testrunner/testrunner.py --host --32
Change-Id: I5430741a8494b340ed7fd2d8692c41a59ad9c530
Diffstat (limited to 'build/art.go')
-rw-r--r-- | build/art.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/art.go b/build/art.go index 340b90de4f..8ba3ceda67 100644 --- a/build/art.go +++ b/build/art.go @@ -103,6 +103,10 @@ func globalFlags(ctx android.LoadHookContext) ([]string, []string) { "-DART_STACK_OVERFLOW_GAP_x86_64=8192") } + if (ctx.Config().PageSizeAgnostic()) { + cflags = append(cflags, "-DART_PAGE_SIZE_AGNOSTIC=1") + } + if ctx.Config().IsEnvTrue("ART_ENABLE_ADDRESS_SANITIZER") { // Used to enable full sanitization, i.e., user poisoning, under ASAN. cflags = append(cflags, "-DART_ENABLE_ADDRESS_SANITIZER=1") |