OSDN Git Service

Add :sphal, :vndksp for apex configuration
authorJooyung Han <jooyung@google.com>
Tue, 28 Jul 2020 01:26:41 +0000 (10:26 +0900)
committerJooyung Han <jooyung@google.com>
Wed, 5 Aug 2020 05:53:38 +0000 (14:53 +0900)
commit0bb103f96df9d3fcbfdfdc1f06d344e1fc3c2ac3
treed301fc84379aeb05647e3f343d859b73c9612452
parent53edf3a707e37e85c6dd6339fc385cd9f94a762e
Add :sphal, :vndksp for apex configuration

This removes hard-coded special-casing of com.android.media.swcodec
APEX.

swcodec APEX declares "requireNativeLibs" with ":sphal" so that
linkerconfig can add "sphal" and "vndk" namespaces for it. Note that
a link from sphal to vndk with shared_libs(VNDK-SP) is derived by
":vndksp" from "sphal" namespace.

Bug: n/a
Test: ./rundiff.sh
   => no significant changes
Test: build & device boots
Merged-In: Ib2c78cde05b745d6b1e2b06b88e40446c0ddd4f0
Change-Id: Ib2c78cde05b745d6b1e2b06b88e40446c0ddd4f0
(cherry picked from commit e70d72dda438ab1629e6df42cda917a8b69cbb01)
contents/namespace/sphal.cc
contents/section/apexdefault.cc
modules/include/linkerconfig/link.h
modules/namespace.cc
modules/tests/namespace_test.cc
testdata/golden_output/product-enabled/com.android.media.swcodec/ld.config.txt
testdata/golden_output/stage2/com.android.media.swcodec/ld.config.txt
testdata/root/system/apex/com.android.media.swcodec/apex_manifest.json