Main Content

target.HardwareComponentSupport class

Package: target

Describe support for a hardware component

Description

Use a target.HardwareComponentSupport object to specify that a tool or toolchain applies to a particular target device.

To create a target.HardwareComponentSupport object, use the target.create function.

The target.HardwareComponentSupport class is a handle class.

Properties

expand all

Supported target device, for example, a target.Processor or a target.Board object.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

This code snippet shows how you can create a target.HardwareComponentSupport object and use it to define a toolchain that is available only when the target device Intel-x86-64 (Windows64) is selected.

tc = target.create('Toolchain', 'Name', 'My Toolchain');
tc.Builder = target.create('CMakeBuilder', 'Generator', 'Ninja');
tc.SupportedHardware = target.create('HardwareComponentSupport');
tc.SupportedHardware.Component = target.get('Processor', 'Intel-x86-64 (Windows64)');

Version History

Introduced in R2022b