sdk: fix generation of base feed url
authorJo-Philipp Wich <jo@mein.io>
Sun, 17 Apr 2016 19:50:31 +0000 (21:50 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 17 Apr 2016 19:50:31 +0000 (21:50 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
target/sdk/Makefile

index 857a6b76f5213a7bc05bec6dff28b0f288617864..0246afbb8790962997329806313d149d4bc504bd 100644 (file)
@@ -37,7 +37,7 @@ SDK_DIRS = \
 BASE_FEED:=$(shell git config --get remote.origin.url 2>/dev/null | sed -ne 's/^/src-git base /p')
 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 https://git.openwrt.org/$(filter-out unknown/ r%/,$(subst $(space),.,$(wordlist 1,2,$(subst .,$(space),$(VERSION_NUMBER))))/)openwrt.git)
+BASE_FEED:=$(if $(BASE_FEED),$(BASE_FEED),src-git base https://git.lede-project.org/source.git$(filter-out ;master,;$(shell git rev-parse --abbrev-ref HEAD)))
 
 KDIR_BASE = $(patsubst $(TOPDIR)/%,%,$(LINUX_DIR))