• ...
  • Yocto
  • production
  • project creation
  • SDK extension
  • SimpleSwitch
  • packages
  • images

SIMPLESWITCH_SYSTEM_REQUIREMENTS#

you can use the SIMPLESWITCH_SYSTEM_REQUIREMENTS variable to set requirements on the base image used

SIMPLESWITCH_SYSTEM_REQUIREMENTS = "wayland"

You can use all information from Capabilities.

As a rule of thumb:

  • all attributes starting with has<X> are available as <x>. E.g. hasWayland becomes wayland if available, otherwise !wayland

  • all attributes starting with num<X> are available as <x0..x>. E.g. numCAN=2 becomes can1, can2

  • all purely string or list based attributes are unavailable

all requirements are lowercase by default.

Tip

You can write complex requirements by space separating them. E.g. if the SimpleSwitch™ package requires a graphical session with OpenGL3+ but won’t work on a device with audio available the string can be set to

SIMPLESWITCH_SYSTEM_REQUIREMENTS = "wayland opengl3 !audio"

and if you require at least one USB port in addition it would be

SIMPLESWITCH_SYSTEM_REQUIREMENTS = "wayland opengl3 !audio usb1"

See also