blob: b01788f6ad21cf144bbd4007647a54224459cf37 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_PATH := $(call my-dir)
2EMMC_ROOT_DIR := ${PWD}/$(LOCAL_PATH)
3NEW_EMMC_ROOT_DIR := ${PWD}/$(LOCAL_PATH)/../project/recipes-bsp/scatter/files
4INSTALLED_MMCO_TARGET := $(PRODUCT_OUT)/MBR_EMMC
5BUILT_MMCO_TARGET := $(PRODUCT_OUT)/MBR_EMMC_BOOT0
6SCATTER_SRC := ${PWD}/$(LOCAL_PATH)/scripts
7
8$(BUILT_MMCO_TARGET):
9 $(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}
10
11
12 ifneq ($(INSTALLED_MMCO_TARGET),$(BUILT_MMCO_TARGET))
13$(INSTALLED_MMCO_TARGET): $(BUILT_MMCO_TARGET)
14 endif
15
16.PHONY: mmco
17droidcore: $(INSTALLED_MMCO_TARGET)
18mmco: $(INSTALLED_MMCO_TARGET)
19
20ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_MMCO_TARGET)