rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | EMMC_ROOT_DIR := ${PWD}/$(LOCAL_PATH) |
| 3 | NEW_EMMC_ROOT_DIR := ${PWD}/$(LOCAL_PATH)/../project/recipes-bsp/scatter/files |
| 4 | INSTALLED_MMCO_TARGET := $(PRODUCT_OUT)/MBR_EMMC |
| 5 | BUILT_MMCO_TARGET := $(PRODUCT_OUT)/MBR_EMMC_BOOT0 |
| 6 | SCATTER_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 |
| 17 | droidcore: $(INSTALLED_MMCO_TARGET) |
| 18 | mmco: $(INSTALLED_MMCO_TARGET) |
| 19 | |
| 20 | ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_MMCO_TARGET) |