Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add git rev to boot.crc.bin

  • Loading branch information...
commit 39f76b30dd0a51f6a76e96988169cdcac72844ad 1 parent 41bafe1
Xiangfu Liu authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  src/Makefile
  2. +3 −2 src/append_crc_len.sh
View
2  src/Makefile
@@ -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
View
5 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`
@@ -70,5 +71,5 @@ do
fi
done
-echo "boot.crc.bin created"
+echo "${BOOT_CRC_BIN} created"
exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.