]> git.ipfire.org Git - people/ms/u-boot.git/commit
pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Oct 2017 04:42:43 +0000 (13:42 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 17 Nov 2017 12:43:32 +0000 (07:43 -0500)
commit15b97f5c5e6d88e0560c6928f3acd01c999a494d
tree4b2416c2278d5a8c1ca3248a594d68753eea5673
parent999a78d5cf00dfb8cd8342454933ea492e955377
pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile

The pylibfdt is used by dtoc (and, indirectly by binman), but there
is no reason why it must be generated in the tools/ directory.

Recently, U-Boot switched over to the bundled DTC, and the directory
structure under scripts/dtc/ now mirrors the upstream DTC project.
So, scripts/dtc/pylibfdt is the best location.

I also rewrote the Makefile in a cleaner Kbuild style.

The scripts from the upstream have been moved as follows:

  lib/libfdt/pylibfdt/setup.py -> scripts/dtc/pylibfdt/setup.py
  lib/libfdt/pylibfdt/libfdt.i -> scripts/dtc/pylibfdt/libfdt.i_shipped

The .i_shipped is coped to .i during building because the .i must be
located in the objtree when we build it out of tree.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile
scripts/Makefile.spl
scripts/dtc/Makefile
scripts/dtc/pylibfdt/.gitignore [new file with mode: 0644]
scripts/dtc/pylibfdt/Makefile [new file with mode: 0644]
scripts/dtc/pylibfdt/libfdt.i_shipped [moved from lib/libfdt/pylibfdt/libfdt.i with 100% similarity]
scripts/dtc/pylibfdt/setup.py [moved from lib/libfdt/pylibfdt/setup.py with 100% similarity]
tools/.gitignore
tools/Makefile
tools/binman/binman.py