blob: b01788f6ad21cf144bbd4007647a54224459cf37 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
EMMC_ROOT_DIR := ${PWD}/$(LOCAL_PATH)
NEW_EMMC_ROOT_DIR := ${PWD}/$(LOCAL_PATH)/../project/recipes-bsp/scatter/files
INSTALLED_MMCO_TARGET := $(PRODUCT_OUT)/MBR_EMMC
BUILT_MMCO_TARGET := $(PRODUCT_OUT)/MBR_EMMC_BOOT0
SCATTER_SRC := ${PWD}/$(LOCAL_PATH)/scripts
$(BUILT_MMCO_TARGET):
$(hide) $(EMMC_ROOT_DIR)/scripts/gen-partitions.sh $(NEW_EMMC_ROOT_DIR)/$(SCATTER_PROJECT) ${PRODUCT_OUT} ${BOOTDEV_TYPE} ${SCATTER_SRC} ${NAND_CHIP_NAME} ${NAND_HEADER_VERSION}
ifneq ($(INSTALLED_MMCO_TARGET),$(BUILT_MMCO_TARGET))
$(INSTALLED_MMCO_TARGET): $(BUILT_MMCO_TARGET)
endif
.PHONY: mmco
droidcore: $(INSTALLED_MMCO_TARGET)
mmco: $(INSTALLED_MMCO_TARGET)
ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_MMCO_TARGET)