cmd, fdt: add subcommand "get" to fdt header
authorHeiko Schocher <hs@denx.de>
Thu, 15 Nov 2018 05:06:06 +0000 (06:06 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:05 +0000 (09:30 -0700)
commit8244127db93d6cf17d2b35e9083400a78015c061
treed43ad932818d1b47812082a6286f0c102a6e466a
parentb847c1424318c6a0b7aab14e465d7e253b162d31
cmd, fdt: add subcommand "get" to fdt header

store fdt header member with name <member> in U-Boot
Environment variable with name <var>.

for example to get the total length of the fdt and store
it in filesize, call:

fdt header get filesize totalsize

For membernames look into fdt header definition at
scripts/dtc/libfdt/libfdt.h

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fdt.c