rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | MODULE := ${LOCAL_DIR} |
| 3 | |
| 4 | GLOBAL_INCLUDES += \ |
| 5 | $(LOCAL_DIR)/include |
| 6 | |
| 7 | MODULE_SRCS += \ |
| 8 | $(LOCAL_DIR)/target.c |
| 9 | |
| 10 | SRC_CLOCK := 26000000 |
| 11 | |
| 12 | PLATFORM := mediatek |
| 13 | MTK_PLATFORM := mt8133 |
| 14 | DRAM_TYPE := PCDDR4 |
| 15 | |
| 16 | TZ_PART_NAME := tee_a |
| 17 | RECOVERY_TZ_PART_NAME = tee_a |
| 18 | DTBO_PART_NAME := dtbo |
| 19 | BOOT_PART_NAME := boot_a |
| 20 | RECOVERY_BOOT_PART_NAME = boot_b |
| 21 | BL33_PART_NAME := bl33 |
| 22 | RECOVERY_BL33_PART_NAME := bl33 |
| 23 | USB_PHY := realchip |
| 24 | |
| 25 | ifeq ($(LK_AS_BL33),0) |
| 26 | MODULE_DEPS += \ |
| 27 | $(LOCAL_DIR)/../../../dramk_8133/$(DRAM_TYPE) |
| 28 | endif |
| 29 | |
| 30 | GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \ |
| 31 | -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \ |
| 32 | -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \ |
| 33 | -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \ |
| 34 | -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \ |
| 35 | -DBL33_PART_NAME=\"$(BL33_PART_NAME)\" \ |
| 36 | -DROOTFS_PART_NAME=\"$(ROOTFS_PART_NAME)\" \ |
| 37 | -DRECOVERY_BL33_PART_NAME=\"$(RECOVERY_BL33_PART_NAME)\" \ |
| 38 | -DDRAM_TYPE=\"$(DRAM_TYPE)\" \ |
| 39 | -DSRC_CLOCK=$(SRC_CLOCK) \ |
| 40 | |
| 41 | MODULE_DEPS += \ |
| 42 | platform/${PLATFORM}/${MTK_PLATFORM}/drivers/nand |
| 43 | |
| 44 | include make/module.mk |