source: rtems-docs/bsp-howto/target-hash.rst @ 29ce290

Last change on this file since 29ce290 was 29ce290, checked in by Sebastian Huber <sebastian.huber@…>, on 02/24/21 at 13:11:21

bsp-howto: Add target hash chapter

Update #4267.

  • Property mode set to 100644
File size: 859 bytes
Line 
1.. SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. Copyright (C) 2021 embedded brains GmbH <rtems@embedded-brains.de>
4
5Target Hash
6***********
7
8Each BSP must provide an implementation of the :c:func:`rtems_get_target_hash`
9directive.  The
10`default implementation <https://git.rtems.org/rtems/tree/bsps/shared/start/gettargethash-default.c>`_
11is based on the CPU counter frequency.  A BSP-specific implementation may be
12provided which covers also for example the device tree, settings of the memory
13controller, processor and bus frequencies, a serial number of a chip, etc.  For
14a BSP-specific implementation start with the default implementation and add
15more values to the target hash using the functions :c:func:`_Hash_Add_data` and
16:c:func:`_Hash_Add_string`.  The target hash can be used to distinguish test
17suite results obtained from different target systems.
Note: See TracBrowser for help on using the repository browser.