]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: fdt: remove CMD_FDT_MAX_DUMP
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 19 Jun 2020 17:45:55 +0000 (19:45 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:57:22 +0000 (18:57 -0600)
commitaa649a8a359bdf3a584d89df769ebcc3e0d2cea7
tree22c3b95c867cb4469bef0da4691ee16801e88126
parent8db50f51623e8f8462437235d0b7ae0be86b78e7
cmd: fdt: remove CMD_FDT_MAX_DUMP

When printing the device tree we want to get an output that can be used as
input for the device tree compiler. This requires that we do not write
bogus lines like

    pcie@10000000 {
            interrupt-map = * 0x4000127c [0x00000280];

For instance the QEMU virt device has a property interrupt-map with 640
bytes which exceeds CMD_FDT_MAX_DUMP=64.

So lets do away with the artificial limitation to 64 bytes.

As indicated in commit f0a29d43313c ("fdt: Limit printed hex in fdt print
and list commands") if a device tree contains binary blobs, it may still
be desirable to limit the output length. Provide environment variable
fdt_max_dump for this purpose.

Fixes: 08ee7d069ad2 ("Kconfig: Drop CONFIG_CMD_FDT_MAX_DUMP")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fdt.c