commit | d98e1a86f31592d74779faa15c4d182751160380 | [log] [tgz] |
---|---|---|
author | Vilas Bhat <vilasbhat@google.com> | Wed May 22 20:18:11 2024 +0000 |
committer | Vilas Bhat <vilasbhat@google.com> | Thu May 23 18:43:57 2024 +0000 |
tree | b4c37c93cde3d4c96c2c878722e04c605e294173 | |
parent | cfceeceb3a9caeca9ac04b24804731c807067350 [diff] |
ndk: Remove MALLOC_LOW_MEMORY config for the ndk This switches the ndk to using scudo instead of jemalloc. Bug: 337242400 Test: Built NDK and tested lldb-server on both 4k and 16k devices ``` $ cd aosp && mkdir ndk_prebuilts $ export OUT_DIR=ndk_prebuilts $ ./build/soong/scripts/build-ndk-prebuilts.sh $ cp -r ~/aosp/ndk_prebuilts/soong/ndk/sysroot/* ~/llvm-project/toolchain/prebuilts/ndk/releases/r27/toolchains/llvm/prebuilt/linux-x86_64/sysroot/ $ cd ../llvm-project $ python3 toolchain/llvm_android/build.py $ adb push out/stage2-install/runtimes_ndk_cxx/aarch64/lldb-server /data/local/tmp/ $ adb shell "getconf PAGE_SIZE" 16384 $ adb shell "strace /data/local/tmp/lldb-server" <output trimmed> mprotect(<address redacted>, 16384, PROT_READ) = 0 exit_group(0) = ? +++ exited with 0 +++ ``` Change-Id: I982595278d70cb39b9f6c7c8e9b95f12723fc5bf
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.