scripts: add CAMEO tag generator
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 5 Jul 2022 06:46:21 +0000 (08:46 +0200)
committerLuiz Angelo Daros de Luca <luizluca@gmail.com>
Sat, 9 Jul 2022 01:09:16 +0000 (22:09 -0300)
commitb151362d199e803c42e8c9e5411aab169fd770f2
tree52272bb3a3776d7ba39397c51188a214de76d13e
parent72466aaeb90bff618eaec83ca00b4aa99cb837c5
scripts: add CAMEO tag generator

This script inserts CAMEO tags into an uImage to make U-Boot
of DGS-1210 switches happy.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Suggested-by: Sander Vanheule <sander@svanheule.net> # Mutual checksum algorithm
[commit title prefix, trailing whitespace, OpenWrt capitalisation, move
CRC calculation comment, use UIMAGE_NAME_*, remove parentheses for
return, use f-string instead of str()]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit f9e840b65700e1cdff6d066d39c163bac936d046)
scripts/cameo-tag.py [new file with mode: 0755]