Skip to content

Commit

Permalink
Merge pull request SlimRoms#9 from CyanogenMod/cm-12.0
Browse files Browse the repository at this point in the history
build: Parse TARGET_COPY_FILES_OVERRIDES late in the setup
  • Loading branch information
STELIX committed Dec 8, 2014
2 parents 85ea6b3 + 5e2a675 commit dcf07a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,17 @@ RS_PREBUILT_COMPILER_RT := prebuilts/sdk/renderscript/lib/$(TARGET_ARCH)/libcomp
# 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
Expand Down

0 comments on commit dcf07a7

Please sign in to comment.