summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2023-10-28 16:30:02 +0300
committerkx <kx@radix.pro>2023-10-28 16:30:02 +0300
commit555b9458002fcb47af0f95dc6c1d4fb8773d4431 (patch)
treefed70495ef8c50708461cd4cb26ab71ab2b9626f
parentdb52e5179dffeb7dc835a4bef1788a839ab8e615 (diff)
downloadlinux-orangepi-5.10.y-555b9458002fcb47af0f95dc6c1d4fb8773d4431.tar.xz
Remove rockchip git callsHEADtrunk
-rw-r--r--drivers/video/rockchip/mpp/Makefile4
-rwxr-xr-xscripts/setlocalversion3
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