mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
ci: fixed custom partition table subtype test not compiling for linux
This commit is contained in:
committed by
Fu Hanxi
parent
9153f9c927
commit
ff7fce9739
@@ -3,6 +3,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
set(COMPONENTS main partition_table custom)
|
||||||
|
|
||||||
project(custom_partition_subtypes)
|
project(custom_partition_subtypes)
|
||||||
|
|
||||||
@@ -20,6 +21,10 @@ add_custom_command(OUTPUT ${blank_file}
|
|||||||
${partition_size} ${blank_file})
|
${partition_size} ${blank_file})
|
||||||
|
|
||||||
add_custom_target(blank_bin ALL DEPENDS ${blank_file})
|
add_custom_target(blank_bin ALL DEPENDS ${blank_file})
|
||||||
add_dependencies(flash blank_bin)
|
|
||||||
|
|
||||||
|
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}")
|
esptool_py_flash_to_partition(flash "${partition}" "${blank_file}")
|
||||||
|
endif()
|
||||||
|
@@ -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")
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||||
|
Reference in New Issue
Block a user