ci: fixed custom partition table subtype test not compiling for linux

pull/11189/head
Marius Vikhammer 2023-04-07 10:41:58 +08:00 zatwierdzone przez Fu Hanxi
rodzic 9153f9c927
commit ff7fce9739
2 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(COMPONENTS main partition_table custom)
project(custom_partition_subtypes)
@ -20,6 +21,10 @@ add_custom_command(OUTPUT ${blank_file}
${partition_size} ${blank_file})
add_custom_target(blank_bin ALL DEPENDS ${blank_file})
add_dependencies(flash blank_bin)
esptool_py_flash_to_partition(flash "${partition}" "${blank_file}")
idf_build_get_property(target IDF_TARGET)
if(NOT ${target} STREQUAL "linux")
add_dependencies(flash blank_bin)
esptool_py_flash_to_partition(flash "${partition}" "${blank_file}")
endif()

Wyświetl plik

@ -1,2 +1,3 @@
idf_component_register(SRCS test_main.c)
idf_component_register(SRCS test_main.c
REQUIRES esp_partition)
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")