espressif / idf-build-apps

Tool to build multiple IDF applications in CI
https://docs.espressif.com/projects/idf-build-apps/en/latest/index.html
Apache License 2.0
12 stars 6 forks source link

Can't find any example in esp-bsp (RDT-397) #4

Closed tore-espressif closed 1 year ago

tore-espressif commented 1 year ago

Hi @hfudev , I'm testing this with esp-bsp using following command:

python3 -m idf_build_apps find -p /mnt/c/github_repos/esp-bsp/examples --recursive --verbose

But I get this response:

2023-02-20 16:57:09 INFO Found 0 apps in total

I have also tried non-recursive find, with path set directly to an example project. Tested on win10 and Ubuntu 22.04.

Could you please advise?

hfudev commented 1 year ago

It requires -t, --target to pass the targets. Sorry the documentation is not very clear yet. Will improve soon.

You may try with

$ cd esp-bsp
$ python -m idf_build_apps find -p /examples --recursive -t all

The result would be:

(cmake) App examples/audio, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/audio/build
(cmake) App examples/display, target esp32, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display/build
(cmake) App examples/display, target esp32c2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display/build
(cmake) App examples/display, target esp32c3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display/build
(cmake) App examples/display, target esp32s2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display/build
(cmake) App examples/display, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display/build
(cmake) App examples/display_audio, target esp32s2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display_audio/build
(cmake) App examples/display_audio_photo, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display_audio_photo/build
(cmake) App examples/display_camera, target esp32s2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display_camera/build
(cmake) App examples/display_lvgl_demos, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display_lvgl_demos/build
(cmake) App examples/display_rotation, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/display_rotation/build
(cmake) App examples/mqtt_example, target esp32, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/mqtt_example/build
(cmake) App examples/mqtt_example, target esp32c2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/mqtt_example/build
(cmake) App examples/mqtt_example, target esp32c3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/mqtt_example/build
(cmake) App examples/mqtt_example, target esp32s2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/mqtt_example/build
(cmake) App examples/mqtt_example, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/mqtt_example/build
(cmake) App examples/sensors_example, target esp32, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/sensors_example/build
(cmake) App examples/sensors_example, target esp32c2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/sensors_example/build
(cmake) App examples/sensors_example, target esp32c3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/sensors_example/build
(cmake) App examples/sensors_example, target esp32s2, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/sensors_example/build
(cmake) App examples/sensors_example, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/sensors_example/build
(cmake) App examples/touchscreen_colorwheel, target esp32s3, sdkconfig (default), build in /home/fuhanxi/git/esp-bsp/examples/touchscreen_colorwheel/build
tore-espressif commented 1 year ago

Thanks! How are is the target compatibility determined? From README header?

tore-espressif commented 1 year ago

I can see, from sdkconfig... Thanks!

hfudev commented 1 year ago

@tore-espressif there're two ways to determine that.

  1. from CONFIG_IDF_TARGET (with higher priority)
  2. from manifest file: https://github.com/espressif/esp-idf/tree/master/.gitlab/ci#manifest-file-to-control-the-buildtest-apps (if you passed related arguments, and the app matches the rules)

The manifest file way is not ESP-IDF repo specific, I'll add the related documentation in this repo later.