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

AP_HAL_ChibiOS: chibios_hwdef.py tidy embedding of files into ROMFS #29161

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

peterbarker
Copy link
Contributor

most notably this embed the "modules" directory so you can use modules in ROMFS

I've created a branch which shows this working here: https://github.com/ArduPilot/ardupilot/compare/master...peterbarker:ardupilot:DEBUG/demo-pr/modules-in-romfs?expand=1 . It creates an OEM board which embeds a script and a library for it to use. Note that there are several drive-by patches in that branch at this point.

image

@IamPete1
Copy link
Member

I certainty tested this when I did #26157, it worked then. Could the difference be using ROMFS_custom vs hwdef?

@peterbarker peterbarker force-pushed the pr/embed-directories-lua branch from 3483d50 to 46e957f Compare January 28, 2025 20:09
@peterbarker
Copy link
Contributor Author

I certainty tested this when I did #26157, it worked then. Could the difference be using ROMFS_custom vs hwdef?

They're completely different paths, both walking the tree.

OTOH, it turns out this "fix" isn't required at all. No idea what went wrong to make me think it was required.

Changed this to just neaten the function up, rather than modifying its functionality

@peterbarker peterbarker force-pushed the pr/embed-directories-lua branch from 46e957f to 3c0e614 Compare January 28, 2025 20:14
@peterbarker peterbarker changed the title AP_HAL_ChibiOS: embed subdirectories of 'scripts' directory into ROMFS AP_HAL_ChibiOS: chibios_hwdef.py tidy embedding of files into ROMFS Jan 28, 2025
@peterbarker peterbarker merged commit 13980eb into ArduPilot:master Jan 29, 2025
45 checks passed
@peterbarker peterbarker deleted the pr/embed-directories-lua branch January 29, 2025 10:51
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.

2 participants