]> git.baikalelectronics.ru Git - uboot.git/commit
tools: use files from scripts/dtc/libfdt where possible
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Oct 2017 13:30:18 +0000 (22:30 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 17 Nov 2017 12:44:13 +0000 (07:44 -0500)
commita48abccb09c288c84c09d3e4f1d51a5aca811de1
tree4e9f6084a5beeb71830f9d46e6da3e7e97350ecd
parent9ed6ff450882b00287d7222f93d6e0b544ffb048
tools: use files from scripts/dtc/libfdt where possible

Prior to this commit, tools/Makefile pulls all libfdt files from
lib/libfdt.

lib/libfdt/ and scripts/dtc/libfdt have the same copies for the
followings 6 files:
  fdt.c fdt_addresses.c fdt_empty_tree.c fdt_overlay.c fdt_strerr.c
  fdt_sw.c

This commit changes them to #include ones from scripts/dtc/libfdt.

Unfortunately, U-Boot locally modified the following 3 files:
  fdt_ro.c fdt_wip.c fdt_rw.c

I did not touch them in order to avoid unpredictable impact.

The fdt_region.c is U-Boot own file.  This is also borrowed from
lib/libfdt/.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
tools/Makefile
tools/libfdt/fdt.c [new file with mode: 0644]
tools/libfdt/fdt_addresses.c [new file with mode: 0644]
tools/libfdt/fdt_empty_tree.c [new file with mode: 0644]
tools/libfdt/fdt_overlay.c [new file with mode: 0644]
tools/libfdt/fdt_strerror.c [new file with mode: 0644]
tools/libfdt/fdt_sw.c [new file with mode: 0644]