blob: 639baef973d513935dd8e2b640d4a508f556f69b [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001# /*****************************************************************************
2#* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3#*
4#* ÎļþÃû³Æ: project.mk
5#* Îļþ±êʶ: project.mk
6#* ÄÚÈÝÕªÒª: ¹¤³ÌÅäÖÃÎļþ
7#* ʹÓ÷½·¨: include project.mk
8#*
9#* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
10#* -----------------------------------------------------------------------------
11#* 2015/05/08 V1.0 Create ÁõÑÇÄÏ ´´½¨
12#*
13# ******************************************************************************/
14
15#===============================================================================
16# Include path
17#===============================================================================
18export CPU_PUB_INCLUDE = $(CPU_PUB_ROOT)/include
19export CPU_PUB_INFRA_INCLUDE = $(CPU_PUB_ROOT)/include/infra
20export CPU_PUB_PS_INCLUDE = $(CPU_PUB_ROOT)/include/ps_phy
21export CPU_PUB_DRV_INCLUDE = $(CPU_PUB_ROOT)/include/drv
22export CPU_PUB_TOOLS_INCLUDE = $(CPU_PUB_ROOT)/include/tools
23export CPU_PUB_PSM_INCLUDE = $(CPU_PUB_ROOT)/include/psm
24export CPU_PUB_AMT_INCLUDE = $(CPU_PUB_ROOT)/include/amt
25
26export CPU_PUB_PRJ_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include
27export CPU_PUB_PRJ_INFRA_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/infra
28export CPU_PUB_PRJ_PS_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/ps_phy
29export CPU_PUB_PRJ_DRV_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/drv
30export CPU_PUB_PRJ_TOOLS_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/tools
31export CPU_PUB_PRJ_PSM_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/psm
32export CPU_PUB_PRJ_AMT_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/amt
33export CPU_PUB_PRJ_NV_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/nv
34
35#===============================================================================
36# CPU arch define
37#===============================================================================
38ifeq ($(CPU_PUB_ARCH),ARM)
39CPU_PUB_DEFINE += -D_CPU_ARM
40CPU_PUB_DEFINE += -DCPU_SHIFT=0
41endif
42
43ifeq ($(CPU_PUB_ARCH),ZSP)
44CPU_PUB_DEFINE += -D_CPU_ZSP
45CPU_PUB_DEFINE += -DCPU_SHIFT=1
46endif
47
48#===============================================================================
49# Chip macro define
50#===============================================================================
51ifeq ($(PRJ_NAME),zx2804)
52CPU_PUB_DEFINE += -D_CHIP_ZX2804
53endif
54
55ifeq ($(PRJ_NAME),zx297510)
56CPU_PUB_DEFINE += -D_CHIP_ZX297510
57endif
58
59ifeq ($(PRJ_NAME),zx297520)
60CPU_PUB_DEFINE += -D_CHIP_ZX297520
61endif
62
63ifeq ($(PRJ_NAME),zx297520v1_1)
64CPU_PUB_DEFINE += -D_CHIP_ZX297520V1_1
65endif
66
67ifeq ($(PRJ_NAME),zx297520v2)
68CPU_PUB_DEFINE += -D_CHIP_ZX297520V2
69endif
70
71ifeq ($(PRJ_NAME),zx297520v3)
72CPU_PUB_DEFINE += -D_CHIP_ZX297520V3
73endif
74
75#===============================================================================
76# Project makefile
77#===============================================================================
78include $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/config/project.mk
79
80#===============================================================================
81# Project macro define
82#===============================================================================
83include $(CPU_PUB_ROOT)/config/infra_cfg.mk
84include $(CPU_PUB_ROOT)/config/ps_phy_cfg.mk
85include $(CPU_PUB_ROOT)/config/drv_cfg.mk
86include $(CPU_PUB_ROOT)/config/tools_cfg.mk
87include $(CPU_PUB_ROOT)/config/psm_cfg.mk
88include $(CPU_PUB_ROOT)/config/amt_cfg.mk
89