From 3bb6680655a262251261fc8497f53436844ea475 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Wed, 11 Jan 2006 13:03:54 +0100 Subject: Fix mkimage bug with multifile images created on 64 bit systems. --- tools/mkimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/mkimage.c b/tools/mkimage.c index fbc1a12549..70452db1c0 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -383,7 +383,7 @@ NXTARG: ; if (opt_type == IH_TYPE_MULTI || opt_type == IH_TYPE_SCRIPT) { char *file = datafile; - unsigned long size; + uint32_t size; for (;;) { char *sep = NULL; -- cgit From 881a87ecbab328656eb3e9d25c3ed6868587b197 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 21 Feb 2006 17:33:04 +0100 Subject: Add GIT version information (commid ID) to untagged U-Boot versions As done in the linux kernel, the U-Boot version (U_BOOT_VERSION) of all unreleased (untagged) U-Boot images will be automatically extended upon compiletime with a part of the GIT commit ID and possibly with "dirty" if uncommited changes are detected. Here an example for the resulting version: "U-Boot 1.1.4-g3457ac18-dirty" The version is now maintained in the toplevel Makefile and the version headers are autogenerated. Patch by Stefan Roese, 9 Feb 2006 --- tools/setlocalversion | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/setlocalversion (limited to 'tools') diff --git a/tools/setlocalversion b/tools/setlocalversion new file mode 100755 index 0000000000..9a23825218 --- /dev/null +++ b/tools/setlocalversion @@ -0,0 +1,22 @@ +#!/bin/sh +# Print additional version information for non-release trees. + +usage() { + echo "Usage: $0 [srctree]" >&2 + exit 1 +} + +cd "${1:-.}" || usage + +# Check for git and a git repo. +if head=`git rev-parse --verify HEAD 2>/dev/null`; then + # Do we have an untagged version? + if [ "`git name-rev --tags HEAD`" = "HEAD undefined" ]; then + printf '%s%s' -g `echo "$head" | cut -c1-8` + fi + + # Are there uncommitted changes? + if git diff-files | read dummy; then + printf '%s' -dirty + fi +fi -- cgit