From fe15dd1eb7b2be071e66a2c25cfb98e42b7c84a0 Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Mon, 25 Nov 2019 14:34:29 +0900 Subject: [PATCH] Move extra VNDKs to /system_ext Extra VNDKs are now installed under /system_ext in APEX format with a phony target "vndk_apex_snapshot_package". There are still files remained in /system/etc(*.libraries..txt) which are installed with "vndk_snapshot_packages". These files are already packaged into VNDK APEXes, but linkerconfig and libnativeloader still use them from /system/etc.(b/145184886) Bug: 137802149 Test: lunch aosp_arm64 && flash system.img on Q device && boot Change-Id: I94c340d6f1c1af6ab1ae93c22b0a98fd4c10262e --- target/product/gsi/Android.mk | 6 +++++- target/product/media_system_ext.mk | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/target/product/gsi/Android.mk b/target/product/gsi/Android.mk index 536fe0c9a..424cf058b 100644 --- a/target/product/gsi/Android.mk +++ b/target/product/gsi/Android.mk @@ -162,10 +162,14 @@ endif # TODO(b/141450808): remove following VNDK phony targets when **.libraries.txt files are provided by apexes. LOCAL_REQUIRED_MODULES := \ $(foreach vndk_ver,$(PRODUCT_EXTRA_VNDK_VERSIONS),vndk_v$(vndk_ver)_$(TARGET_ARCH)$(_binder32)) -LOCAL_REQUIRED_MODULES += $(foreach vndk_ver,$(PRODUCT_EXTRA_VNDK_VERSIONS),com.android.vndk.v$(vndk_ver)) _binder32 := include $(BUILD_PHONY_PACKAGE) +include $(CLEAR_VARS) +LOCAL_MODULE := vndk_apex_snapshot_package +LOCAL_REQUIRED_MODULES := $(foreach vndk_ver,$(PRODUCT_EXTRA_VNDK_VERSIONS),com.android.vndk.v$(vndk_ver)) +include $(BUILD_PHONY_PACKAGE) + endif # BOARD_VNDK_VERSION is set ##################################################################### diff --git a/target/product/media_system_ext.mk b/target/product/media_system_ext.mk index 78cc6aa9b..2e20af3d4 100644 --- a/target/product/media_system_ext.mk +++ b/target/product/media_system_ext.mk @@ -22,3 +22,4 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/base_system_ext.mk) # /system_ext packages PRODUCT_PACKAGES += \ + vndk_apex_snapshot_package \