95958eefa9
This changes the default location of RRO packages that don't specify where they should be installed to /product instead of /vendor. Also change the auto-generated "enforced RRO" packages to install on /product, and be explicit about that in the mk to make it independent of the RRO default. The reasoning for this change is that most overlays tend to be for product level customizations, like themes and so on. RROs for hardware related things can still be explicitly installed on /vendor. Bug: 123566903 Test: preubmit Test: various internal tests Change-Id: Ie7d5f19dc7ab421a7bcf584153f991e18e961cda
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_VENDOR_MODULE),true)
|
||
partition := $(TARGET_OUT_VENDOR)
|
||
else ifeq ($(LOCAL_PRODUCT_SERVICES_MODULE),true)
|
||
partition := $(TARGET_OUT_PRODUCT_SERVICES)
|
||
else
|
||
partition := $(TARGET_OUT_PRODUCT)
|
||
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
|