This series includes a mechanism for binding a TLV to a specific unit
via the units SoC unique ID. This is to prevent interchange of the TLV
in question between unit, which may be needed in certain secure boot
scenarios.

As this is the first TLV field using a raw binary field, include support
for such a field type in the bareboxtlv-generator.

Signed-off-by: Jonas Rebmann <[email protected]>
---
Changes in v3:
- Switch to using barebox_get_soc_uid_bin instead of comparing string
  representations, update comments accordingly
- Include bareboxtlv-generator support for binary fields
- Print expected/found SoC uids as eror on mismatch
- Don't mix dashes and underscores in property name
- Link to v2: 
https://lore.barebox.org/barebox/[email protected]

Changes in v2:
- Switch to using barebox_get_soc_uid and rename and reword everything
  accordingly (serial number -> soc uid)
- Init tlv_register_default as late_initcall instead of device_initcall
- Link to v1: 
https://lore.barebox.org/barebox/[email protected]

---
Jonas Rebmann (2):
      tlv: Add tlv_bind_soc_uid mapping
      bareboxtlv-generator: add raw "bytes"-format

 common/tlv/barebox.c                               | 25 +++++++++++++++++++++-
 include/tlv/tlv.h                                  |  1 +
 .../bareboxtlv-generator/bareboxtlv-generator.py   | 14 ++++++++++++
 3 files changed, 39 insertions(+), 1 deletion(-)
---
base-commit: 0024921364eb4c8bc8089fdc198440b0d67a239f
change-id: 20251112-tlv_bind_serial-b8b24a6fd4a0

Best regards,
--  
Jonas Rebmann <[email protected]>


Reply via email to