summaryrefslogtreecommitdiff
path: root/tests/add_subnode_with_nops.c
Commit message (Collapse)AuthorAgeFilesLines
* dtc/tests: don't include fdt.h prior to libfdt.hKim Phillips2013-01-061-1/+0
| | | | | | | | | tests will need fdt type definitions provided in a subsequent patch to libfdt_env.h. Since libfdt.h includes libfdt_env.h in the right order anyway, just remove the fdt.h include. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
* libfdt: Fix NOP handling bug in fdt_add_subnode_namelen()David Gibson2008-02-141-0/+85
fdt_add_subnode_namelen() has a bug if asked to add a subnode to a node which has NOP tags interspersed with its properties. In this case fdt_add_subnode_namelen() will put the new subnode before the first NOP tag, even if there are properties after it, which will result in an invalid blob. This patch fixes the bug, and adds a testcase for it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>