forked from opengapps/aosp_build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopengapps-files.mk
23 lines (21 loc) · 1.01 KB
/
opengapps-files.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Always needed
PRODUCT_COPY_FILES += $(call gapps-copy-to-system,all,etc)
PRODUCT_COPY_FILES += $(call gapps-copy-to-system,all,framework)
# check if we are building a vendor image
ifneq ($(CALLED_FROM_SETUP),true)
BUILD_VENDORIMAGE := $(shell CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core \
command make --no-print-directory -f build/core/config.mk dumpvar-BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE)
endif
# Pico and higher
ifneq ($(filter pico,$(TARGET_GAPPS_VARIANT)),)
# vendor/pittpatt seems to be removed on N+ (so only copy it to older than N)
ifeq ($(filter 24,$(call get-allowed-api-levels)),)
PITTPATT_COPY_FILES := $(call gapps-copy-to-system,all,vendor/pittpatt)
# if we are building a vendor image, then we cannot copy to system/vendor, so update our copy statements.
ifdef BUILD_VENDORIMAGE
PITTPATT_COPY_FILES := $(subst :system/vendor/pittpatt,:vendor/pittpatt,$(PITTPATT_COPY_FILES))
endif
PRODUCT_COPY_FILES += $(PITTPATT_COPY_FILES)
endif
PRODUCT_COPY_FILES += $(call gapps-copy-to-system,all,usr/srec)
endif