- ...
- Yocto
- production
- project creation
- SDK extension
- SimpleSwitch
- packages
- images
SimpleSwitch™ packages#
inherit simpleswitch-package
will turn a recipe into a SimpleSwitch™ package. This package can be used with simpleswitch-helper.
Options explained#
- SIMPLESWITCH_AUTOSTART
- SIMPLESWITCH_BIND_MOUNTS
- SIMPLESWITCH_CATEGORIES
- SIMPLESWITCH_CONFIGURE
- SIMPLESWITCH_CONFIGURE_CONFIG
- SIMPLESWITCH_CONFIGURE_MCPSERVER
- SIMPLESWITCH_CONFIGURE_SCHEMA
- SIMPLESWITCH_CONFIGURE_STARTUP
- SIMPLESWITCH_CONFLICTS
- SIMPLESWITCH_CONTAINER_FORCED_ARCH_EXPAND
- SIMPLESWITCH_DEPENDENCIES
- SIMPLESWITCH_INSTALL_COMMAND
- SIMPLESWITCH_INSTALL_DEJAVU_FONTS_BASE
- SIMPLESWITCH_INSTALL_DEJAVU_FONTS_CONDENSED
- SIMPLESWITCH_INSTALL_DISPLAY_DRIVERS
- SIMPLESWITCH_INSTALL_GSTREAMER
- SIMPLESWITCH_LAUNCHER_SECTIONS
- SIMPLESWITCH_MAX_USER_SIZE
- SIMPLESWITCH_NO_SIMPLECOREIO
- SIMPLESWITCH_NO_SYSTEMD_NOTIFY
- SIMPLESWITCH_PACKAGE_ADDITIONAL_TERMS
- SIMPLESWITCH_PICTURE
- SIMPLESWITCH_REBOOT_REQUIRED
- SIMPLESWITCH_RECOMMENDED
- SIMPLESWITCH_STARTUP_COMMAND
- SIMPLESWITCH_SUPERSEDEDBY
- SIMPLESWITCH_SYSTEM_REQUIREMENTS
- SIMPLESWITCH_UNINSTALL_COMMAND
- SIMPLESWITCH_VIDEO_LINK
- SIMPLESWITCH_XDG_RUNTIME_DIR
Add a SimpleSwitch™ launcher human readable description#
To have a well formatted description you can place a file <package name>-description.md.jinja next
to the recipe itself and the build process will take the content of that file.
e.g. for simpleswitch-example.bb this file should be called simpleswitch-example-description.md.jinja
The file can contain a markdown with Jinja templating code.
As variables the following can be used
web(boolean) - launcher is run in web-modeinstalled(list of str) - SimpleSwitch™ packages installed on the targetip(str) - IP address of the device (or empty if no connection is established yet)
Install on the target#
After building the new SimpleSwitch™ package, you need to transfer the artifacts to the your device. On your computer run
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
scotty devtool simpleswitch-install-target ${package} ${board_ip}
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
devtool simpleswitch-install-target ${package} ${board_ip}
to uninstall a package run
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
scotty devtool simpleswitch-uninstall-target ${package} ${board_ip}
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
devtool simpleswitch-uninstall-target ${package} ${board_ip}
to restore the factory default of the image, just run
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
scotty devtool simpleswitch-restore-target ${board_ip}
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
devtool simpleswitch-restore-target ${board_ip}
or to take screenshots of the package at different resolutions run
package=<name of your SimpleSwitch™ package>
board_ip=<IP of your device>
resolutions=<list of the resolutions formated as {width}x{height} or as {width}x{height}@{refresh_rate}>
destination=<directory where the screenshots are saved>
time=<time to wait before taking the screenshot as some package take some time to be fully loaded>
dependencies=<dependencies needed for the package>
devtool simpleswitch-screenshot-target ${package} ${board_ip} --resolutions ${resolutions} --destination ${destination --time ${time} --dependencies ${dependencies}
Here are the default values for the screenshot arguments:
resolutions: 800x480 1280x800 1920x1080
destination: sources/simplecore-distro/meta-simpleswitch/lib/oeqa/files/images/<package>
time: 60
dependencies: None
If the screenshot is specific to the machine, the baseboard or the display (for example HDMI), these arguments can be used:
--machine: It adds the name of the machine in the screenshot’s name.--baseboard: It adds the name of the baseboard in the screenshot’s name.--display: It adds hdmi to the screenshot’s name if the used display is HDMI.
See also