${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
)
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();
import subprocess, fileinput
from multiprocessing import cpu_count
from colorama import init
-from datetime import datetime
init(autoreset=True)
# set global path and value
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
#
global common_path
global script_path
global board_path
- global build_start_time_str
+
if cmd == "mkpkg":
set_subsys_config("ap")
else:
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:
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()