初始提交
This commit is contained in:
57
dtest/ate_ddr_flash_test/Makefile
Executable file
57
dtest/ate_ddr_flash_test/Makefile
Executable file
@@ -0,0 +1,57 @@
|
||||
|
||||
# OUTPUT type
|
||||
# 1 - .out
|
||||
# 2 - .a
|
||||
# 3 - .so
|
||||
OUTPUT_TYPE = 1
|
||||
OUTPUT_NAME = ate_ddr_flash_test
|
||||
|
||||
ifeq ($(target), kunlun2)
|
||||
hw_dep = hw2
|
||||
else
|
||||
hw_dep = hw
|
||||
endif
|
||||
|
||||
SUB_DIRS = $(TOPDIR)/common/os_shim/dtestos \
|
||||
|
||||
ADD_INCLUDE += $(TOPDIR)/inc/pkt \
|
||||
$(TOPDIR)/common/io_lib/inc \
|
||||
$(TOPDIR)/inc/dbglog \
|
||||
$(TOPDIR)/driver/inc \
|
||||
|
||||
LD_SCRIPT = link_soc.lds
|
||||
#LD_SCRIPT = link_flash_cco.lds
|
||||
|
||||
ADD_LIB = riscv
|
||||
ifeq ($(target), kunlun2)
|
||||
ADD_LIBDIR = $(TOPDIR)/startup/riscv2
|
||||
else
|
||||
ADD_LIBDIR = $(TOPDIR)/startup/riscv
|
||||
endif
|
||||
|
||||
ADD_LIBDIR += $(TOPDIR)/common $(TOPDIR)/driver
|
||||
|
||||
# becareful the seq of LIBs
|
||||
ADD_LIB += driver common
|
||||
#####################################################
|
||||
|
||||
ifdef TOPDIR
|
||||
include $(TOPDIR)/build/makefile.cfg
|
||||
else
|
||||
include $(CURDIR)/build/makefile.cfg
|
||||
TOPDIR = $(CURDIR)
|
||||
export TOPDIR
|
||||
endif
|
||||
|
||||
dump:
|
||||
$(OBJDUMP) -D -S -l $(OUTPUT_FULL_NAME) > $(OUTPUT_FULL_NAME).dump
|
||||
|
||||
# display the obj files and output name
|
||||
debug:
|
||||
@echo TOPDIR=$(TOPDIR)
|
||||
@echo OUTPUT_LIB=$(OUTPUT_FULL_NAME)
|
||||
@echo DEPS=$(DEPS)
|
||||
@echo OBJECTS=$(OBJECTS)
|
||||
@echo SRCS=$(SRCS)
|
||||
@echo OBJECTS folder=$(foreach dirname, $(SUB_DIRS), $(addprefix $(BIN_DIR)/, $(dirname)))
|
||||
@echo output_name=$(OUTPUT_FULL_NAME)
|
Reference in New Issue
Block a user