]> git.baikalelectronics.ru Git - uboot.git/commit
pylibfdt: compile pylibfdt only when dtoc/binman is necessary
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Oct 2017 04:42:44 +0000 (13:42 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 17 Nov 2017 12:43:32 +0000 (07:43 -0500)
commit2d5430482bbfae6e091ffd077541df1e5456693d
treef182d9931b330fa498c6f42da989e0593aa134ff
parent14d3c8925d51914a52183a1018a637f3f228091e
pylibfdt: compile pylibfdt only when dtoc/binman is necessary

Currently, pylibfdt is always compiled if swig is installed on your
machine.  It is really annoying because most of targets (excepts
x86, sunxi, rockchip) do not use dtoc or binman.

"checkbinman" and "checkdtoc" are wrong.  It is odd that the final
build stage checks if we have built necessary tools.  If your platform
depends on dtoc/binman, you must be able to build pylibfdt.  If swig
is not installed, it should fail immediately.

I added PYLIBFDT, DTOC, BINMAN entries to Kconfig.  They should be
property select:ed by platforms that need them.  Kbuild will descend
into scripts/dtc/pylibfdt/ only when CONFIG_PYLIBFDT is enabled.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile
arch/arm/Kconfig
arch/x86/Kconfig
dts/Kconfig
scripts/Makefile.spl
scripts/dtc/Makefile