u-boot/boot
Simon Glass 121cfe5a84 fdtgrep: Handle an empty output tree
In strange cases it is possible for fdtgrep to find nothing to output.
Typically this means that the resulting SPL device tree is not going to
allow anything to boot, but at present the tree is actually invalid,
since it only has an END tag in the struct region.

The FDT spec requires at least a root node. So add a special case to
include at least this, if the FDT_REG_SUPERNODES flag is set.

This ensures that grepping an empty tree still produces a valid tree.

Also add comments to the enum since it is not completely obvious from
the names now.

The typical symptom of this problem is a message from binman:

   pylibfdt error -11: FDT_ERR_BADSTRUCTURE

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-12-17 09:44:59 -07:00
..
android_ab.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
boot_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootm_os.c bootm: Tidy up use of autostart env var 2021-11-16 14:35:09 -05:00
bootm.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootretry.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
common_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
fdt_region.c fdtgrep: Handle an empty output tree 2021-12-17 09:44:59 -07:00
image-android-dt.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-android.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-board.c image: Explicitly declare do_bdinfo() 2021-11-15 14:33:33 -05:00
image-cipher.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fdt.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fit-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fit.c image: fit: Fix parameter name for hash algorithm 2021-11-17 17:04:59 -05:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image.c image: Explicitly declare do_bdinfo() 2021-11-15 14:33:33 -05:00
Kconfig bootstage: Differentiate boot progress kconfig entries 2021-11-13 08:17:22 -07:00
Makefile pxe: Move pxe_utils files 2021-11-11 19:02:21 -05:00
pxe_utils.c cmd: pxe_utils: Check fdtcontroladdr in label_boot 2021-11-23 09:57:56 +02:00