From: Tom Rini Date: Fri, 17 Nov 2017 10:43:23 -0500 Subject: [U-Boot] [U-Boot, v2, 4/4] pylibfdt: compile pylibfdt only when dtoc/binman is necessary In-Reply-To: <1508215364-14631-5-git-send-email-yamada.masahiro@socionext.com> References: <1508215364-14631-5-git-send-email-yamada.masahiro@socionext.com> Message-ID: <20171117154323.GW9986@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Oct 17, 2017 at 01:42:44PM +0900, Masahiro Yamada wrote: > 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: