1
0
Fork 0
forked from len0rd/rockbox

rbutil: Merge rbutil with utils folder.

rbutil uses several components from the utils folder, and can be
considered part of utils too. Having it in a separate folder is an
arbitrary split that doesn't help anymore these days, so merge them.

This also allows other utils to easily use libtools.make without the
need to navigate to a different folder.

Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
This commit is contained in:
Dominik Riebeling 2021-12-15 21:04:28 +01:00
parent 6c6f0757d7
commit c876d3bbef
494 changed files with 13 additions and 13 deletions

View file

@ -0,0 +1,23 @@
/* Checksums of firmwares for ihp_100 */
/* order: unpatched, patched */
/* 1.63eu */
{"86103cb05658970b43ce1f40f93d53a8", "6922876c5ef94bf4bab484e3a4f89c71"},
/* 1.63k */
{"70127fa9ee69afab7645297fbb61636d", "a4e7bb3b5d79ea8a0c9ef911e39b07a6"},
/* 1.63us */
{"7a504a450c76a0dda757fdb6b5531b22", "cc826c4bafb51d98a06b839c3afc0042"},
/* 1.65eu */
{"478dc657b97e77d1b4944ef26c3dcb8e", "8b1daa624b183cc8bc92edf65d1ef3a7"},
/* 1.65k */
{"97ba82fb8099bb23ca0c78fc119f8cce", "992121c09393f833f8ef17a540436457"},
/* 1.65us */
{"d3725865e0948cd5f604b00db2ec89aa", "274ac6548283fa105b71176b30a53632"},
/* 1.66eu */
{"fc59f742fe383da3e4d17a660c46afb9", "90920de15cdd91c454dae42a82999591"},
/* 1.66k */
{"22d214401994c276ec6878288caa0dba", "45a6ab666cc563b5e93e4a629839b3a9"},
/* 1.66us */
{"0ae247f567aeafcafecf823a50cbf33e", "124ddbaeb475583afa5f16fb3954d8a3"},
/* 1.66jp */
{"8bfc8ae5805c270597232efeafade5fd", "05841b026cdbcb478fc6c635edd6a5f4"},

View file

@ -0,0 +1,23 @@
/* Checksums of firmwares for ihp_120 */
/* order: unpatched, patched */
/* 1.63eu */
{"14488347a171480c63c94bc7b885225d", "5bbcb9c060abaecc2e51a42cdbd9db8c"},
/* 1.63k */
{"3401fe8845e569156abfaddf05ca7771", "ed1c05a9830589abc95e79bfa7cbed5b"},
/* 1.63us */
{"d9078209105c186cee5246055fdb99c9", "f3dc2ba361db1d0b99fda54c2b54e2d3"},
/* 1.65eu */
{"c9e71aac4a498f1e2f0e684c2d554ea1", "821e3338e198f10fca214407fcbf148e"},
/* 1.65k */
{"360c0c565266f84e9bca610c596f3207", "a5ce6655ff9f20786c23101f76b84768"},
/* 1.65us */
{"b9e516d4b8a0265605f46f254897bfb0", "4e2e14122d4856247aab4070c912c56e"},
/* 1.66eu */
{"a094999b41781f4322a57b9be7fa4534", "63afa15e3305a737e931f61affb5266a"},
/* 1.66k */
{"79daba973bb31b60b4b87c2ef497587d", "a3e592920dc600a5e51cf0288f55712d"},
/* 1.66us */
{"7fa020a3104c76fbbfcb8313e287dbe2", "3046fec093a8b7f24c394d4a67ee8a31"},
/* 1.66jp */
{"271d151eb6586929da24b3458ea965fe", "47820bbef1550ec0fb2815fa599d32be"},

View file

@ -0,0 +1,19 @@
/* Checksums of firmwares for ihp_300 */
/* order: unpatched, patched */
/* 1.28eu */
{"0b2083d37f24899b82d21a14d2b38060", "371d2f6dae171ccaaa57894640be2f10"},
/* 1.28k */
{"c6f854ae3d8f48e8982819a4b5302fb0", "5dc417d14ba6de264f1c2f9fc4cae420"},
/* 1.28jp */
{"7fcd7bca6b98a34134e2518a616f4e85", "87183596af1574335bc91755b96ce978"},
/* 1.29eu */
{"27d90fc316709c096979ab24c914ee31", "9d5c8655a35b1a7373daf6e7a3bb76db"},
/* 1.29k */
{"44416d97737fc47cd417a64d44064768", "90b976d1a7078848382c6ff7f63132d9"},
/* 1.29jp */
{"1ac242c645572a0a5de99ae2b23453b8", "ea96dbef4d52409d9d1510959abcf795"},
/* 1.30eu */
{"8d2d775b018f0532235d38f5317ae10c", "d88b2e853a38672e8547a07f05f9a197"},
/* 1.31k */
{"8241f66c5b64beeeeeb8fdfc8263f75f", "e77be3b112a7eb65ef75f886b3a55984"},

View file

@ -0,0 +1,69 @@
#!/usr/bin/perl
# This script creates the h100sums.h and h300sums.h files for fwpatcher.
#
# It expects a file tree with scrambled and descrambled
# firmwares like this:
# orig-firmware/
# h1xx/
# 1.66jp/
# ihp_100.bin
# ihp_100.hex
# ihp_120.bin
# ihp_120.hex
# h3xx/
# 1.29jp/
# H300.bin
# H300.hex
# etc.
#
# It also expects the bootloader binaries in the current directory:
# bootloader-h100.bin
# bootloader-h120.bin
# bootloader-h300.bin
$orig_path = "~/orig-firmware";
mksumfile("100");
mksumfile("120");
mksumfile("300");
sub mksumfile {
($model) = @_;
open FILE, ">h${model}sums.h" or die "Can't open h${model}sums.h";
print FILE "/* Checksums of firmwares for ihp_$model */\n";
print FILE "/* order: unpatched, patched */\n\n";
if($model < 300) {
foreach("1.63eu","1.63k", "1.63us", "1.65eu","1.65k", "1.65us",
"1.66eu", "1.66k", "1.66us", "1.66jp") {
`../mkboot $orig_path/h1xx/$_/ihp_$model.bin bootloader-h$model.bin ihp_$model.bin`;
`../scramble -iriver ihp_$model.bin ihp_$model.hex`;
$origsum = `md5sum $orig_path/h1xx/$_/ihp_$model.hex`;
chomp $origsum;
($os, $or) = split / /, $origsum;
$sum = `md5sum ihp_$model.hex`;
chomp $sum;
($s, $r) = split / /, $sum;
print FILE "/* $_ */\n";
print FILE "{\"$os\", \"$s\"},\n";
}
} else {
foreach("1.28eu", "1.28k", "1.28jp", "1.29eu", "1.29k", "1.29jp",
"1.30eu") {
`../mkboot -h300 $orig_path/h3xx/$_/H$model.bin bootloader-h$model.bin H$model.bin`;
`../scramble -iriver H$model.bin H$model.hex`;
$origsum = `md5sum $orig_path/h3xx/$_/H$model.hex`;
chomp $origsum;
($os, $or) = split / /, $origsum;
$sum = `md5sum H$model.hex`;
chomp $sum;
($s, $r) = split / /, $sum;
print FILE "/* $_ */\n";
print FILE "{\"$os\", \"$s\"},\n";
}
}
close FILE;
}