Skip to main content

upload-yocto-symbols

Description

Upload symbols for a Linux Yocto build.

To see a full example, take a look at the Linux SDK example project:
https://mflt.io/yocto-upload-symbols

Example Yocto Symbol Upload:


$ bitbake my-image
$ memfault --org-token $ORG_TOKEN \
--org acme-inc --project smart-sink \
upload-yocto-symbols \
--image build/tmp/deploy/images/raspberrypi3/my-image-raspberrypi3.tar.bz2 \
--dbg-image build/tmp/deploy/images/raspberrypi3/my-image-raspberrypi3-dbg.tar.bz2

Note: To specify a temporary directory to use for extracting the debug symbols,
use the TMPDIR environment variable (this command can use a significant amount
of space while it is running). Otherwise the default temporary location will
be used.

Options

OptionShortRequiredDefaultDescription
--image-iTrueNone

The path to the root filesystem image as produced by Yocto's do_image_*. The file is expected to reside in the location where Yocto produced the file (tmp/deploy/images/${PACKAGE_ARCH}/images).

Supported formats: .tar, .tar.bz2, .tar.gz, .tar.xz

--dbg-image-dTrueNone

The path to the dbg filesystem image as produced by Yocto's IMAGE_GEN_DEBUGFS option. The file is expected to reside in the location where Yocto produced the file (tmp/deploy/images/${PACKAGE_ARCH}/images).

To generate it alongside the required elfutils-native, add the following to your main image (note that the main image will not be affected except for its build dependencies):

 DEPENDS:append = " elfutils-native" IMAGE_GEN_DEBUGFS = "2" IMAGE_FSTYPES_DEBUGFS = "tar.bz2"

Supported formats: .tar, .tar.bz2, .tar.gz, .tar.xz

--eu-unstrip-pathNoneFalseNone

Path to a local eu-unstrip binary from elfutils (https://sourceware.org/elfutils/).

Not necessary if running after 'source oe-init-build-env'.

If you pass --eu-unstrip-path, you must also pass --package-debug-split-style.

--package-debug-split-styleNoneFalseNone

Your project's PACKAGE_DEBUG_SPLIT_STYLE. In Poky, defaults to 'debug-with-srcpkg'.

Not necessary if running after 'source oe-init-build-env'.

If you pass --package-debug-split-style, you must also pass --eu-unstrip-path.

--concurrencyNoneFalse8

Max number of concurrent web requests

--helpNoneFalseFalse

Show this message and exit.