70 lines
1.9 KiB
Makefile
70 lines
1.9 KiB
Makefile
|
|
# OUTPUT type
|
|
# 1 - .out
|
|
# 2 - .a
|
|
# 3 - .so
|
|
OUTPUT_TYPE = 0
|
|
OUTPUT_NAME = dtest
|
|
|
|
ifeq ($(target), kunlun3)
|
|
hw_dep = hw3
|
|
endif
|
|
ifeq ($(CLEANUP_OPT), 1)
|
|
SUB_DIRS = $(TOPDIR)/common $(TOPDIR)/driver $(TOPDIR)/bb_cpu $(TOPDIR)/startup $(TOPDIR)/os $(TOPDIR)/pib $(TOPDIR)/plc
|
|
endif
|
|
|
|
ifeq ($(target), kunlun3)
|
|
ifneq ($(findstring $(build_amp_type), 0 2),)
|
|
# SUB_DIRS += mac_phy mac_rx_test mac_tx_test
|
|
# SUB_DIRS += kl3_amp_gpio_test kl3_cache_ram_test kl3_dma_sw_test kl3_dma_uart_test kl3_efuse_test \
|
|
# kl3_exception_test kl3_fft_test kl3_gp_timer_test kl3_gpio_test kl3_gpio_test2 kl3_i2c_test \
|
|
# kl3_intc_monitor_test kl3_ledc_test kl3_mailbox_amp_test kl3_mailbox_amp_test_1 kl3_mailbox_test \
|
|
# kl3_multi_core_debug_test kl3_multi_core_plc_test kl3_multi_uart_test kl3_os_sec_test kl3_os_spi_test \
|
|
# kl3_os_systick_test kl3_os_test kl3_pmp_test kl3_pwm_test kl3_rstflag_test kl3_rtc_test \
|
|
# kl3_sadc_dma_hw_test kl3_sadc_test kl3_sfc_test kl3_smc_test kl3_spi_dma_hw_test kl3_spinlock_test \
|
|
# kl3_uart_dma_hw_test kl3_uart_test kl3_wdg_test unit_test_ledc unit_test_pwm kl3_bond_test \
|
|
# kl3_sadc_reg_ctrl_test
|
|
SUB_DIRS += kl3_gpio_uart
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(dtest_only), 1)
|
|
PRE_MARCO += IOT_DTEST_ONLY_SUPPORT=1
|
|
endif
|
|
|
|
# .h files dir
|
|
ADD_INCLUDE +=
|
|
|
|
ifeq ($(target), kunlun3)
|
|
ADD_INCLUDE += $(TOPDIR)/driver/src/hw3/inc
|
|
endif
|
|
|
|
# predefined macro
|
|
PRE_MARCO +=
|
|
|
|
# lib dir
|
|
ADD_LIBDIR =
|
|
|
|
# lib need to ld together
|
|
ADD_LIB =
|
|
|
|
#$(warning TOPDIR=$(TOPDIR))
|
|
|
|
ifdef TOPDIR
|
|
include $(TOPDIR)/build/makefile.cfg
|
|
else
|
|
include $(CURDIR)/build/makefile.cfg
|
|
TOPDIR = $(CURDIR)
|
|
export TOPDIR
|
|
endif
|
|
|
|
# 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)
|