dtc: Accept NOPs in dtb input regardless of version
Since Milton's patch, dtc will accept (and, correctly, ignore) NOP tags when given dtb input v16 or later. However, although NOPs weren't defined in earlier versions, they're not ambiguous, so should be accepted there as well. This patch does so, printing a mere warning when finding NOPs in a too-early dtb version.
Signed-off-by David Gibson <[email protected]>
flattree.c +4 -2
@@ -776,10 +776,12 @@break ;case OF_DT_NOP : -if (flags &FTF_NOPS ) +if (!(flags &FTF_NOPS )) +fprintf (stderr,"Warning: NOP tag found in flat tree" +" version <16\n" );break ; -die ("OF_DT_NOP in device tree blob\n" ); +/* Ignore */ break ;default :
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Jon Loeliger
AppliedSo, like, the other day David Gibson mumbled:
Quoted 7 lines
Since Milton's patch, dtc will accept (and, correctly, ignore) NOP tags when given dtb input v16 or later. However, although NOPs weren't defined in earlier versions, they're not ambiguous, so should be accepted there as well. This patch does so, printing a mere warning when finding NOPs in a too-early dtb version.
Signed-off-by David Gibson <[email protected]>
Applied.
Thanks,
jdl