scripts: add CAMEO tag generator
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 5 Jul 2022 06:46:21 +0000 (08:46 +0200)
committerSander Vanheule <sander@svanheule.net>
Tue, 5 Jul 2022 07:55:36 +0000 (09:55 +0200)
commitf9e840b65700e1cdff6d066d39c163bac936d046
tree00966369ecd71d4afd2128872a6e136443363ee4
parenteb7d2abbf06f0a3fe700df5dc6b57ee90016f1f1
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>
scripts/cameo-tag.py [new file with mode: 0755]