mirror of https://github.com/thesofproject/sof.git
Merge branch '1.0-stable'
This commit is contained in:
commit
ac3f2e9399
|
@ -10,8 +10,8 @@ else
|
||||||
DIR=$1
|
DIR=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create git version if we are a git repo
|
# create git version if we are a git repo or git worktree
|
||||||
if [ ! -d $DIR/.git ]; then
|
if [ -e $DIR/.git -o -d $DIR/.git ]; then
|
||||||
# version for make dist
|
# version for make dist
|
||||||
git describe --abbrev=4 > $DIR/.version
|
git describe --abbrev=4 > $DIR/.version
|
||||||
git describe --abbrev=4 > $DIR/.tarball-version
|
git describe --abbrev=4 > $DIR/.tarball-version
|
||||||
|
@ -19,7 +19,7 @@ if [ ! -d $DIR/.git ]; then
|
||||||
# git commit for IPC
|
# git commit for IPC
|
||||||
echo "#define REEF_TAG \"`git log --pretty=format:\"%h\" -1 | cut -c1-5`\"" > $DIR/src/include/version.h
|
echo "#define REEF_TAG \"`git log --pretty=format:\"%h\" -1 | cut -c1-5`\"" > $DIR/src/include/version.h
|
||||||
else
|
else
|
||||||
echo "#define REEF_TAG 0" > $DIR/src/include/version.h
|
echo "#define REEF_TAG \"0\"" > $DIR/src/include/version.h
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build counter
|
# build counter
|
||||||
|
|
Loading…
Reference in New Issue