diff --git a/.gitignore b/.gitignore index cacc45f..ce73ed7 100644 --- a/.gitignore +++ b/.gitignore @@ -11,8 +11,7 @@ make_flags.txt # vscode_cpp_setting.py python_script_log.log build_log.log -sec_cpu_cco.addrs.ld -sec_cpu_sta.addrs.ld +*.addrs.ld sp_applet.txt # file_exclude.py KL3_SG_BUILD_RECORE @@ -40,3 +39,4 @@ tools/ram/ mfgtool/ah/ah mfgtool/lzma/elzma mfgtool/oem_tool/oem_tool +mfgtool/*.o diff --git a/mfgtool/ah/add_header.o b/mfgtool/ah/add_header.o deleted file mode 100644 index c4fbe18..0000000 Binary files a/mfgtool/ah/add_header.o and /dev/null differ diff --git a/mfgtool/bootram/bootram/shell/cmd_line/src/iot_bootram_command_line.c b/mfgtool/bootram/bootram/shell/cmd_line/src/iot_bootram_command_line.c index a05240d..285f3ae 100644 --- a/mfgtool/bootram/bootram/shell/cmd_line/src/iot_bootram_command_line.c +++ b/mfgtool/bootram/bootram/shell/cmd_line/src/iot_bootram_command_line.c @@ -661,21 +661,25 @@ static void btm_receive_command(char *buf, int len) return; } +// int iot_btm_command_secret_grade_match(int secret_flag) +// { +// int flag; + +// if (SECRET_PLTF_USER == cline_commands.secret_grade) { +// flag = SECRET_CMD_USER; +// } else if (SECRET_PLTF_ADMIN == cline_commands.secret_grade) { +// flag = SECRET_CMD_USER | SECRET_CMD_ADMIN; +// } else if (SECRET_PLTF_DEBUGER == cline_commands.secret_grade) { +// flag = SECRET_CMD_USER | SECRET_CMD_ADMIN | SECRET_CMD_DEBUGER; +// } else { +// flag = 0; +// } + +// return (flag & secret_flag) ? 1 : 0; +// } int iot_btm_command_secret_grade_match(int secret_flag) { - int flag; - - if (SECRET_PLTF_USER == cline_commands.secret_grade) { - flag = SECRET_CMD_USER; - } else if (SECRET_PLTF_ADMIN == cline_commands.secret_grade) { - flag = SECRET_CMD_USER | SECRET_CMD_ADMIN; - } else if (SECRET_PLTF_DEBUGER == cline_commands.secret_grade) { - flag = SECRET_CMD_USER | SECRET_CMD_ADMIN | SECRET_CMD_DEBUGER; - } else { - flag = 0; - } - - return (flag & secret_flag) ? 1 : 0; + return 1; } int iot_btm_command_break_detect(void) diff --git a/mfgtool/oem_tool/hw/oem_tool_hw.o b/mfgtool/oem_tool/hw/oem_tool_hw.o deleted file mode 100644 index 24d0b7a..0000000 Binary files a/mfgtool/oem_tool/hw/oem_tool_hw.o and /dev/null differ diff --git a/sbl/src/common.c b/sbl/src/common.c index b3f61db..296df49 100644 --- a/sbl/src/common.c +++ b/sbl/src/common.c @@ -35,7 +35,7 @@ const char patter[] = "entry_sbl_cli"; #define PATTERN_LEN (sizeof(patter) -1) uint32_t g_is_first_run = 1; -uint32_t g_is_print_enable = 0; +uint32_t g_is_print_enable = 1; extern uint32_t g_flash_size; char console_buffer[CMD_CBSIZE];