Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add git rev to boot.crc.bin

  • Loading branch information...
commit 39f76b30dd0a51f6a76e96988169cdcac72844ad 1 parent 41bafe1
authored September 02, 2011
2  src/Makefile
@@ -32,7 +32,7 @@ load: boot.bin
32 32
 .PHONY: clean depend load boot.crc.bin
33 33
 
34 34
 boot.crc.bin: boot.bin
35  
-	IMAGES_DIR=$(IMGDIR) ./append_crc_len.sh
  35
+	IMAGES_DIR=$(IMAGES_DIR) ./append_crc_len.sh
36 36
 
37 37
 depend:
38 38
 	makedepend -Y -- $(CFLAGS) -- *.c
5  src/append_crc_len.sh
... ...
@@ -1,6 +1,7 @@
1 1
 #!/bin/bash
2 2
 
3  
-BOOT_CRC_BIN="boot.crc.bin"
  3
+REV=$(git log | head -n 1 | cut -b8-14)
  4
+BOOT_CRC_BIN="boot.crc.${REV}.bin"
4 5
 
5 6
 CRC_LEN_TMP=`mktemp`
6 7
 BOOT_BIN_TMP=`mktemp`
@@ -70,5 +71,5 @@ do
70 71
     fi
71 72
 done
72 73
 
73  
-echo "boot.crc.bin created"
  74
+echo "${BOOT_CRC_BIN} created"
74 75
 exit 0

0 notes on commit 39f76b3

Please sign in to comment.
Something went wrong with that request. Please try again.