SDK extension#

To define a SDK extension you will need to create the following:

First a new SDK flavor and then create a new file simpleswitch-sdk-ext-<flavor>.bb in your layer, with the following content

SUMMARY ?= "Simpleswitch SDK <flavor> extension"

inherit simpleswitch-sdk-extension-image

SIMPLESWITCH_SDK_EXTENSION_NAME = "<flavor>"

and run the build with

$ scotty build simpleswitch-sdk-ext-<flavor>

after that the installer to your extension will be available at build/build/tmp/deploy/sdk/ and can be used to install From a local installer.

Automatically publish to GHCR#

To publish the extension to Avnet’s GHCR add a new file simpleswitch-sdk-ext-<flavor>-container.bb in your layer, with the following content

SUMMARY ?= "Simpleswitch SDK <flavor> extension container"

inherit simpleswitch-sdk-extension-container

SDK_EXTENSION_NAME = "<flavor>"