diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-04-13 00:31:15 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-04-13 00:31:15 +0200 |
commit | 32a0b8c1045481cd442c82b8b5cbb330f613c7a7 (patch) | |
tree | 8da43effb221a9d5a51a55713b675b14c8969fa8 /include | |
parent | 5170393f8cae3c5acac61bd6ac6e127f9727cee4 (diff) | |
download | upstream-32a0b8c1045481cd442c82b8b5cbb330f613c7a7.tar.gz upstream-32a0b8c1045481cd442c82b8b5cbb330f613c7a7.tar.bz2 upstream-32a0b8c1045481cd442c82b8b5cbb330f613c7a7.zip |
include/version.mk: rework repository url handling
- Add %A placeholder for substituting the package architecture
- Change %U placeholder to refer to the toplevel repository URL
- Construct package feed URLs relative to the toplevel one to match new layout
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include')
-rw-r--r-- | include/feeds.mk | 8 | ||||
-rw-r--r-- | include/version.mk | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/feeds.mk b/include/feeds.mk index ef7a09f4cd..a5ce877967 100644 --- a/include/feeds.mk +++ b/include/feeds.mk @@ -43,12 +43,10 @@ endef # 1: destination file define FeedSourcesAppend ( \ + echo "src/gz %n_core %U/targets/%S/packages"; \ $(strip $(if $(CONFIG_PER_FEED_REPO), \ - $(foreach feed,base kernel $(FEEDS_ENABLED),echo "src/gz %n_$(feed) %U/$(feed)";) \ + $(foreach feed,base $(FEEDS_ENABLED),echo "src/gz %n_$(feed) %U/packages/%A/$(feed)";) \ $(if $(CONFIG_PER_FEED_REPO_ADD_DISABLED), \ - $(foreach feed,$(FEEDS_DISABLED),echo "$(if $(CONFIG_PER_FEED_REPO_ADD_COMMENTED),# )src/gz %n_$(feed) %U/$(feed)";)) \ - , \ - echo "src/gz %n %U"; \ - )) \ + $(foreach feed,$(FEEDS_DISABLED),echo "$(if $(CONFIG_PER_FEED_REPO_ADD_COMMENTED),# )src/gz %n_$(feed) %U/packages/%A/$(feed)";)))) \ ) >> $(1) endef diff --git a/include/version.mk b/include/version.mk index d8da358d69..15a566b508 100644 --- a/include/version.mk +++ b/include/version.mk @@ -1,5 +1,6 @@ # # Copyright (C) 2012-2015 OpenWrt.org +# Copyright (C) 2016 LEDE Project # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -31,7 +32,7 @@ VERSION_NICK:=$(call qstrip_escape,$(CONFIG_VERSION_NICK)) VERSION_NICK:=$(if $(VERSION_NICK),$(VERSION_NICK),$(RELEASE)) VERSION_REPO:=$(call qstrip_escape,$(CONFIG_VERSION_REPO)) -VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),http://downloads.lede-project.org/snapshots/trunk/%S/packages) +VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),http://downloads.lede-project.org/snapshots) VERSION_DIST:=$(call qstrip_escape,$(CONFIG_VERSION_DIST)) VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),LEDE) @@ -84,6 +85,7 @@ VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \ -e 's,%R,$(REVISION),g' \ -e 's,%T,$(BOARD),g' \ -e 's,%S,$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic),g' \ + -e 's,%A,$(ARCH_PACKAGES),g' \ -e 's,%t,$(VERSION_TAINTS),g' \ -e 's,%M,$(VERSION_MANUFACTURER),g' \ -e 's,%m,$(VERSION_MANUFACTURER_URL),g' \ |