[Buildroot] [PATCH v3] Add dtc (device tree compiler) as host tool

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Mar 23 15:09:04 UTC 2012


Le Fri, 23 Mar 2012 16:01:16 +0100,
Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> a écrit :

> I hadn't though about this case.
> One could question whether it is a valid case that someone selects dtc
> in buildroot but not in the kernel.
> 
> Probably the nicest way is to not use dtc from the linux kernel
> sources but download the dtc sources explicitly. I thought this was a
> bit overkill, and I'm not sure if there can be inconsistencies between
> these sources and the kernel ones.

I have no strong opinion here. You can just keep what you've done and:

 * Add an explanation in the help text about this fact

 * Add something like the following to your installation code:

if ! grep -q ^CONFIG_DTC=y $(LINUX_DIR)/.config ; then
	echo "Cannot install the Device Tree Compiler since you have
	not enabled CONFIG_DTC=y in your kernel configuration.
	Aborting".
	exit 1
fi

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list