Permalink
Browse files

add git rev to boot.crc.bin

  • Loading branch information...
1 parent 41bafe1 commit 39f76b30dd0a51f6a76e96988169cdcac72844ad Xiangfu Liu committed Sep 2, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 src/Makefile
  2. +3 −2 src/append_crc_len.sh
View
@@ -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
@@ -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`
@@ -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.