Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add git rev to boot.crc.bin
  • Loading branch information
Xiangfu Liu committed Sep 2, 2011
1 parent 41bafe1 commit 39f76b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Expand Up @@ -32,7 +32,7 @@ load: boot.bin
.PHONY: clean depend load boot.crc.bin

boot.crc.bin: boot.bin
IMAGES_DIR=$(IMGDIR) ./append_crc_len.sh
IMAGES_DIR=$(IMAGES_DIR) ./append_crc_len.sh

depend:
makedepend -Y -- $(CFLAGS) -- *.c
Expand Down
5 changes: 3 additions & 2 deletions src/append_crc_len.sh
@@ -1,6 +1,7 @@
#!/bin/bash

BOOT_CRC_BIN="boot.crc.bin"
REV=$(git log | head -n 1 | cut -b8-14)
BOOT_CRC_BIN="boot.crc.${REV}.bin"

CRC_LEN_TMP=`mktemp`
BOOT_BIN_TMP=`mktemp`
Expand Down Expand Up @@ -70,5 +71,5 @@ do
fi
done

echo "boot.crc.bin created"
echo "${BOOT_CRC_BIN} created"
exit 0

0 comments on commit 39f76b3

Please sign in to comment.