From dcd8615d5d2e2f83e5e9b624d314a708a7052e34 Mon Sep 17 00:00:00 2001 From: "cheng.chen" Date: Thu, 18 Jun 2026 11:51:38 +0800 Subject: [PATCH] =?utf8?q?=E7=BC=96=E8=AF=91=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 2.code/aicos/app/AI_AMP_2_5/CMakeLists.txt | 2 -- 2.code/aicos/app/AI_AMP_2_5/dev_authentication.c | 2 +- 2.code/make.py | 16 ++++------------ 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/2.code/aicos/app/AI_AMP_2_5/CMakeLists.txt b/2.code/aicos/app/AI_AMP_2_5/CMakeLists.txt index feb6784..0ed5dfa 100644 --- a/2.code/aicos/app/AI_AMP_2_5/CMakeLists.txt +++ b/2.code/aicos/app/AI_AMP_2_5/CMakeLists.txt @@ -11,8 +11,6 @@ aic_library_sources_ifdef( ${AIC_SOURCE_ROOT}/app/AI_AMP_2_5/bk_key.c ${AIC_SOURCE_ROOT}/app/AI_AMP_2_5/dev_authentication.c ${AIC_SOURCE_ROOT}/app/AI_AMP_2_5/bk_opus_coder.c - ${AIC_SOURCE_ROOT}/app/AI_AMP_2_5/aic_mp3decoder_api.c - ${AIC_SOURCE_ROOT}/app/AI_AMP_2_5/aic_mp3decoder_demo.c ) diff --git a/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c b/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c index 5ea0eef..6f341ea 100644 --- a/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c +++ b/2.code/aicos/app/AI_AMP_2_5/dev_authentication.c @@ -496,7 +496,7 @@ void aic_https_demotest(char *url_play) bk_printf("https get data %d ",lbytes); - play_audio_done_duplex(buff, bytes, 16000, 0); + // play_audio_done_duplex(buff, bytes, 16000, 0); //audio_data(buff,lbytes,37); resetClose_time(); diff --git a/2.code/make.py b/2.code/make.py index f5f9353..0e672a6 100644 --- a/2.code/make.py +++ b/2.code/make.py @@ -6,7 +6,6 @@ import os, sys, time, re, shutil, platform import subprocess, fileinput from multiprocessing import cpu_count from colorama import init -from datetime import datetime init(autoreset=True) # set global path and value @@ -23,9 +22,7 @@ global md_board_name, nv_board_name, nvram_board_config global subsys_config, board_config global binary_path, board_path, common_path global maincmd, subcmd, thirdcmd -# 获取当前日期时间 -now = datetime.now() -build_start_time_str = now.strftime("%Y_%m_%d_%H_%M_%S") + # # Get build command parameter # @@ -685,7 +682,7 @@ def aicos_build(cmd): global common_path global script_path global board_path - global build_start_time_str + if cmd == "mkpkg": set_subsys_config("ap") else: @@ -765,7 +762,7 @@ def aicos_build(cmd): suffix = "release" else: suffix = "debug" - suffix +="_{}".format(build_start_time_str) + pkg_cfg_dir = targets_path + "/" + chip_name + "/" + project_name + "/pkg" for root, dirs, files in os.walk(pkg_cfg_dir): for pkg_cfg_name in files: @@ -1063,13 +1060,8 @@ def kconfig_build(subsys, kcfg_cmd): except: print("Unexpected error:", sys.exc_info()) exit(1) -def add_make_time_file(): - global build_start_time_str - with open('aicos/app/AI_AMP_2_5/bk_make_time.h', 'w', encoding='utf-8') as file: - file.write('const char *bk_make_timer = \"{}\";\n'.format(build_start_time_str)) + if __name__ == '__main__': - #创建版本.h文件 - add_make_time_file() # Init global board parameters. get_board_config() -- 2.17.1