We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41bafe1 commit 39f76b3Copy full SHA for 39f76b3
src/Makefile
@@ -32,7 +32,7 @@ load: boot.bin
32
.PHONY: clean depend load boot.crc.bin
33
34
boot.crc.bin: boot.bin
35
- IMAGES_DIR=$(IMGDIR) ./append_crc_len.sh
+ IMAGES_DIR=$(IMAGES_DIR) ./append_crc_len.sh
36
37
depend:
38
makedepend -Y -- $(CFLAGS) -- *.c
src/append_crc_len.sh
@@ -1,6 +1,7 @@
1
#!/bin/bash
2
3
-BOOT_CRC_BIN="boot.crc.bin"
+REV=$(git log | head -n 1 | cut -b8-14)
4
+BOOT_CRC_BIN="boot.crc.${REV}.bin"
5
6
CRC_LEN_TMP=`mktemp`
7
BOOT_BIN_TMP=`mktemp`
@@ -70,5 +71,5 @@ do
70
71
fi
72
done
73
-echo "boot.crc.bin created"
74
+echo "${BOOT_CRC_BIN} created"
75
exit 0
0 commit comments