summaryrefslogtreecommitdiffstats
path: root/core/config.mk
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2014-12-07 16:42:28 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 17:52:20 -0700
commit078f7c395650f504fb320e0b06a22aa73d8158f7 (patch)
treed11df7d927846db763cc2cdb4e5c37ba52c1cc6f /core/config.mk
parentfed3ee4e05eb3c20fc28c3ba9fbb9dd10cf361f8 (diff)
downloadbuild-078f7c395650f504fb320e0b06a22aa73d8158f7.zip
build-078f7c395650f504fb320e0b06a22aa73d8158f7.tar.gz
build-078f7c395650f504fb320e0b06a22aa73d8158f7.tar.bz2
build: Parse TARGET_COPY_FILES_OVERRIDES late in the setup
Change-Id: Ie3e4a168ff224e3b65e4627c0757e8813a02167f
Diffstat (limited to 'core/config.mk')
-rw-r--r--core/config.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/config.mk b/core/config.mk
index 44fd7e6..7b72c59 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -695,6 +695,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