-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
ROMFS not rebuilt correctly when ROMFS files are 'touch'ed #9093
Comments
What we could do is remove the We could then remove the dependence on Tell me if you think I should submit a PR for this. |
I think we might need to explicitly list all the files. Globbing generally doesn't work very well in cmake. It will miss added files (you need to know how to manually kick off another cmake configure), and it's perhaps even more annoying when you remove a file that was previously globbed. |
I'd be up for requiring all the ROMFS files to be explicitly listed in a CMakeLists.txt. With some simple directory hierarchy in place in won't be too overwhelming. |
Agreed. cmake recommends not to use GLOB and it will improve incremental builds. |
current master after flashing into fmu_V4 (vtol) all tuning values get lost or don´t load, probably the same source as mentioned above. Now I flashed back to master from 8 th of march that still was o.k. |
Conversation continued here: #9107. |
@dagar: related to discovery in PR: #9067.
If one of the files in ROMFS/px4_common/ (or whatever directory you specify as your ROMFS src directory) is touched, then the ROMFS is not rebuilt - it is rebuilt ONLY if an airframe is touched (or a file that starts with a number). This is because the add_custom_command in "ROMFS/CMakeLists.txt" does not depend on the contents of the ROMFS/px4_common/ directory. It only depends on the air frames (files that start with a number).
Note: although, the add_custom_command() depends on
${romfs_src_files}
, this variable is never set anywhere; it is an empty dependency. I suspect that${romfs_src_files}
was supposed be set with afile(GLOB_RECURSE ...)
, but this has just not been done.Note: As it currently stands, if you make a change to any of the
rc.*
files other thanrcS
, then the ROMFS will not be rebuilt.The text was updated successfully, but these errors were encountered: