Package tockloader.tab Documentation

Class TAB

Tock Application Bundle object. This class handles the TAB format.

__init__


def __init__(self, tab_path)

Initialize self. See help(type(self)) for accurate signature.

extract_app


def extract_app(self, arch)

Return an App object from this TAB. You must specify the desired MCU architecture so the correct binary can be retrieved.

get_crt0_header_str


def get_crt0_header_str(self, arch)

Return a string representation of the crt0 header some apps use for doing PIC fixups. We assume this header is positioned immediately after the TBF header.

get_supported_architectures


def get_supported_architectures(self)

Return a list of architectures that this TAB has compiled binaries for.

get_tbf_header


def get_tbf_header(self)

Return a TBFHeader object with the TBF header from the app in the TAB. TBF headers are not architecture specific, so we pull from a random binary if there are multiple architectures supported.

is_compatible_with_board


def is_compatible_with_board(self, board)

Check if the Tock app is compatible with a particular Tock board.

parse_metadata


def parse_metadata(self)

Open and parse the included metadata file in the TAB.

__str__


def __str__(self)

Return str(self).