not_clean 时不重复编译
This commit is contained in:
@@ -31,6 +31,8 @@ export dtest_only=1
|
||||
|
||||
set -o errexit
|
||||
|
||||
export CLEANUP_OPT
|
||||
|
||||
if [ "${CLEANUP_OPT}" == "1" ]; then
|
||||
make -j -C .. clobber
|
||||
make -j -C .. dtest_clean
|
||||
|
@@ -11,7 +11,8 @@ if __name__ == "__main__":
|
||||
time_start=time.time()
|
||||
if(len(sys.argv)>2):
|
||||
cmd=f"{' '.join(sys.argv[1:])} > build_log.log"
|
||||
os.system("python3 ../clear_output.py > /dev/null")
|
||||
if not ('not_clean' in sys.argv[1:]):
|
||||
os.system("python3 ../clear_output.py > /dev/null")
|
||||
path="../tools/gen_img/customer"
|
||||
if os.path.exists(path):
|
||||
shutil.rmtree(path)
|
||||
|
@@ -9,20 +9,22 @@ 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 += 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
|
||||
|
||||
|
Reference in New Issue
Block a user