mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
CI: examples generating an ELF file only can now pass CI
This commit is contained in:
parent
2fd784c97a
commit
6783f52045
@ -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,
|
||||
|
@ -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 <arch>, i.e. xtensa or riscv, will be added below
|
||||
set(COMPONENTS ${all_g0_components})
|
||||
|
Loading…
x
Reference in New Issue
Block a user