mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:

committed by
Tom Rini

parent
15b97f5c5e
commit
d6a0c78a4e
13
dts/Kconfig
13
dts/Kconfig
@ -8,6 +8,17 @@ config SUPPORT_OF_CONTROL
|
||||
config DTC
|
||||
bool
|
||||
|
||||
config PYLIBFDT
|
||||
bool
|
||||
|
||||
config DTOC
|
||||
bool
|
||||
select PYLIBFDT
|
||||
|
||||
config BINMAN
|
||||
bool
|
||||
select DTOC
|
||||
|
||||
menu "Device Tree Control"
|
||||
depends on SUPPORT_OF_CONTROL
|
||||
|
||||
@ -231,6 +242,7 @@ config OF_SPL_REMOVE_PROPS
|
||||
config SPL_OF_PLATDATA
|
||||
bool "Generate platform data for use in SPL"
|
||||
depends on SPL_OF_CONTROL
|
||||
select DTOC
|
||||
help
|
||||
For very constrained SPL environments the overhead of decoding
|
||||
device tree nodes and converting their contents into platform data
|
||||
@ -252,6 +264,7 @@ config SPL_OF_PLATDATA
|
||||
config TPL_OF_PLATDATA
|
||||
bool "Generate platform data for use in TPL"
|
||||
depends on TPL_OF_CONTROL
|
||||
select DTOC
|
||||
help
|
||||
For very constrained SPL environments the overhead of decoding
|
||||
device tree nodes and converting their contents into platform data
|
||||
|
Reference in New Issue
Block a user