mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Forgot to realign after emitting auto-generated "name" properties. Oops.
This commit is contained in:
parent
dffc2a8972
commit
41916138dd
1 changed files with 2 additions and 1 deletions
|
@ -277,6 +277,7 @@ static void flatten_tree(struct node *tree, struct emitter *emit,
|
|||
emit->align(etarget, 8);
|
||||
|
||||
emit->string(etarget, tree->name, tree->basenamelen);
|
||||
emit->align(etarget, sizeof(cell_t));
|
||||
}
|
||||
|
||||
for_each_child(tree, child) {
|
||||
|
@ -844,7 +845,7 @@ struct boot_info *dt_from_blob(FILE *f)
|
|||
val = flat_read_word(&dtbuf);
|
||||
|
||||
if (val != OF_DT_BEGIN_NODE)
|
||||
die("Device tree blob doesn't begin with OF_DT_BEGIN_NODE\n");
|
||||
die("Device tree blob doesn't begin with OF_DT_BEGIN_NODE (begins with 0x%08x)\n", val);
|
||||
|
||||
tree = unflatten_tree(&dtbuf, &strbuf, "", flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue