aboutsummaryrefslogtreecommitdiffstats
path: root/include/version.mk
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-11-02 08:21:57 +0100
committerMathias Kresin <dev@kresin.me>2018-06-27 08:40:34 +0200
commit52a9edb1bfaf51c250a33303beacba95dd1dbc05 (patch)
tree4055047f5a351367729c26959be3d5f219063c58 /include/version.mk
parent75ab064d2b38e70746af1718ed7cdbafb906249e (diff)
downloadupstream-52a9edb1bfaf51c250a33303beacba95dd1dbc05.tar.gz
upstream-52a9edb1bfaf51c250a33303beacba95dd1dbc05.tar.bz2
upstream-52a9edb1bfaf51c250a33303beacba95dd1dbc05.zip
base-files: add menuconfig option for HOME_URL
Add a menuconfig option to set the HOME_URL exposed in /usr/lib/os-release independent from the LEDE_DEVICE_MANUFACTURER_URL. Fixes: FS#1123 Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'include/version.mk')
-rw-r--r--include/version.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/version.mk b/include/version.mk
index 2b3723bc69..4f6e50cf70 100644
--- a/include/version.mk
+++ b/include/version.mk
@@ -11,6 +11,7 @@
# SOURCE_DATE_EPOCH:=x
PKG_CONFIG_DEPENDS += \
+ CONFIG_VERSION_HOME_URL \
CONFIG_VERSION_BUG_URL \
CONFIG_VERSION_NUMBER \
CONFIG_VERSION_CODE \
@@ -46,6 +47,9 @@ VERSION_MANUFACTURER_URL:=$(if $(VERSION_MANUFACTURER_URL),$(VERSION_MANUFACTURE
VERSION_BUG_URL:=$(call qstrip,$(CONFIG_VERSION_BUG_URL))
VERSION_BUG_URL:=$(if $(VERSION_BUG_URL),$(VERSION_BUG_URL),http://bugs.openwrt.org/)
+VERSION_HOME_URL:=$(call qstrip,$(CONFIG_VERSION_HOME_URL))
+VERSION_HOME_URL:=$(if $(VERSION_HOME_URL),$(VERSION_HOME_URL),http://openwrt.org/)
+
VERSION_SUPPORT_URL:=$(call qstrip,$(CONFIG_VERSION_SUPPORT_URL))
VERSION_SUPPORT_URL:=$(if $(VERSION_SUPPORT_URL),$(VERSION_SUPPORT_URL),http://forum.lede-project.org/)
@@ -100,6 +104,7 @@ VERSION_SED_SCRIPT:=$(SED) 's,%U,$(call sed_escape,$(VERSION_REPO)),g' \
-e 's,%M,$(call sed_escape,$(VERSION_MANUFACTURER)),g' \
-e 's,%m,$(call sed_escape,$(VERSION_MANUFACTURER_URL)),g' \
-e 's,%b,$(call sed_escape,$(VERSION_BUG_URL)),g' \
+ -e 's,%b,$(call sed_escape,$(VERSION_HOME_URL)),g' \
-e 's,%s,$(call sed_escape,$(VERSION_SUPPORT_URL)),g' \
-e 's,%P,$(call sed_escape,$(VERSION_PRODUCT)),g' \
-e 's,%h,$(call sed_escape,$(VERSION_HWREV)),g'