Skip to content

Commit d2cf14f

Browse files
committed
img4: Fix Ap,RestoreDCP2 -> rdc2 mapping
The component is called `Ap,RestoreDCP2` and not `RestoreDCP2`
1 parent 2914bf6 commit d2cf14f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/img4.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ static const char *_img4_get_component_tag(const char *compname)
300300
{ "Ap,RestoreANE2", "ran2" },
301301
{ "Ap,RestoreANE3", "ran3" },
302302
{ "Ap,RestoreCIO", "rcio" },
303+
{ "Ap,RestoreDCP2", "rdc2", },
303304
{ "Ap,RestoreTMU", "rtmu" },
304305
{ "Ap,Scorpius", "scpf" },
305306
{ "Ap,SystemVolumeCanonicalMetadata", "msys" },
@@ -356,7 +357,6 @@ static const char *_img4_get_component_tag(const char *compname)
356357
{ "RecoveryMode", "recm" },
357358
{ "RestoreANS", "rans" },
358359
{ "RestoreDCP", "rdcp" },
359-
{ "RestoreDCP2", "rdc2", },
360360
{ "RestoreDeviceTree", "rdtr" },
361361
{ "RestoreExtDCP", "recp" },
362362
{ "RestoreKernelCache", "rkrn" },
@@ -441,6 +441,8 @@ int img4_stitch_component(const char* component_name, const void* component_data
441441
memcpy((void*)tag, "rtmu", 4);
442442
} else if (strcmp(component_name, "Ap,RestoreCIO") == 0) {
443443
memcpy((void*)tag, "rcio", 4);
444+
} else if (strcmp(component_name, "Ap,RestoreDCP2") == 0) {
445+
memcpy((void*)tag, "rdc2", 4);
444446
} else if (strcmp(component_name, "Ap,DCP2") == 0) {
445447
memcpy((void*)tag, "dcp2", 4);
446448
} else if (strcmp(component_name, "Ap,RestoreSecureM3Firmware") == 0) {

0 commit comments

Comments
 (0)