[U-Boot-Users] [patch] do not use linux/string.h in sha1.c on hosts

Mike Frysinger vapier at gentoo.org
Thu Dec 27 19:42:56 CET 2007


On Tuesday 25 December 2007, Wolfgang Denk wrote:
> In message <200712241709.31277.vapier at gentoo.org> you wrote:
> > linux/string.h is not a valid include outside of the kernel, so when
> > compiling sha1.c for the host (for use with the `mkimage` host binary),
> > the include needs to be changed to string.h.
>
> But IIRC mkimage does not use any sha1 code ...

the Makefile claims otherwise ... patch attached to remove sha1.o from mkimage
linking since it isnt actually used.

Signed-Off-By: Mike Frysinger <vapier at gentoo.org>
---
diff --git a/tools/Makefile b/tools/Makefile
index e8e0280..0432253 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -136,7 +136,7 @@ $(obj)img2srec$(SFX):	$(obj)img2srec.o
 		$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
 		$(STRIP) $@
 
-$(obj)mkimage$(SFX):	$(obj)mkimage.o $(obj)crc32.o $(obj)sha1.o
+$(obj)mkimage$(SFX):	$(obj)mkimage.o $(obj)crc32.o
 		$(CC) $(CFLAGS) $(HOST_LDFLAGS) -o $@ $^
 		$(STRIP) $@
 




More information about the U-Boot mailing list