59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
# ==============================================================================
|
||
# 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
|