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

Allow to specify who can set syscfg value #199

Open
andrzej-kaczmarek opened this issue Aug 7, 2018 · 0 comments
Open

Allow to specify who can set syscfg value #199

andrzej-kaczmarek opened this issue Aug 7, 2018 · 0 comments

Comments

@andrzej-kaczmarek
Copy link
Contributor

It could be useful to restrict where syscfg value can be set. Trying to override value by package which is not allowed should emit an error.

For example:

  • @apache-mynewt-core/hw/mcu/nordic/nrf52xxx package defines MCU_NRF52832 and MCU_NRF52840 values which shall be only set by BSP (as it does not make sense to override them elsewhere)
  • @apache-mynewt-nimble/nimble/controller package defines BLE_DEVICE which shall not be overriden by other packages since this is used to determine configuration

Proposal:
Add allowoverride attribute to value which can be set to any (default), bsp or none to restrict who can set syscfg value (as explained above). Not sure if other package types (app, target, unittest) make sense here or combinations of these...

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

No branches or pull requests

1 participant