Skip to content

hwdef: chibios_hwdef.py becomes a library #23732

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

Merged
merged 2 commits into from
May 10, 2023

Conversation

peterbarker
Copy link
Contributor

This allows other scripts to ask the canonical hwdef interpreter for information gleaned from hwdefs.

This will allow us to fix several bugs in various scripts (notably not understanding includes can make things AP_Periphs).

A follow-up branch https://github.com/peterbarker/ardupilot/pull/new/wip/use-chibios-hwdef-lib-for-configure-all shows how we can use this.

This should also allow us to do better in terms of factoring this script. For example, creating an object to handle the "seen device" code which is exists 4 times.

@peterbarker
Copy link
Contributor Author

Best viewed with hide-whitespace option. Most of the changes are just adding self.

This has been tested using configure-all and making sure that no change it output occured. I also spot-checked the ldscript file on several boards to ensure it hadn't changed either.

@tridge tridge merged commit db6deee into ArduPilot:master May 10, 2023
@peterbarker peterbarker deleted the pr/chibios-hwdef-as-class branch May 10, 2023 08:32
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.

3 participants