-
Notifications
You must be signed in to change notification settings - Fork 202
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
User/beginner friendly permissive mode implementation #358
Comments
Imported from trac issue 327. Created by jhageman on 2019-08-27T10:10:53, last modified: 2019-08-27T10:10:53 |
@jphickey @acudmore what's your preferred solution? Right now the #undef requires a file edit to make it work which is undesirable from a CI point of view. How about just change to a commented out #define, and add a prep flag like ENABLE_PERMISSIVE (and mention the prep flag in the default_osconfig.h)? |
In the future we had discussed moving all "code selection" options in osconfig.h to a build system config rather than putting these in a C header file. If/When we do that then the ENABLE_PERMISSIVE build option would logically be part of that. In the meantime, I think we might be able to buy time by changing the
This assumes that new users build with |
I'm actually not a fan of mixing SIMULATION and the PERMISSIVE mode (contrary to my original comments on this ticket) since they really are unique as you have highlighed. How about just take the setting out of osconfig.h, and do it in the build system instead of adding an intermediate step? It can still just be a -D flag passed in, but get's me the easier configuration capability now. If this approach is accepted, should also remove setting from: See c19536c |
CCB - suggest just commenting out a #define, then allows environment variable to set General discussion on what goes in *.h file vs build system configuration
|
CCB 20200115 - Discussed just adding native_osconfig.h and override the permissive mode setting, that way whenever running as SIMULATION=native the permissive mode is set. |
This adds the native_osconfig.h which is included after the default_osconfig.h if SIMULATION=native is set.
This adds the native_osconfig.h which is included after the default_osconfig.h if SIMULATION=native is set.
Fix #358, Add native permissive mode configuration
Failure when running as a normal user due to not setting the permissive mode should be user friendly. Both for message queues and priorities failures.
Also requesting a command line option, or default to permissive mode for the bundle (should just work out of the box on a linux system for a new user, the bundle is not a flight distribution). Maybe relate it to SIMULATION=native setting? Note current way it's set up (as an #undef in default_osconfig.h precludes passing it in as an option).
Worth discussing since currently the bundle defaults to debug mode with no optimization anyways. Perhaps permissive mode is also appropriate? Distribution guide (or whatever documentation is available) could cover transition to more flight-like configuration.
The text was updated successfully, but these errors were encountered: