8dd846c45f
This adds support for overlays to be placed in the product and product_services partitions. LOCAL_VENDOR_MODULE := true #/vendor/overlay LOCAL_ODM_MODULE := true #/vendor/odm/overlay LOCAL_PRODUCT_MODULE := true #/system/product/overlay LOCAL_PRODUCT_SERVICES_MODULE := true # /system/product_services/overlay Bug: 110869880 Test: built overlay with different partitions and verified correct apk location Change-Id: I21f594e784a18cf59f4ff03c00e30b463ec85008
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
#############################################################################
|
||
## Standard rules for installing runtime resouce overlay APKs.
|
||
##
|
||
## Set LOCAL_RRO_THEME to the theme name if the package should apply only to
|
||
## a particular theme as set by ro.boot.vendor.overlay.theme system property.
|
||
##
|
||
## If LOCAL_RRO_THEME is not set, the package will apply always, independent
|
||
## of themes.
|
||
##
|
||
#############################################################################
|
||
|
||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||
|
||
ifneq ($(LOCAL_SRC_FILES),)
|
||
$(error runtime resource overlay package should not contain sources)
|
||
endif
|
||
|
||
partition :=
|
||
ifeq ($(LOCAL_ODM_MODULE),true)
|
||
partition := $(TARGET_OUT_ODM)
|
||
else ifeq ($(LOCAL_PRODUCT_MODULE),true)
|
||
partition := $(TARGET_OUT_PRODUCT)
|
||
else ifeq ($(LOCAL_PRODUCT_SERVICES_MODULE),true)
|
||
partition := $(TARGET_OUT_PRODUCT_SERVICES)
|
||
else
|
||
partition := $(TARGET_OUT_VENDOR)
|
||
endif
|
||
|
||
ifeq ($(LOCAL_RRO_THEME),)
|
||
LOCAL_MODULE_PATH := $(partition)/overlay
|
||
else
|
||
LOCAL_MODULE_PATH := $(partition)/overlay/$(LOCAL_RRO_THEME)
|
||
endif
|
||
|
||
partition :=
|
||
|
||
include $(BUILD_SYSTEM)/package.mk
|