Support Tegra blobs

This commit is contained in:
topjohnwu
2018-01-30 05:20:18 +08:00
parent 7cfc24d68f
commit f48e6c93b8
4 changed files with 49 additions and 13 deletions

View File

@ -33,6 +33,8 @@ format_t check_fmt(const void *buf) {
return DTB;
} else if (memcmp(buf, DHTB_MAGIC, 8) == 0) {
return DHTB;
} else if (memcmp(buf, TEGRABLOB_MAGIC, 20) == 0) {
return BLOB;
} else {
return UNKNOWN;
}