blob: d5a08105c4990498b1c12131fb9b38a4a5faa516 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2MODULE := ${LOCAL_DIR}
3
4GLOBAL_INCLUDES += \
5 $(LOCAL_DIR)/include
6
7MODULE_SRCS += \
8 $(LOCAL_DIR)/target.c
9
10SRC_CLOCK := 26000000
11
12PLATFORM := mediatek
13MTK_PLATFORM := mt8133
14DRAM_TYPE := PCDDR4
15
16TZ_PART_NAME := tee
17RECOVERY_TZ_PART_NAME = tee
18DTBO_PART_NAME := dtbo
19BOOT_PART_NAME := boot
20RECOVERY_BOOT_PART_NAME = boot
21BL33_PART_NAME := bl33
22RECOVERY_BL33_PART_NAME := bl33
23USB_PHY := realchip
24ROOTFS_PART_NAME := system
25AB_UPGRADE_APP := yes
26MTK_NAND_PAGE_SIZE := 2048
27
28ifeq ($(LK_AS_BL33),0)
29MODULE_DEPS += \
30 $(LOCAL_DIR)/../../../dramk_8133/$(DRAM_TYPE)
31endif
32
33GLOBAL_CFLAGS += -DTZ_PART_NAME=\"$(TZ_PART_NAME)\" \
34 -DDTBO_PART_NAME=\"$(DTBO_PART_NAME)\" \
35 -DBOOT_PART_NAME=\"$(BOOT_PART_NAME)\" \
36 -DRECOVERY_BOOT_PART_NAME=\"$(RECOVERY_BOOT_PART_NAME)\" \
37 -DRECOVERY_TZ_PART_NAME=\"$(RECOVERY_TZ_PART_NAME)\" \
38 -DBL33_PART_NAME=\"$(BL33_PART_NAME)\" \
39 -DROOTFS_PART_NAME=\"$(ROOTFS_PART_NAME)\" \
40 -DRECOVERY_BL33_PART_NAME=\"$(RECOVERY_BL33_PART_NAME)\" \
41 -DDRAM_TYPE=\"$(DRAM_TYPE)\" \
42 -DSRC_CLOCK=$(SRC_CLOCK) \
43 -DAB_UPGRADE_APP=\"$(AB_UPGRADE_APP)\" \
44 -DMTK_NAND_PAGE_SIZE=$(MTK_NAND_PAGE_SIZE) \
45
46MODULE_DEPS += \
47 platform/${PLATFORM}/${MTK_PLATFORM}/drivers/nand
48
49include make/module.mk