diff options
| author | 2018-11-20 11:54:17 +0000 | |
|---|---|---|
| committer | 2018-11-20 11:54:17 +0000 | |
| commit | fe96083dbf14f4c8465694e0144af0e13c2bc171 (patch) | |
| tree | 1df02826d04114b45d4ac4a8158094d5372e0f12 | |
| parent | 42b95c491d9ce828069e523f59d6f6c10e660a5f (diff) | |
| parent | 5305880a6abcf69b511fdb875d500a954a1adc70 (diff) | |
Merge "Release Android Runtime APEX module."
| -rw-r--r-- | Android.mk | 11 | ||||
| -rw-r--r-- | build/apex/Android.bp | 37 | ||||
| -rwxr-xr-x | build/apex/runtests.sh | 9 |
3 files changed, 50 insertions, 7 deletions
diff --git a/Android.mk b/Android.mk index b9f617035c..d6392201cb 100644 --- a/Android.mk +++ b/Android.mk @@ -326,6 +326,17 @@ endif ####################### +# Android Runtime APEX. + +include $(CLEAR_VARS) +LOCAL_MODULE := com.android.runtime +# TODO: Select the debug module (`com.android.runtime.debug`) for +# userdebug and eng products. +LOCAL_REQUIRED_MODULES := com.android.runtime.release +include $(BUILD_PHONY_PACKAGE) + + +####################### # Fake packages for ART # The art-runtime package depends on the core ART libraries and binaries. It exists so we can diff --git a/build/apex/Android.bp b/build/apex/Android.bp index 8bddb5dfe7..bfaacb10fa 100644 --- a/build/apex/Android.bp +++ b/build/apex/Android.bp @@ -72,8 +72,41 @@ apex_key { private_key: "runtime.pem", } +// TODO: Introduce `apex_defaults` to factor common parts of `apex` +// module definitions below? + +// Release version of the Runtime APEX module (not containing debug +// variants nor tools), included in user builds. Also used for +// storage-constrained devices in userdebug and eng builds. +apex { + name: "com.android.runtime.release", + compile_multilib: "both", + manifest: "manifest.json", + native_shared_libs: art_runtime_base_native_shared_libs + + art_runtime_fake_native_shared_libs, + multilib: { + both: { + // TODO: Add logic to create a `dalvikvm` symlink to `dalvikvm32` or `dalvikvm64` + // (see `symlink_preferred_arch` in art/dalvikvm/Android.bp). + binaries: art_runtime_base_binaries_both, + }, + prefer32: { + binaries: art_runtime_base_binaries_prefer32, + }, + first: { + binaries: [], + } + }, + key: "com.android.runtime.key", + // TODO: Also package a `ld.config.txt` config file (to be placed in `etc/`). + // ... +} + +// "Debug" version of the Runtime APEX module (containing both release and +// debug variants, as well as additional tools), included in userdebug and +// eng build. apex { - name: "com.android.runtime", + name: "com.android.runtime.debug", compile_multilib: "both", manifest: "manifest.json", native_shared_libs: art_runtime_base_native_shared_libs @@ -87,7 +120,7 @@ apex { }, prefer32: { binaries: art_runtime_base_binaries_prefer32 - + art_runtime_debug_binaries_prefer32 + + art_runtime_debug_binaries_prefer32, }, first: { binaries: art_tools_binaries, diff --git a/build/apex/runtests.sh b/build/apex/runtests.sh index 6af2a8bc5c..86cd8cb758 100755 --- a/build/apex/runtests.sh +++ b/build/apex/runtests.sh @@ -79,7 +79,8 @@ function finish { trap finish EXIT -apex_module="com.android.runtime" +# TODO: Also exercise the Release Runtime APEX (`com.android.runtime.release`). +apex_module="com.android.runtime.debug" # Build the Android Runtime APEX package (optional). $build_apex_p && say "Building package" && make "$apex_module" @@ -190,10 +191,8 @@ check_library libprofiled.so # libsigchain.so # libtombstoned_client.so # libunwindstack.so -# libvixl-arm64.so -# libvixl-arm.so -# libvixld-arm64.so -# libvixld-arm.so +# libvixl.so +# libvixld.so # ... # # ? |