2023-07-13 11:27:03 +08:00
|
|
|
|
# ==============================================================================
|
|
|
|
|
# ecs_rfm0 makefile
|
|
|
|
|
#FileName: makefile.ecs_rfm0
|
|
|
|
|
#Author: xianfeng.du
|
|
|
|
|
#Data: 2022-08-10
|
|
|
|
|
#Description: ecs_rfm0 top makefile
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
VERSION = 1.00
|
|
|
|
|
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
# include common makefile Rules
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
include $(MAKE_DIR)/makefile.config
|
|
|
|
|
include $(MAKE_DIR)/makefile.toolchain
|
|
|
|
|
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
# files DIR definition
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
DIRS_LIB_FOLDER += $(DIR_LIB)/rfm_spu
|
|
|
|
|
|
|
|
|
|
LD_FLAGS += -linterrupt
|
|
|
|
|
|
|
|
|
|
#LINK_FILE := $(UCP_INC)/ECS_RFM-spu0-noCache.ld
|
2023-09-11 19:16:30 +08:00
|
|
|
|
LINK_FILE := $(DIR_MAKE)/ld/ecs-rfm-spu0-noCache.ld
|
2023-07-13 11:27:03 +08:00
|
|
|
|
|
|
|
|
|
DIRS_SRC_FOLDER += $(DIR_COMMON)/ecs_dm
|
|
|
|
|
DIRS_SRC_FOLDER += $(DIR_COMMON)/app
|
|
|
|
|
DIRS_SRC_FOLDER += $(DIR_ECS_SPU0)/driver
|
2023-09-26 16:46:56 +08:00
|
|
|
|
#DIRS_SRC_FOLDER += $(DIR_ECS_SPU0)/platform
|
2023-07-13 11:27:03 +08:00
|
|
|
|
DIRS_SRC_FOLDER += $(DIR_ECS_SPU0)/top
|
|
|
|
|
|
|
|
|
|
# Allow certain files to be excluded from the build
|
|
|
|
|
#TOP_SRC_FILE := $(DIR_ECS_SPU0)/top/src/phy_init.s.c
|
|
|
|
|
#EXCL_SRCS_FILES := $(TOP_SRC_FILE)
|
|
|
|
|
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
# common: Output Files and Compilation Rules
|
|
|
|
|
# ==============================================================================
|
2023-12-14 10:55:49 +08:00
|
|
|
|
ifeq ($(fronthaul_option),ecpri)
|
|
|
|
|
DEFINES += ECPRI_DISTRIBUTED_BS
|
|
|
|
|
DEFINES += ECS_RFM0
|
|
|
|
|
|
|
|
|
|
ifeq ($(test_option),yes)
|
|
|
|
|
DEFINES += TEST_ENABLE
|
|
|
|
|
include $(MAKE_DIR)/makefile.test_fh
|
|
|
|
|
endif
|
|
|
|
|
else
|
|
|
|
|
$(info "error fronthaul_option=" $(fronthaul_option))
|
|
|
|
|
endif
|
2023-07-13 11:27:03 +08:00
|
|
|
|
|
|
|
|
|
include $(MAKE_DIR)/makefile.common
|