YB_Platform/public/make/makefile.ape_spu
xinxin.li a9180edc85 1.commit normalization drv version;
2.add ecpri code;
3.test case: case34,case44,case21(CPRI/JESD mode)
2023-09-22 19:47:02 +08:00

59 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ==============================================================================
# ape makefile
#FileName makefile.ape
#Author: xianfeng.du
#Data 2022-08-10
#Description: ape 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)/ape_spu
LD_FLAGS += -lsmartos
#DEFINES += OSP_ENABLE
#idx := $(shell echo $$(($(ape_id) % 2)))
#LINK_FILE := $(UCP_INC)/ape$(idx)-Cache128-noMPUC.ld
idx := $(shell echo $$(($(ape_id))))
LINK_FILE := $(DIR_MAKE)/ld/ape$(idx)-Cache128-noMPUC.ld
DIR_APE_DD := $(DIR_APE)/driver
DIR_APE_OSP := $(DIR_APE)/osp
DIR_APE_TOP := $(DIR_APE)/top
DIRS_SRC_FOLDER += $(DIR_APE_DD) $(DIR_APE_TOP) $(DIR_APE_OSP)
# Allow certain files to be excluded from the build
TOP_SRC_FILE := $(DIR_APE_TOP)/src/phy_init.s.c
#EXCL_SRCS_FILES := $(TOP_SRC_FILE)
# ==============================================================================
# common: Output Files and Compilation Rules
# ==============================================================================
ifeq ($(test_option),yes)
DEFINES += TEST_ENABLE
include $(MAKE_DIR)/makefile.test_osp
endif
ifeq ($(fronthaul_option),cpri)
DEFINES += DISTRIBUTED_BS
else ifeq ($(fronthaul_option),ecpri)
DEFINES += ECPRI_DISTRIBUTED_BS
else ifeq ($(fronthaul_option),jesd)
DEFINES += INTEGRATED_BS
else
$(info "error fronthaul_option=" $(fronthaul_option))
endif
include $(MAKE_DIR)/makefile.common