summaryrefslogtreecommitdiffstats
path: root/target/sdk
diff options
context:
space:
mode:
authorKuan-Yi Li <kyli@abysm.org>2022-11-05 00:16:36 +0800
committerPaul Spooren <mail@aparcar.org>2022-11-06 17:08:23 +0100
commitf795ecc0ddb40a3d796e6faaa177b545923efc70 (patch)
treed50b3d82d1e0f7b70e4e8843245edcc956ce7c11 /target/sdk
parentaca8bb5cc332f0ffdf4249e76b0a56716f98bef0 (diff)
downloadopenwrt-f795ecc0ddb40a3d796e6faaa177b545923efc70.tar.gz
openwrt-f795ecc0ddb40a3d796e6faaa177b545923efc70.tar.bz2
openwrt-f795ecc0ddb40a3d796e6faaa177b545923efc70.zip
sdk: use git-src-full to allow Git versioning
$(AUTORELEASE) uses Git log to determine releases and package timestamps. Base feed is shallow cloned by default in generated SDK, resulting in an incomplete Git log and therefore different local package versions than offered upstream. This patch complements commit 7fae1e5677 by setting the base feed to use `src-git-full` to solve that. Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
Diffstat (limited to 'target/sdk')
-rw-r--r--target/sdk/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index be7e1ebf51..89cc898e9d 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -46,10 +46,10 @@ GIT_COMMIT:=$(shell git rev-parse HEAD 2>/dev/null)
GIT_BRANCH:=$(filter-out master HEAD,$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null))
GIT_TAGNAME:=$(shell git show-ref --tags --dereference 2>/dev/null | sed -ne '/^$(GIT_COMMIT) / { s|^.*/||; s|\^.*||; p }')
-BASE_FEED:=$(if $(GIT_URL),src-git base $(GIT_URL)$(if $(GIT_BRANCH),;$(GIT_BRANCH),$(if $(GIT_TAGNAME),;$(GIT_TAGNAME))))
+BASE_FEED:=$(if $(GIT_URL),src-git-full base $(GIT_URL)$(if $(GIT_BRANCH),;$(GIT_BRANCH),$(if $(GIT_TAGNAME),;$(GIT_TAGNAME))))
BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),$(shell cd $(TOPDIR); LC_ALL=C git svn info 2>/dev/null | sed -ne 's/^URL: /src-gitsvn base /p'))
BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),$(shell cd $(TOPDIR); LC_ALL=C svn info 2>/dev/null | sed -ne 's/^URL: /src-svn base /p'))
-BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),src-git base $(PROJECT_GIT)/openwrt/openwrt.git$(if $(GIT_BRANCH),;$(GIT_BRANCH),$(if $(GIT_TAGNAME),;$(GIT_TAGNAME))))
+BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),src-git-full base $(PROJECT_GIT)/openwrt/openwrt.git$(if $(GIT_BRANCH),;$(GIT_BRANCH),$(if $(GIT_TAGNAME),;$(GIT_TAGNAME))))
KDIR_BASE = $(patsubst $(TOPDIR)/%,%,$(LINUX_DIR))
KDIR_ARCHES = $(LINUX_KARCH)