diff options
author | Masahiro Yamada | 2017-10-17 22:30:18 +0900 |
---|---|---|
committer | Tom Rini | 2017-11-17 07:44:13 -0500 |
commit | b38ad663a4b4ccd91a43b12e2d65179dbd2b40cb (patch) | |
tree | 4e9f6084a5beeb71830f9d46e6da3e7e97350ecd /tools/libfdt | |
parent | 35a33baea59210924bceedabcfba794f0fed59dd (diff) |
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>
Diffstat (limited to 'tools/libfdt')
-rw-r--r-- | tools/libfdt/fdt.c | 2 | ||||
-rw-r--r-- | tools/libfdt/fdt_addresses.c | 2 | ||||
-rw-r--r-- | tools/libfdt/fdt_empty_tree.c | 2 | ||||
-rw-r--r-- | tools/libfdt/fdt_overlay.c | 2 | ||||
-rw-r--r-- | tools/libfdt/fdt_strerror.c | 2 | ||||
-rw-r--r-- | tools/libfdt/fdt_sw.c | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/tools/libfdt/fdt.c b/tools/libfdt/fdt.c new file mode 100644 index 00000000000..8ba80919211 --- /dev/null +++ b/tools/libfdt/fdt.c @@ -0,0 +1,2 @@ +#include "fdt_host.h" +#include "../scripts/dtc/libfdt/fdt.c" diff --git a/tools/libfdt/fdt_addresses.c b/tools/libfdt/fdt_addresses.c new file mode 100644 index 00000000000..242a2c083ba --- /dev/null +++ b/tools/libfdt/fdt_addresses.c @@ -0,0 +1,2 @@ +#include "fdt_host.h" +#include "../scripts/dtc/libfdt/fdt_addresses.c" diff --git a/tools/libfdt/fdt_empty_tree.c b/tools/libfdt/fdt_empty_tree.c new file mode 100644 index 00000000000..9ccbb1f94ea --- /dev/null +++ b/tools/libfdt/fdt_empty_tree.c @@ -0,0 +1,2 @@ +#include "fdt_host.h" +#include "../scripts/dtc/libfdt/fdt_empty_tree.c" diff --git a/tools/libfdt/fdt_overlay.c b/tools/libfdt/fdt_overlay.c new file mode 100644 index 00000000000..801ec374b15 --- /dev/null +++ b/tools/libfdt/fdt_overlay.c @@ -0,0 +1,2 @@ +#include "fdt_host.h" +#include "../scripts/dtc/libfdt/fdt_overlay.c" diff --git a/tools/libfdt/fdt_strerror.c b/tools/libfdt/fdt_strerror.c new file mode 100644 index 00000000000..d7ed70bea47 --- /dev/null +++ b/tools/libfdt/fdt_strerror.c @@ -0,0 +1,2 @@ +#include "fdt_host.h" +#include "../scripts/dtc/libfdt/fdt_strerror.c" diff --git a/tools/libfdt/fdt_sw.c b/tools/libfdt/fdt_sw.c new file mode 100644 index 00000000000..ed6b3275730 --- /dev/null +++ b/tools/libfdt/fdt_sw.c @@ -0,0 +1,2 @@ +#include "fdt_host.h" +#include "../scripts/dtc/libfdt/fdt_sw.c" |