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

[restrictions] Not able to use a string comparison as a restriction #443

Open
vrahane opened this issue Jul 21, 2021 · 0 comments
Open

[restrictions] Not able to use a string comparison as a restriction #443

vrahane opened this issue Jul 21, 2021 · 0 comments

Comments

@vrahane
Copy link
Contributor

vrahane commented Jul 21, 2021

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 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'
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