Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools: fix checking of hwdef includes for Periph #27139

Merged
merged 1 commit into from
May 24, 2024

Conversation

robertlong13
Copy link
Collaborator

I was having an issue where an AP_Periph hwdef I was working on started failing when I added a comment to the top of the file. In fact, it was failing if the include was anywhere except at the very top. To reproduce the bug on master, place a line-break at the top of libraries/AP_HAL_ChibiOS/hwdef/AeroFox-Airspeed/hwdef.dat and try to compile.

When waf was trying to determine which boards AP_Periph could compile for, it did not correctly follow includes. It only considered one include at the very beginning of the file. This fixes that so it correctly scans through all includes, wherever they are in the hwdef.

This fix scans all the include files in a hwdef, not just one on the
first line.
@robertlong13 robertlong13 changed the title Tools: fix handling of include files for Periph Tools: fix handling of hwdef includes for Periph May 23, 2024
@robertlong13 robertlong13 changed the title Tools: fix handling of hwdef includes for Periph Tools: fix checking of hwdef includes for Periph May 23, 2024
@peterbarker peterbarker merged commit ead48b6 into ArduPilot:master May 24, 2024
91 checks passed
@robertlong13 robertlong13 deleted the pr/periph_boards_py_fix branch May 24, 2024 01:19
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.

None yet

2 participants