diff options
author | Tian Fang <tfang@fb.com> | 2015-09-25 14:42:25 -0700 |
---|---|---|
committer | Tian Fang <tfang@fb.com> | 2015-09-25 14:42:25 -0700 |
commit | d33ed2284e50dea51c86a786e16f6c19f9cfd373 (patch) | |
tree | ed595961b871292bfe75e2895e1d8ddbac835dc3 /common | |
parent | a2191ac71c1ed9b265b19b8025633d543d9e6be9 (diff) | |
download | ast2050-yocto-openbmc-d33ed2284e50dea51c86a786e16f6c19f9cfd373.zip ast2050-yocto-openbmc-d33ed2284e50dea51c86a786e16f6c19f9cfd373.tar.gz |
[base-files] Add '--always' option to for 'git describe'
Summary:
We use 'git describe' to generate OpenBMC release version number. Add
'--always' option so that it won't fail on repo without tag.
Test Plan:
bitbake -c cleanall base-files && bitbake base-files
Diffstat (limited to 'common')
-rw-r--r-- | common/recipes-core/base-files/base-files_%.bbappend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/recipes-core/base-files/base-files_%.bbappend b/common/recipes-core/base-files/base-files_%.bbappend index 6a73f2b..24cfd60 100644 --- a/common/recipes-core/base-files/base-files_%.bbappend +++ b/common/recipes-core/base-files/base-files_%.bbappend @@ -18,7 +18,7 @@ do_install_bmc_issue () { if [ -d "$dir/meta-openbmc/.git" ]; then srcdir="$dir/meta-openbmc" srcdir_git="${srcdir}/.git" - version=$(git --git-dir=${srcdir_git} --work-tree=${srcdir} describe --dirty 2> /dev/null) + version=$(git --git-dir=${srcdir_git} --work-tree=${srcdir} describe --dirty --always 2> /dev/null) else version="" fi |