-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Fixed failing CI because of idf-build-apps v2.5
- Upgraded class test_apps to v5.0 - Fixed idf-build-apps version to prevent future regressions
- Loading branch information
1 parent
dfcb08a
commit 3243adc
Showing
17 changed files
with
27 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
target = "all" | ||
exclude = [ | ||
"clang_tidy", | ||
] | ||
|
23 changes: 2 additions & 21 deletions
23
host/class/cdc/usb_host_cdc_acm/test_app/main/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
include($ENV{IDF_PATH}/tools/cmake/version.cmake) | ||
set (TINYUSB_LIB) | ||
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0") | ||
set(TINYUSB_LIB "esp_tinyusb") | ||
else() | ||
set(TINYUSB_LIB "tinyusb") | ||
endif() | ||
|
||
# TODO: once IDF_v4.4 is at the EOL support, use WHOLE_ARCHIVE | ||
idf_component_register(SRCS "test_cdc_acm_host.c" "usb_device.c" "test_app_main.c" | ||
INCLUDE_DIRS "." | ||
REQUIRES usb_host_cdc_acm unity ${TINYUSB_LIB}) | ||
|
||
# In order for the cases defined by `TEST_CASE` to be linked into the final elf, | ||
# the component can be registered as WHOLE_ARCHIVE | ||
|
||
# Due to the backward compatibility to IDFv4.4 (in which WHOLE_ARCHIVE is not implemented) we use following approach: | ||
# Any non-static function test_app/main/*.c (apart from test_app_main.c) file is added as an undefined symbol | ||
# because otherwise the linker will ignore test_app/main/*.c as it has no other files depending on any | ||
# symbols in it. | ||
|
||
# force-link test_cdc_acm_host.c | ||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u usb_lib_task") | ||
REQUIRES usb_host_cdc_acm unity esp_tinyusb | ||
WHOLE_ARCHIVE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
include($ENV{IDF_PATH}/tools/cmake/version.cmake) | ||
set (TINYUSB_LIB) | ||
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0") | ||
set(TINYUSB_LIB "esp_tinyusb") | ||
else() | ||
set(TINYUSB_LIB "tinyusb") | ||
endif() | ||
|
||
# TODO: once IDF_v4.4 is at the EOL support, use WHOLE_ARCHIVE | ||
idf_component_register(SRC_DIRS . | ||
INCLUDE_DIRS . | ||
REQUIRES unity usb usb_host_hid ${TINYUSB_LIB}) | ||
|
||
# In order for the cases defined by `TEST_CASE` to be linked into the final elf, | ||
# the component can be registered as WHOLE_ARCHIVE | ||
|
||
# Due to the backward compatibility to IDFv4.4 (in which WHOLE_ARCHIVE is not implemented) we use following approach: | ||
# Any non-static function test_app/main/*.c (apart from test_app_main.c) file is added as an undefined symbol | ||
# because otherwise the linker will ignore test_app/main/*.c as it has no other files depending on any | ||
# symbols in it. | ||
|
||
# force-link test_hid_basic.c | ||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u test_hid_setup") | ||
# force-link test_hid_err_handling.c | ||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u test_interface_callback_handler") | ||
idf_component_register(SRC_DIRS . | ||
INCLUDE_DIRS . | ||
REQUIRES unity usb usb_host_hid esp_tinyusb | ||
WHOLE_ARCHIVE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,4 @@ | ||
include($ENV{IDF_PATH}/tools/cmake/version.cmake) | ||
set (TINYUSB_LIB) | ||
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0") | ||
set(TINYUSB_LIB "esp_tinyusb") | ||
else() | ||
set(TINYUSB_LIB "tinyusb") | ||
endif() | ||
|
||
# TODO: once IDF_v4.4 is at the EOL support, use WHOLE_ARCHIVE | ||
idf_component_register(SRC_DIRS . | ||
INCLUDE_DIRS . | ||
REQUIRES unity usb usb_host_msc ${TINYUSB_LIB}) | ||
|
||
# In order for the cases defined by `TEST_CASE` to be linked into the final elf, | ||
# the component can be registered as WHOLE_ARCHIVE | ||
|
||
# Due to the backward compatibility to IDFv4.4 (in which WHOLE_ARCHIVE is not implemented) we use following approach: | ||
# Any non-static function test_app/main/*.c (apart from test_app_main.c) file is added as an undefined symbol | ||
# because otherwise the linker will ignore test_app/main/*.c as it has no other files depending on any | ||
# symbols in it. | ||
|
||
# force-link test_msc.c - void function linker_hook created because: | ||
# no non-static function | ||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u linker_hook") | ||
REQUIRES unity usb usb_host_msc esp_tinyusb | ||
WHOLE_ARCHIVE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,4 @@ | ||
include($ENV{IDF_PATH}/tools/cmake/version.cmake) | ||
set (TINYUSB_LIB) | ||
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0") | ||
set(TINYUSB_LIB "esp_tinyusb") | ||
else() | ||
set(TINYUSB_LIB "tinyusb") | ||
endif() | ||
|
||
# TODO: once IDF_v4.4 is at the EOL support, use WHOLE_ARCHIVE | ||
idf_component_register(SRCS "test_uvc.c" "libusb_parse.c" "test_app_main.c" | ||
INCLUDE_DIRS "." "../../private_include" | ||
REQUIRES usb_host_uvc usb unity) | ||
|
||
# In order for the cases defined by `TEST_CASE` to be linked into the final elf, | ||
# the component can be registered as WHOLE_ARCHIVE | ||
|
||
# Due to the backward compatibility to IDFv4.4 (in which WHOLE_ARCHIVE is not implemented) we use following approach: | ||
# Any non-static function from test_app/main/*.c (apart from test_app_main.c) file is added as an undefined symbol | ||
# because otherwise the linker will ignore test_app/main/*.c as it has no other files depending on any | ||
# symbols in it. | ||
|
||
# force-link test_uvc.c - void function linker_hook created because: | ||
# no non-static function | ||
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u linker_hook") | ||
REQUIRES usb_host_uvc usb unity | ||
WHOLE_ARCHIVE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters