hos/l4t: deduplicate sc7exit-b01 load

And remove obsolete MWS (L4T one deprecated it 3 years ago).
This commit is contained in:
CTCaer
2025-12-17 06:28:36 +02:00
committed by NaGa
parent 4c2f8f14dc
commit 4af99c9f78
3 changed files with 16 additions and 46 deletions

View File

@@ -1954,7 +1954,6 @@ static int _backup_and_restore_files(bool backup, const char *drive, lv_obj_t **
// Check if Mariko Warmboot Storage exists in source drive.
f_chdrive(src_drv);
bool backup_mws = !part_info.backup_possible && !f_stat("warmboot_mariko", NULL);
bool backup_pld = !part_info.backup_possible && !f_stat("payload.bin", NULL);
if (!part_info.backup_possible)
@@ -1965,8 +1964,6 @@ static int _backup_and_restore_files(bool backup, const char *drive, lv_obj_t **
// Create hekate/Nyx/MWS folders in destination drive.
f_chdrive(dst_drv);
f_mkdir("bootloader");
if (backup_mws)
f_mkdir("warmboot_mariko");
}
// Copy all or hekate/Nyx files.
@@ -1979,12 +1976,6 @@ static int _backup_and_restore_files(bool backup, const char *drive, lv_obj_t **
// If incomplete backup mode, copy MWS and payload.bin also.
if (!res)
{
if (backup_mws)
{
strcpy(path, "warmboot_mariko");
res = _stat_and_copy_files(src_drv, dst_drv, path, &total_files, &total_size, labels);
}
if (!res && backup_pld)
{
strcpy(path, "payload.bin");