[PATCH] Cross compile?

Lombard, David N dnlombar at ichips.intel.com
Mon May 5 16:53:28 EDT 2008


In util/Makefile, the bin-to-hex utility was being built with the
cross-compiler, not the host compiler.  This patch fixes that.

Signed-off-by: David N. Lombard, <david.n.lombard at intel.com>


--- kexec-tools-testing-20080324/util/Makefile.orig	2008-03-24 01:30:57.000000000 -0700
+++ kexec-tools-testing-20080324/util/Makefile	2008-05-05 13:10:09.000000000 -0700
@@ -2,10 +2,7 @@ BIN_TO_HEX:= bin/bin-to-hex
 
 $(BIN_TO_HEX): $(srcdir)/util/bin-to-hex.c
 	@$(MKDIR) -p $(@D)
-	$(LINK.o) -o $@ $^
+	$(BUILD_CC) $(BUILD_CFLAGS) -o $@ $<
-
-$(BIN_TO_HEX): CC=$(BUILD_CC)
-$(BIN_TO_HEX): CFLAGS=$(BUILD_CFLAGS)
 
 dist += util/Makefile util/bin-to-hex.c
 clean += util/bin-to-hex.o $(BIN_TO_HEX)



More information about the kexec mailing list