diff --git a/tools/find_build_apps/common.py b/tools/find_build_apps/common.py index 160c383249..56e9f6b11b 100644 --- a/tools/find_build_apps/common.py +++ b/tools/find_build_apps/common.py @@ -256,7 +256,8 @@ class BuildItem(object): map_file = find_first_match('*.map', self.build_path) if not map_file: - raise ValueError('.map file not found under "{}"'.format(self.build_path)) + logging.info('.map file not found under "{}"'.format(self.build_path)) + return None size_json_fp = os.path.join(self.build_path, SIZE_JSON_FN) idf_size_args = [ @@ -271,7 +272,8 @@ class BuildItem(object): def write_size_info(self, size_info_fs): if not self.size_json_fp or (not os.path.exists(self.size_json_fp)): - raise OSError('Run get_size_json_fp() for app {} after built binary'.format(self.app_dir)) + logging.info(f'No size info found for app {self._app_name}') + return size_info_dict = { 'app_name': self._app_name, 'config_name': self.config_name, diff --git a/tools/test_apps/system/g0_components/CMakeLists.txt b/tools/test_apps/system/g0_components/CMakeLists.txt index f5a2d8d857..e2845ec95b 100644 --- a/tools/test_apps/system/g0_components/CMakeLists.txt +++ b/tools/test_apps/system/g0_components/CMakeLists.txt @@ -6,6 +6,15 @@ cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) +# As this G0 example is not runnable as-is, the map file generated won't some important +# sections. Thus, in order to prevent IDF from generating a map file at all, specify +# null device as the destination file. +if(WIN32) + idf_build_set_property(LINK_OPTIONS "-Wl,--Map=NUL" APPEND) +else() + idf_build_set_property(LINK_OPTIONS "-Wl,--Map=/dev/null" APPEND) +endif() + # Force this project to use only G0 components set(all_g0_components esp_rom soc hal esp_common main) # also , i.e. xtensa or riscv, will be added below set(COMPONENTS ${all_g0_components})