You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/07/21 18:03:17 UTC

[GitHub] [mynewt-newt] vrahane opened a new issue #443: [restrictions] Not able to use a string comparison as a restriction

vrahane opened a new issue #443:
URL: https://github.com/apache/mynewt-newt/issues/443


   Currently this does not work, `spi0` needs to be made a `choice` for it to work or a workaround is to use it as a value and and use the `#` operator to convert it to a string.
   
   ```
   syscfg.defs:
       CHIP_ONB:
           description: 'On board chip'
           value: 1
           restrictions:
               - 'CHIP_ONB_SPI_BUS == "spi0"'
   
       CHIP_ONB_SPI_BUS:
           value: 'spi0'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org