- Store revision ids used to build on target system (/etc/release)

This commit is contained in:
2014-05-09 16:16:35 +02:00
parent 8369b60542
commit b8e6f30244
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
overlay/etc/release

View File

@@ -1,4 +1,7 @@
#!/bin/sh
PANDA_REV=`git rev-parse HEAD`
BR_REV=`(cd buildroot && git rev-parse HEAD)`
echo "panda_linux $PANDA_REV (buildroot $BR_REV)" > overlay/etc/release
(
cd buildroot
BR2_DEFCONFIG=../buildroot.config make defconfig &&