diff options
| author | 2019-04-26 14:23:54 +0000 | |
|---|---|---|
| committer | 2019-04-26 14:23:54 +0000 | |
| commit | eccbfd5f4ee4fa0f7db4080bda43ec44cedb35d8 (patch) | |
| tree | 874d6fc103a55b384fecd3407e1d04ddb2d9630d | |
| parent | 3129d2c971995caba152b62ffbffad9f7f92d480 (diff) | |
| parent | 60bb35822197d4fcd33becc8a4edf9c7185f03d2 (diff) | |
Merge "Ignore vndk-* subdirectories in the library absence check."
| -rw-r--r-- | core/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/Makefile b/core/Makefile index 45cb7969a1..325aa780ab 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2175,7 +2175,7 @@ endif # libprofile.so # libsigchain.so - cf_x86_phone-userdebug builds get this in system/lib/arm # libtombstoned_client.so -APEX_MODULE_LIBS= \ +APEX_MODULE_LIBS := \ libadbconnection.so \ libandroidicu.so \ libdt_fd_forward.so \ @@ -2201,7 +2201,10 @@ DISABLE_APEX_LIBS_ABSENCE_CHECK ?= # on the native architecture. # TODO(b/130630776): Introduce a make variable for the appropriate directory # when native bridge is active. -APEX_LIBS_ABSENCE_CHECK_EXCLUDE=lib/arm lib/arm64 +APEX_LIBS_ABSENCE_CHECK_EXCLUDE := lib/arm lib/arm64 + +# Exclude vndk-sp-* subdirectories which contain prebuilts from older releases. +APEX_LIBS_ABSENCE_CHECK_EXCLUDE += lib/vndk-% lib64/vndk-% # If the check below fails, some library has ended up in system/lib or # system/lib64 that is intended to only go into some APEX package. The likely @@ -2229,7 +2232,7 @@ define check-apex-libs-absence $(hide) ( \ cd $(TARGET_OUT) && \ findres=$$(find lib* \ - $(foreach dir,$(APEX_LIBS_ABSENCE_CHECK_EXCLUDE),-path $(dir) -prune -o) \ + $(foreach dir,$(APEX_LIBS_ABSENCE_CHECK_EXCLUDE),-path "$(subst %,*,$(dir))" -prune -o) \ -type f \( -false $(foreach lib,$(APEX_MODULE_LIBS),-o -name $(lib)) \) \ -print) && \ if [ -n "$$findres" ]; then \ |