From 3e944a4ad1841023559baeab30b4d20e62b16ae0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=AD=99=E6=98=A5=E9=98=B3?= Date: Fri, 1 Aug 2025 16:56:21 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8Dssb=20=E9=85=8D=E7=BD=AE?= =?utf8?q?=E9=94=99=E8=AF=AF=E9=80=A0=E6=88=90=E7=9A=84application.bin?= =?utf8?q?=E4=B8=8B=E8=BD=BD=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../acore/brandy_native_js_fd230_ssb.config | 18 ++++++++++++++++++ code/sdk/build/script/cmake_builder.py | 2 +- .../sdk/tools/pkg/chip_packet/brandy/packet.py | 3 +++ code/sdk/tools/pkg/packet.py | 6 ++++-- 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config diff --git a/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config b/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config new file mode 100644 index 000000000..b308abd06 --- /dev/null +++ b/code/sdk/build/config/target_config/brandy/menuconfig/acore/brandy_native_js_fd230_ssb.config @@ -0,0 +1,18 @@ +# Generated by Kconfig Tool. +# Note: !!!This file can not be modify manually!!! + +# +# Main menu description, show how to use this configuration system. +# + +# +# Product +# + +# +# Config the product. +# +CONFIG_NORFLASH_SIZE=16 +CONFIG_LOAD_FROM_FS=y +CONFIG_PSRAM_DENSITY_MB=32 +# end of Product diff --git a/code/sdk/build/script/cmake_builder.py b/code/sdk/build/script/cmake_builder.py index 21273aaf9..8ce1e2c09 100644 --- a/code/sdk/build/script/cmake_builder.py +++ b/code/sdk/build/script/cmake_builder.py @@ -321,7 +321,7 @@ class CMakeBuilder(BuildEnvironment): menuconfig_argv = ["", "savemenuconfig", chip, core, target_name, output_path] mconfig(menuconfig_argv) save_kconfig_env(env, mconfig_file_path) - + print("{}".format(mconfig_file_path)) os.chdir(output_path) log_file_name = "build_%s.log" % target_name log_file = os.path.join(output_root, chip, log_file_name) diff --git a/code/sdk/tools/pkg/chip_packet/brandy/packet.py b/code/sdk/tools/pkg/chip_packet/brandy/packet.py index 1bc4d08a5..f3783ace7 100644 --- a/code/sdk/tools/pkg/chip_packet/brandy/packet.py +++ b/code/sdk/tools/pkg/chip_packet/brandy/packet.py @@ -55,6 +55,7 @@ def build_brandy_other_bin(pack_style_str, flash_size, no_dsp): nv_begin(nv_config_json, targets, 0) def make_all_in_one_packet_8M(pack_style_str): + print("make_all_in_one_packet_8M") # make all in one packet target_env = TargetEnvironment(pack_style_str) bin_dir = os.path.join(PKG_DIR, "bin", "brandy") @@ -118,6 +119,7 @@ def make_all_in_one_packet_8M(pack_style_str): exit(-1) def make_all_in_one_packet_no_dsp(pack_style_str): + print("make_all_in_one_packet_no_dsp") # make all in one packet target_env = TargetEnvironment(pack_style_str) bin_dir = os.path.join(PKG_DIR, "bin", "brandy") @@ -174,6 +176,7 @@ def make_all_in_one_packet_no_dsp(pack_style_str): def make_all_in_one_packet_16M(pack_style_str): # make all in one packet + print("make_all_in_one_packet_16M") target_env = TargetEnvironment(pack_style_str) bin_dir = os.path.join(PKG_DIR, "bin", "brandy") application_dir = os.path.join(SDK_DIR, diff --git a/code/sdk/tools/pkg/packet.py b/code/sdk/tools/pkg/packet.py index 2656055ba..a07d54a3f 100644 --- a/code/sdk/tools/pkg/packet.py +++ b/code/sdk/tools/pkg/packet.py @@ -13,8 +13,10 @@ sys.dont_write_bytecode = True def main(): arg_ls = sys.argv - if len(arg_ls) != 4: - print("Parameter error") + arglen = len(arg_ls) + if arglen != 5: + print("Parameter error {}".format(arglen)) + build_soc = sys.argv[1] build_target = sys.argv[2] flash_size = sys.argv[3] -- 2.17.1