[DTC][PATCH] Fix cross-compile building

Stuart Hughes stuarth at freescale.com
Sat Dec 8 23:53:25 EST 2007


On Sat, 2007-12-08 at 11:36 +1100, David Gibson wrote:
> On Fri, Dec 07, 2007 at 12:28:20PM -0600, Kumar Gala wrote:
> > From: Stuart Hughes <stuarth at freescale.com>
> > 
> > This patch allows you to build the DTC source without making the
> > tests directory.  This is necessary when cross compiling as the
> > dumptest (and other) files cannot be run/used on the host system.
> > To use this use: 'make TESTS='
> 
> I think this is a silly way of doing this.  Instead create a new
> target which builds everything but the tests.
> 
> Say,
> 
> 	all: cross tests
> 
> 	cross: dtc ftdump libfdt
> 

Works for me.

Regards, Stuart




More information about the Linuxppc-dev mailing list