blob: 933634408da0d0fe479ad47adf6091517b82e2d8 [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_a
17RECOVERY_TZ_PART_NAME = tee_a
18DTBO_PART_NAME := dtbo
19BOOT_PART_NAME := boot_a
20RECOVERY_BOOT_PART_NAME = boot_b
21BL33_PART_NAME := bl33
22RECOVERY_BL33_PART_NAME := bl33
23USB_PHY := realchip
24
25ifeq ($(LK_AS_BL33),0)
26MODULE_DEPS += \
27 $(LOCAL_DIR)/../../../dramk_8133/$(DRAM_TYPE)
28endif
29
30GLOBAL_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
41MODULE_DEPS += \
42 platform/${PLATFORM}/${MTK_PLATFORM}/drivers/nand
43
44include make/module.mk