summaryrefslogtreecommitdiff
path: root/aosp_bonito.mk
diff options
context:
space:
mode:
authorYo Chiang <yochiang@google.com>2020-08-11 13:26:50 +0800
committerYo Chiang <yochiang@google.com>2020-08-11 13:26:50 +0800
commita5566fb7473ddb0b6645498029748a53dfcb1d24 (patch)
tree54d8fed032d8f1f7c1aba621b0a52320a461650d /aosp_bonito.mk
parentbd8df1a5f6e4a1c25249cae2278cfe923bd85aba (diff)
downloadbonito-a5566fb7473ddb0b6645498029748a53dfcb1d24.tar.gz
Don't use on_vendor VNDK APEX for REL build
For non-REL branch, move VNDK APEX to /vendor partition so we don't need to update vendor.img prebuilt everytime there is a change in the VNDK libraries. For REL branch, the API/ABI surfaces of VNDK libraries are frozen so don't need to move to /vendor partition. Bug: 140912145 Test: Build on REL and non-REL branch Change-Id: Ie1c8dc5c78560842147d88492d7bc191c0916633
Diffstat (limited to 'aosp_bonito.mk')
-rw-r--r--aosp_bonito.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/aosp_bonito.mk b/aosp_bonito.mk
index c1768593..52daeeef 100644
--- a/aosp_bonito.mk
+++ b/aosp_bonito.mk
@@ -51,7 +51,11 @@ PRODUCT_COPY_FILES += \
# STOPSHIP deal with Qualcomm stuff later
# PRODUCT_RESTRICT_VENDOR_FILES := all
-PRODUCT_PACKAGES += com.android.vndk.current.on_vendor
+# Keep the VNDK APEX in /system partition for REL branches as these branches are
+# expected to have stable API/ABI surfaces.
+ifneq (REL,$(PLATFORM_VERSION_CODENAME))
+ PRODUCT_PACKAGES += com.android.vndk.current.on_vendor
+endif
PRODUCT_MANUFACTURER := Google
PRODUCT_BRAND := Android