From e2649fd66ee5f6bd11d3e9fa8a8141dc56a31f1f Mon Sep 17 00:00:00 2001 From: ranchuan Date: Wed, 19 Feb 2025 18:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=88=96=E4=B8=8A=E4=BC=A0fl?= =?UTF-8?q?ash=E6=97=B6=E4=B9=9F=E5=8F=AF=E4=BB=A5=E9=80=9A=E8=BF=87=20--r?= =?UTF-8?q?am=5Ffile=20=E6=8C=87=E5=AE=9Aram.bin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kunlun.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kunlun.py b/kunlun.py index 96b19e1..13ca97d 100644 --- a/kunlun.py +++ b/kunlun.py @@ -370,11 +370,13 @@ def global_def(): if args.kunlun_version is None: args.kunlun_version=check_bin_type(iot_flash_file) ram_file=f'kl{args.kunlun_version}_ram_build.bin' - ram_file=os.path.join(bin_path(),ram_file) + ram_file=ram_file_redirect(ram_file) else: function_type='upload' ram_file=f'bootram_kl{args.kunlun_version}.bin' - ram_file=os.path.join(bin_path(),ram_file) + ram_file=ram_file_redirect(ram_file) + if(args.ram_file is not None): + ram_file=ram_file_redirect(args.ram_file) if(args.kunlun_version is None): print("请指定参数 -k") sys.exit(-1)