Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Apr 2009 05:25:53 +0000 (15:25 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 2 May 2009 23:52:26 +0000 (16:52 -0700)
commit9fffb55f66127b52c937ede5196ebfa0c0d50bce
tree11664fb82734ba8dcde9556b8d47e780451a740a
parentafc1e702e8e8355faa712d4e90d9afe26a4995a5
Move dtc and libfdt sources from arch/powerpc/boot to scripts/dtc

The powerpc kernel always requires an Open Firmware like device tree
to supply device information.  On systems without OF, this comes from
a flattened device tree blob.  This blob is usually generated by dtc,
a tool which compiles a text description of the device tree into the
flattened format used by the kernel.  Sometimes, the bootwrapper makes
small changes to the pre-compiled device tree blob (e.g. filling in
the size of RAM).  To do this it uses the libfdt library.

Because these are only used on powerpc, the code for both these tools
is included under arch/powerpc/boot (these were imported and are
periodically updated from the upstream dtc tree).

However, the microblaze architecture, currently being prepared for
merging to mainline also uses dtc to produce device tree blobs.  A few
other archs have also mentioned some interest in using dtc.
Therefore, this patch moves dtc and libfdt from arch/powerpc into
scripts, where it can be used by any architecture.

The vast bulk of this patch is a literal move, the rest is adjusting
the various Makefiles to use dtc and libfdt correctly from their new
locations.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
61 files changed:
arch/powerpc/Kconfig
arch/powerpc/boot/Makefile
arch/powerpc/boot/dtc-src/Makefile.dtc [deleted file]
arch/powerpc/boot/dtc-src/checks.c [deleted file]
arch/powerpc/boot/dtc-src/data.c [deleted file]
arch/powerpc/boot/dtc-src/dtc-lexer.l [deleted file]
arch/powerpc/boot/dtc-src/dtc-lexer.lex.c_shipped [deleted file]
arch/powerpc/boot/dtc-src/dtc-parser.tab.c_shipped [deleted file]
arch/powerpc/boot/dtc-src/dtc-parser.tab.h_shipped [deleted file]
arch/powerpc/boot/dtc-src/dtc-parser.y [deleted file]
arch/powerpc/boot/dtc-src/dtc.c [deleted file]
arch/powerpc/boot/dtc-src/dtc.h [deleted file]
arch/powerpc/boot/dtc-src/flattree.c [deleted file]
arch/powerpc/boot/dtc-src/fstree.c [deleted file]
arch/powerpc/boot/dtc-src/libfdt_env.h [deleted file]
arch/powerpc/boot/dtc-src/livetree.c [deleted file]
arch/powerpc/boot/dtc-src/srcpos.c [deleted file]
arch/powerpc/boot/dtc-src/srcpos.h [deleted file]
arch/powerpc/boot/dtc-src/treesource.c [deleted file]
arch/powerpc/boot/dtc-src/version_gen.h [deleted file]
arch/powerpc/boot/libfdt/Makefile.libfdt [deleted file]
arch/powerpc/boot/libfdt/fdt.c [deleted file]
arch/powerpc/boot/libfdt/fdt.h [deleted file]
arch/powerpc/boot/libfdt/fdt_ro.c [deleted file]
arch/powerpc/boot/libfdt/fdt_rw.c [deleted file]
arch/powerpc/boot/libfdt/fdt_strerror.c [deleted file]
arch/powerpc/boot/libfdt/fdt_sw.c [deleted file]
arch/powerpc/boot/libfdt/fdt_wip.c [deleted file]
arch/powerpc/boot/libfdt/libfdt.h [deleted file]
arch/powerpc/boot/libfdt/libfdt_internal.h [deleted file]
arch/powerpc/boot/simpleboot.c
scripts/Makefile
scripts/dtc/Makefile [new file with mode: 0644]
scripts/dtc/Makefile.dtc [new file with mode: 0644]
scripts/dtc/checks.c [new file with mode: 0644]
scripts/dtc/data.c [new file with mode: 0644]
scripts/dtc/dtc-lexer.l [new file with mode: 0644]
scripts/dtc/dtc-lexer.lex.c_shipped [new file with mode: 0644]
scripts/dtc/dtc-parser.tab.c_shipped [new file with mode: 0644]
scripts/dtc/dtc-parser.tab.h_shipped [new file with mode: 0644]
scripts/dtc/dtc-parser.y [new file with mode: 0644]
scripts/dtc/dtc.c [new file with mode: 0644]
scripts/dtc/dtc.h [new file with mode: 0644]
scripts/dtc/flattree.c [new file with mode: 0644]
scripts/dtc/fstree.c [new file with mode: 0644]
scripts/dtc/libfdt/Makefile.libfdt [new file with mode: 0644]
scripts/dtc/libfdt/fdt.c [new file with mode: 0644]
scripts/dtc/libfdt/fdt.h [new file with mode: 0644]
scripts/dtc/libfdt/fdt_ro.c [new file with mode: 0644]
scripts/dtc/libfdt/fdt_rw.c [new file with mode: 0644]
scripts/dtc/libfdt/fdt_strerror.c [new file with mode: 0644]
scripts/dtc/libfdt/fdt_sw.c [new file with mode: 0644]
scripts/dtc/libfdt/fdt_wip.c [new file with mode: 0644]
scripts/dtc/libfdt/libfdt.h [new file with mode: 0644]
scripts/dtc/libfdt/libfdt_env.h [new file with mode: 0644]
scripts/dtc/libfdt/libfdt_internal.h [new file with mode: 0644]
scripts/dtc/livetree.c [new file with mode: 0644]
scripts/dtc/srcpos.c [new file with mode: 0644]
scripts/dtc/srcpos.h [new file with mode: 0644]
scripts/dtc/treesource.c [new file with mode: 0644]
scripts/dtc/version_gen.h [new file with mode: 0644]