diff options
-rw-r--r-- | drivers/video/rockchip/mpp/Makefile | 4 | ||||
-rwxr-xr-x | scripts/setlocalversion | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/video/rockchip/mpp/Makefile b/drivers/video/rockchip/mpp/Makefile index 16e191a8e..5c44fb574 100644 --- a/drivers/video/rockchip/mpp/Makefile +++ b/drivers/video/rockchip/mpp/Makefile @@ -1,9 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0+ OR MIT) MPP_GIT_REVISION := \ - $(shell git log -1 --no-decorate --date=short \ - --pretty=format:"%h author: %<|(30)%an %cd %s" -- $(src) || \ - echo -n "unknown mpp version for missing VCS info") + $(shell echo -n "") MPP_REVISION_0 := $(subst \,\\\,$(MPP_GIT_REVISION)) MPP_REVISION := $(subst ",\\\",$(MPP_REVISION_0)) diff --git a/scripts/setlocalversion b/scripts/setlocalversion index ae1de3c47..df4c3af5b 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -53,6 +53,9 @@ scm_version() short=false cd "$srctree" + if [ ! -e .git ] ; then + return + fi if test -e .scmversion; then cat .scmversion return |