make: Add support to skip current VNDK install
You can get a system.img without current VNDK libs. This may help when you want a smaller system.img given that the image will be used with a specific version (not current) of vendor image. Bug: 132140714 Test: m TARGET_SKIP_CURRENT_VNDK=true && see if current VNDK is not installed Change-Id: Ie0815e6dd6ce2f861b6c42e637da4bb146320673
This commit is contained in:
parent
8614d0181c
commit
9340a673cd
|
@ -269,6 +269,7 @@ LOCAL_SOONG_STATIC_LIBRARY_EXTRA_PACKAGES :=
|
|||
LOCAL_SOONG_SYMBOL_PATH :=
|
||||
LOCAL_SOONG_TOC :=
|
||||
LOCAL_SOONG_UNSTRIPPED_BINARY :=
|
||||
LOCAL_SOONG_VNDK_VERSION :=
|
||||
# '',true
|
||||
LOCAL_SOURCE_FILES_ALL_GENERATED:=
|
||||
LOCAL_SRC_FILES:=
|
||||
|
|
|
@ -61,6 +61,9 @@ else
|
|||
# device-obj or host-obj.
|
||||
module_installed_filename := \
|
||||
$(patsubst $(PRODUCT_OUT)/%,%,$($(LOCAL_2ND_ARCH_VAR_PREFIX)$(my_prefix)OUT_SHARED_LIBRARIES))/$(notdir $(LOCAL_BUILT_MODULE))
|
||||
else ifeq ($(LOCAL_MODULE_CLASS),SHARED_LIBRARIES)
|
||||
# Shared modules may be uninstallable(e.g. TARGET_SKIP_CURRENT_VNDK=true)
|
||||
module_installed_filename :=
|
||||
else
|
||||
ifeq ($(LOCAL_MODULE_CLASS),JAVA_LIBRARIES)
|
||||
# Stick the static java libraries with the regular java libraries.
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# LOCAL_SOONG_LINK_TYPE
|
||||
# LOCAL_SOONG_TOC
|
||||
# LOCAL_SOONG_UNSTRIPPED_BINARY
|
||||
# LOCAL_SOONG_VNDK_VERSION : means the version of VNDK where this module belongs
|
||||
|
||||
ifneq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK))
|
||||
$(call pretty-error,soong_cc_prebuilt.mk may only be used from Soong)
|
||||
|
@ -51,6 +52,13 @@ ifndef LOCAL_UNINSTALLABLE_MODULE
|
|||
endif
|
||||
endif
|
||||
|
||||
# Don't install modules of current VNDK when it is told so
|
||||
ifeq ($(TARGET_SKIP_CURRENT_VNDK),true)
|
||||
ifeq ($(LOCAL_SOONG_VNDK_VERSION),$(PLATFORM_VNDK_VERSION))
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
endif
|
||||
endif
|
||||
|
||||
#######################################
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
#######################################
|
||||
|
|
|
@ -46,6 +46,8 @@ else ifeq ($(TARGET_BUILD_PDK),true)
|
|||
# b/118634643: don't check VNDK lib list when building PDK. Some libs (libandroid_net.so
|
||||
# and some render-script related ones) can't be built in PDK due to missing frameworks/base.
|
||||
check-vndk-list: ;
|
||||
else ifeq ($(TARGET_SKIP_CURRENT_VNDK),true)
|
||||
check-vndk-list: ;
|
||||
else
|
||||
check-vndk-list: $(check-vndk-list-timestamp)
|
||||
endif
|
||||
|
@ -100,11 +102,11 @@ ifneq ($(BOARD_VNDK_VERSION),)
|
|||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := vndk_package
|
||||
LOCAL_REQUIRED_MODULES := \
|
||||
$(LLNDK_LIBRARIES) \
|
||||
llndk.libraries.txt \
|
||||
vndksp.libraries.txt
|
||||
$(LLNDK_LIBRARIES)
|
||||
ifneq ($(TARGET_SKIP_CURRENT_VNDK),true)
|
||||
LOCAL_REQUIRED_MODULES += \
|
||||
llndk.libraries.txt \
|
||||
vndksp.libraries.txt \
|
||||
$(addsuffix .vendor,$(VNDK_CORE_LIBRARIES)) \
|
||||
$(addsuffix .vendor,$(VNDK_SAMEPROCESS_LIBRARIES))
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue