Skip to content

esp_metadata: include cavl2.h in the ESP-IDF component package - #262

Open
grgevansdwy wants to merge 1 commit into
OpenCyphal:masterfrom
grgevansdwy:esp_registry_missing_cavl2
Open

grgevansdwy wants to merge 1 commit into
OpenCyphal:masterfrom
grgevansdwy:esp_registry_missing_cavl2

Conversation

@grgevansdwy

Copy link
Copy Markdown

Fixes #261

Problem

The opencyphal/libcanard 4.0.0 package on the ESP Component Registry fails to build:

managed_components/opencyphal__libcanard/canard.c:45:10: fatal error: cavl2.h: No such file or directory

esp_metadata/package_esp_component.sh copies files from a hard-coded list. Commit 0fd1d3a (#250, "switch to cavl2") removed the line that copied libcanard/_canard_cavl.h, but never added one for the new lib/cavl2/cavl2.h.

Change

Add the missing copy step to esp_metadata/package_esp_component.sh:

cp lib/cavl2/cavl2.h    package/libcanard/include/cavl2.h

Testing

Ran esp_metadata/package_esp_component.sh from the repo root, then built an ESP-IDF project (target esp32) against the generated package/libcanard. The build succeeds and cavl2.h is resolved from include/.

Note

The already-published 4.0.0 package will stay broken until a new version is published from this script.

@pavel-kirienko
pavel-kirienko enabled auto-merge (squash) October 16, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESP component registry package opencyphal/libcanard 4.0.0 is missing cavl2.h

2 participants