[DTC][PATCH] Fix cross-compile building

Kumar Gala galak at kernel.crashing.org
Sat Dec 8 05:28:20 EST 2007


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='

Signed-off-by: Stuart Hughes <stuarth at freescale.com>
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index bcb143f..9d926b5 100644
--- a/Makefile
+++ b/Makefile
@@ -46,7 +46,9 @@ else
 DEPTARGETS = $(filter-out $(NODEPTARGETS),$(MAKECMDGOALS))
 endif

-all: dtc ftdump libfdt tests
+TESTS = tests
+
+all: dtc ftdump libfdt $(TESTS)

 install: all
 	@$(VECHO) INSTALL
-- 
1.5.3.4




More information about the Linuxppc-dev mailing list