From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 27 Dec 2007 13:42:56 -0500 Subject: [U-Boot-Users] [patch] do not use linux/string.h in sha1.c on hosts In-Reply-To: <20071225211414.470F62410D@gemini.denx.de> References: <20071225211414.470F62410D@gemini.denx.de> Message-ID: <200712271342.58728.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday 25 December 2007, Wolfgang Denk wrote: > In message <200712241709.31277.vapier@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 --- 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) $@