lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | # /*****************************************************************************
|
| 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 | #===============================================================================
|
| 18 | export CPU_PUB_INCLUDE = $(CPU_PUB_ROOT)/include
|
| 19 | export CPU_PUB_INFRA_INCLUDE = $(CPU_PUB_ROOT)/include/infra
|
| 20 | export CPU_PUB_PS_INCLUDE = $(CPU_PUB_ROOT)/include/ps_phy
|
| 21 | export CPU_PUB_DRV_INCLUDE = $(CPU_PUB_ROOT)/include/drv
|
| 22 | export CPU_PUB_TOOLS_INCLUDE = $(CPU_PUB_ROOT)/include/tools
|
| 23 | export CPU_PUB_PSM_INCLUDE = $(CPU_PUB_ROOT)/include/psm
|
| 24 | export CPU_PUB_AMT_INCLUDE = $(CPU_PUB_ROOT)/include/amt
|
| 25 |
|
| 26 | export CPU_PUB_PRJ_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include
|
| 27 | export CPU_PUB_PRJ_INFRA_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/infra
|
| 28 | export CPU_PUB_PRJ_PS_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/ps_phy
|
| 29 | export CPU_PUB_PRJ_DRV_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/drv
|
| 30 | export CPU_PUB_PRJ_TOOLS_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/tools
|
| 31 | export CPU_PUB_PRJ_PSM_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/psm
|
| 32 | export CPU_PUB_PRJ_AMT_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/amt
|
| 33 | export CPU_PUB_PRJ_NV_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/nv
|
| 34 |
|
| 35 | #===============================================================================
|
| 36 | # CPU arch define
|
| 37 | #===============================================================================
|
| 38 | ifeq ($(CPU_PUB_ARCH),ARM)
|
| 39 | CPU_PUB_DEFINE += -D_CPU_ARM
|
| 40 | CPU_PUB_DEFINE += -DCPU_SHIFT=0
|
| 41 | endif
|
| 42 |
|
| 43 | ifeq ($(CPU_PUB_ARCH),ZSP)
|
| 44 | CPU_PUB_DEFINE += -D_CPU_ZSP
|
| 45 | CPU_PUB_DEFINE += -DCPU_SHIFT=1
|
| 46 | endif
|
| 47 |
|
| 48 | #===============================================================================
|
| 49 | # Chip macro define
|
| 50 | #===============================================================================
|
| 51 | ifeq ($(PRJ_NAME),zx2804)
|
| 52 | CPU_PUB_DEFINE += -D_CHIP_ZX2804
|
| 53 | endif
|
| 54 |
|
| 55 | ifeq ($(PRJ_NAME),zx297510)
|
| 56 | CPU_PUB_DEFINE += -D_CHIP_ZX297510
|
| 57 | endif
|
| 58 |
|
| 59 | ifeq ($(PRJ_NAME),zx297520)
|
| 60 | CPU_PUB_DEFINE += -D_CHIP_ZX297520
|
| 61 | endif
|
| 62 |
|
| 63 | ifeq ($(PRJ_NAME),zx297520v1_1)
|
| 64 | CPU_PUB_DEFINE += -D_CHIP_ZX297520V1_1
|
| 65 | endif
|
| 66 |
|
| 67 | ifeq ($(PRJ_NAME),zx297520v2)
|
| 68 | CPU_PUB_DEFINE += -D_CHIP_ZX297520V2
|
| 69 | endif
|
| 70 |
|
| 71 | ifeq ($(PRJ_NAME),zx297520v3)
|
| 72 | CPU_PUB_DEFINE += -D_CHIP_ZX297520V3
|
| 73 | endif
|
| 74 |
|
| 75 | #===============================================================================
|
| 76 | # Project makefile
|
| 77 | #===============================================================================
|
| 78 | include $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/config/project.mk
|
| 79 |
|
| 80 | #===============================================================================
|
| 81 | # Project macro define
|
| 82 | #===============================================================================
|
| 83 | include $(CPU_PUB_ROOT)/config/infra_cfg.mk
|
| 84 | include $(CPU_PUB_ROOT)/config/ps_phy_cfg.mk
|
| 85 | include $(CPU_PUB_ROOT)/config/drv_cfg.mk
|
| 86 | include $(CPU_PUB_ROOT)/config/tools_cfg.mk
|
| 87 | include $(CPU_PUB_ROOT)/config/psm_cfg.mk
|
| 88 | include $(CPU_PUB_ROOT)/config/amt_cfg.mk
|
| 89 |
|