Replies: 2 comments 2 replies
-
Sure, the properties are used to instanciate the strategy. Your strategy could then look like this: @target_factory.reg_driver
@attr.s(eq=False)
class RpiStrategy(Strategy):
bindings = {
...
}
board = attr.ib(validator=attr.validators.instance_of(str))
... For what do you need the board type? Maybe this could be solved via place tags or feature flags? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, that works well. The board type is needed so that I know how to write U-Boot to that board (i.e. its storage device). Some use a filesystem but most use a raw device. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All of the examples I can find have something like this in the environment file:
i.e. the properties are empty. I would like to pass some properties to a strategy from the environment file. Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions