# /***************************************************************************** | |
#* °æÈ¨ËùÓÐ (C)2015, ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£ | |
#* | |
#* ÎļþÃû³Æ: project.mk | |
#* Îļþ±êʶ: project.mk | |
#* ÄÚÈÝÕªÒª: ¹¤³ÌÅäÖÃÎļþ | |
#* ʹÓ÷½·¨: include project.mk | |
#* | |
#* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ Ð޸ıê¼Ç ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ | |
#* ----------------------------------------------------------------------------- | |
#* 2015/05/08 V1.0 Create ÁõÑÇÄÏ ´´½¨ | |
#* | |
# ******************************************************************************/ | |
#=============================================================================== | |
# Include path | |
#=============================================================================== | |
export CPU_PUB_INCLUDE = $(CPU_PUB_ROOT)/include | |
export CPU_PUB_INFRA_INCLUDE = $(CPU_PUB_ROOT)/include/infra | |
export CPU_PUB_PS_INCLUDE = $(CPU_PUB_ROOT)/include/ps_phy | |
export CPU_PUB_DRV_INCLUDE = $(CPU_PUB_ROOT)/include/drv | |
export CPU_PUB_TOOLS_INCLUDE = $(CPU_PUB_ROOT)/include/tools | |
export CPU_PUB_PSM_INCLUDE = $(CPU_PUB_ROOT)/include/psm | |
export CPU_PUB_AMT_INCLUDE = $(CPU_PUB_ROOT)/include/amt | |
export CPU_PUB_PRJ_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include | |
export CPU_PUB_PRJ_INFRA_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/infra | |
export CPU_PUB_PRJ_PS_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/ps_phy | |
export CPU_PUB_PRJ_DRV_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/drv | |
export CPU_PUB_PRJ_TOOLS_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/tools | |
export CPU_PUB_PRJ_PSM_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/psm | |
export CPU_PUB_PRJ_AMT_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/amt | |
export CPU_PUB_PRJ_NV_INCLUDE = $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/include/nv | |
#=============================================================================== | |
# CPU arch define | |
#=============================================================================== | |
ifeq ($(CPU_PUB_ARCH),ARM) | |
CPU_PUB_DEFINE += -D_CPU_ARM | |
CPU_PUB_DEFINE += -DCPU_SHIFT=0 | |
endif | |
ifeq ($(CPU_PUB_ARCH),ZSP) | |
CPU_PUB_DEFINE += -D_CPU_ZSP | |
CPU_PUB_DEFINE += -DCPU_SHIFT=1 | |
endif | |
#=============================================================================== | |
# Chip macro define | |
#=============================================================================== | |
ifeq ($(PRJ_NAME),zx2804) | |
CPU_PUB_DEFINE += -D_CHIP_ZX2804 | |
endif | |
ifeq ($(PRJ_NAME),zx297510) | |
CPU_PUB_DEFINE += -D_CHIP_ZX297510 | |
endif | |
ifeq ($(PRJ_NAME),zx297520) | |
CPU_PUB_DEFINE += -D_CHIP_ZX297520 | |
endif | |
ifeq ($(PRJ_NAME),zx297520v1_1) | |
CPU_PUB_DEFINE += -D_CHIP_ZX297520V1_1 | |
endif | |
ifeq ($(PRJ_NAME),zx297520v2) | |
CPU_PUB_DEFINE += -D_CHIP_ZX297520V2 | |
endif | |
ifeq ($(PRJ_NAME),zx297520v3) | |
CPU_PUB_DEFINE += -D_CHIP_ZX297520V3 | |
endif | |
#=============================================================================== | |
# Project makefile | |
#=============================================================================== | |
include $(CPU_PUB_ROOT)/project/$(PRJ_NAME)/config/project.mk | |
#=============================================================================== | |
# Project macro define | |
#=============================================================================== | |
include $(CPU_PUB_ROOT)/config/infra_cfg.mk | |
include $(CPU_PUB_ROOT)/config/ps_phy_cfg.mk | |
include $(CPU_PUB_ROOT)/config/drv_cfg.mk | |
include $(CPU_PUB_ROOT)/config/tools_cfg.mk | |
include $(CPU_PUB_ROOT)/config/psm_cfg.mk | |
include $(CPU_PUB_ROOT)/config/amt_cfg.mk | |