Change-Id: I4373f78f57c81e46affc2f6a6bc854bf4c3d00db
build: Clean up use of vendor/extra
* extra_config.mk is not needed anymore
* Include BoardConfigExtra.mk if available
Change-Id: Icd0db0852ceee5cb5c701c9a40b829e1f3ebd69e
# See envsetup.mk for a description of SCAN_EXCLUDE_DIRS
FIND_LEAVES_EXCLUDES := $(addprefix --prune=, $(OUT_DIR) $(SCAN_EXCLUDE_DIRS) .repo .git)
+-include vendor/extra/BoardConfigExtra.mk
+
# The build system exposes several variables for where to find the kernel
# headers:
# TARGET_DEVICE_KERNEL_HEADERS is automatically created for the current
BUILD_ID \
OUT_DIR
+ifeq ($(CYNGN_TARGET),true)
+print_build_config_vars += \
+ CYNGN_TARGET \
+ CYNGN_FEATURES
+endif
+
ifeq ($(TARGET_BUILD_PDK),true)
print_build_config_vars += \
TARGET_BUILD_PDK \
# be generated correctly
include $(BUILD_SYSTEM)/cleanbuild.mk
+# Bring in Qualcomm helper macros
+include $(BUILD_SYSTEM)/qcom_utils.mk
+
# Include the google-specific config
-include vendor/google/build/config.mk
# Bring in standard build system definitions.
include $(BUILD_SYSTEM)/definitions.mk
-# Bring in Qualcomm helper macros
-include $(BUILD_SYSTEM)/qcom_utils.mk
-
# Bring in dex_preopt.mk
include $(BUILD_SYSTEM)/dex_preopt.mk