fix make gitversion
@@ -49,9 +49,14 @@ ifneq ($(wildcard ../.git/HEAD),)
obj/gitversion.h: ../.git/HEAD ../.git/index
echo "const uint8_t gitversion[] = \"$(shell git rev-parse HEAD)\";" > $@
else
+ifneq ($(wildcard ../../.git/modules/panda/HEAD),)
+obj/gitversion.h: ../../.git/modules/panda/HEAD ../../.git/modules/panda/index
+ echo "const uint8_t gitversion[] = \"$(shell git rev-parse HEAD)\";" > $@
+else
obj/gitversion.h:
echo "const uint8_t gitversion[] = \"RELEASE\";" > $@
endif
+endif
obj/cert.h: ../crypto/getcertheader.py
../crypto/getcertheader.py ../certs/debug.pub ../certs/release.pub > $@
