mirror of
https://github.com/dgibson/dtc.git
synced 2026-01-22 01:30:34 -05:00
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 <david@gibson.dropbear.id.au>
This commit is contained in:
parent
12578976fe
commit
0738774fcc
1 changed files with 4 additions and 2 deletions
|
|
@ -776,10 +776,12 @@ static struct node *unflatten_tree(struct inbuf *dtbuf,
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue