Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit d9a9ea06 authored by Steve Kondik's avatar Steve Kondik Committed by Michael Bestas
Browse files

build: Parse TARGET_COPY_FILES_OVERRIDES late in the setup

Change-Id: Ie3e4a168ff224e3b65e4627c0757e8813a02167f
parent 0706addf
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -877,6 +877,17 @@ RSCOMPAT_NO_USAGEIO_API_LEVELS := 8 9 10 11 12 13
# Rules for QCOM targets
include $(BUILD_SYSTEM)/qcom_target.mk

# We might want to skip items listed in PRODUCT_COPY_FILES based on
# various target flags. This is useful for replacing a binary module with one
# built from source. This should be a list of destination files under $OUT
#
TARGET_COPY_FILES_OVERRIDES := \
    $(addprefix %:, $(strip $(TARGET_COPY_FILES_OVERRIDES)))

ifneq ($(TARGET_COPY_FILES_OVERRIDES),)
    PRODUCT_COPY_FILES := $(filter-out $(TARGET_COPY_FILES_OVERRIDES), $(PRODUCT_COPY_FILES))
endif

ifneq ($(CM_BUILD),)
## We need to be sure the global selinux policies are included
## last, to avoid accidental resetting by device configs