Commit Graph

14 Commits

Author SHA1 Message Date
Frantisek Hrbata
b17444a109 change(examples): switch examples to use a minimal build
Currently, several example dependencies rely on the fact that all
registered components are added to the build, along with components
specified in common requirements. This results in longer build times
because even unused components must be built. Switch all examples to use
idf_minimal_build to compile only the components actually required by
the example.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-09-19 18:51:40 +08:00
Frantisek Hrbata
e71a595cf8 change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-09-19 18:51:40 +08:00
Ondrej Kosta
87e021c8d9 ci(esp_eth): enabled build and test for c61 in eth/proto examples 2025-09-19 18:51:40 +08:00
Ondrej Kosta
d75c586e7e feat(esp_eth): removed disable of C5 and P4 from examples .build-test-rules
Updated examples to be able to build for C5 and P4.

Added Ethernet support for static_ip example.
2025-09-19 18:51:40 +08:00
Bogdan Kolendovskyy
32e2d251e5 feat(mqtt): Enable build test in mqtt examples for esp32p4 2025-09-19 18:51:40 +08:00
Ivan Grokhotkov
c462db569e feat(examples): add local components via idf_component.yml
Specifying all the dependencies (managed and local) in the manifest
makes it easier for users to see every component the example
depends on.
2025-09-19 18:51:40 +08:00
Andrii
ca9ca161ac fix(mqtt): Unite supported components tags under common structure 2025-09-19 18:51:40 +08:00
Euripedes Rocha
7e352dcd85 protocols/examples: Disable Wifi connection if not supported
- Disable Kconfig option for Wifi if not supported by the SoC
- Enable building mqtt examples when target is set to esp32h2
2025-09-19 18:51:40 +08:00
Bogdan Kolendovskyy
ecfe26da47 examples: fix format errors, remove -Wno-format
Logging in series of examples has misuse of "%d" instead of type-appropriate format specifiers.
Fix by changing "%d" to PRIxx macros corresponding to type.
Remove -Wno-format compile flag in those examples that are affected.
2025-09-19 18:51:40 +08:00
Chen Yudong
8f90dab8d8 examples: enable build esp32c6 for wifi and network examples 2025-09-19 18:51:40 +08:00
Chen Yudong
339e438840 CI: fix pattern in test case test_examples_protocol_mqtt5 2025-09-19 18:51:40 +08:00
yuanjianmin
81854fdf75 ci: Fix mqtt broker is not available 2025-09-19 18:51:40 +08:00
Ivan Grokhotkov
649f6d369e build system: re-add -Wno-format as private flag for some example components 2025-09-19 18:51:40 +08:00
yuanjm
17df9effcd example: Add mqtt5 example 2025-09-19 18:51:40 +08:00