managed components dependency

chegewara
Posts: 2457
Joined: Wed Jun 14, 2017 9:00 pm

managed components dependency

Postby chegewara » Mon Feb 17, 2025 3:52 pm

Hi,
i am trying to figure out if its possible to add rules in yml file to include component based on some sdkconfig flag?
Ive been studying this docs but could not find any info
https://docs.espressif.com/projects/idf ... _file.html

What i am trying to do:
- make brookesia app for different display types
- i am using BSP components from espressif for p4 devkit and waveshare for P4 nano
- each devkit is connected to different type of display
- BSP components excluding each other and only one BSP is working
- there is no problem if i want to use some S3 devkit with display, because i can use if: target clause

Thanks

chegewara
Posts: 2457
Joined: Wed Jun 14, 2017 9:00 pm

Re: managed components dependency

Postby chegewara » Mon Feb 17, 2025 5:30 pm

I found this option

Code: Select all

  espressif/esp32_p4_function_ev_board:
    version: '*'
    rules:
    - if: target in [esp32p4]
    - if: $BSP==1
  waveshare/esp32_p4_nano:
    version: '*'
    rules:
    - if: target in [esp32p4]
    - if: $BSP==2
it is not ideal thou.
Cmake will fail in case BSP variable is not present, so i have to export BSP each time i open vscode.
It would be nice if it would work with default value if nor present or just to assume that VAR fail in this if clause.

Who is online

Users browsing this forum: aygh4266 and 169 guests