mirror of
https://github.com/outbackdingo/wlan-ap.git
synced 2026-01-27 10:20:52 +00:00
WIFI-14502: Add wlan-ucentral-schema revision hash to /etc/openwrt_release
Signed-off-by: Tanya Singh <tanya_singh@accton.com>
This commit is contained in:
committed by
John Crispin
parent
3abc947f8f
commit
5dd212829f
@@ -0,0 +1,60 @@
|
||||
From f33287bae31089a270f1a83265df28f104d1afe2 Mon Sep 17 00:00:00 2001
|
||||
From: Tanya Singh <tanya_singh@accton.com>
|
||||
Date: Thu, 27 Mar 2025 11:47:17 +0800
|
||||
Subject: [PATCH] add wlan-ucentral-schema revision hash to
|
||||
/etc/openwrt_release
|
||||
|
||||
---
|
||||
include/version.mk | 3 +++
|
||||
package/base-files/files/etc/openwrt_release | 1 +
|
||||
scripts/getver.sh | 5 +++++
|
||||
3 files changed, 9 insertions(+)
|
||||
|
||||
diff --git a/include/version.mk b/include/version.mk
|
||||
index af7d9a1e32..94f0046247 100644
|
||||
--- a/include/version.mk
|
||||
+++ b/include/version.mk
|
||||
@@ -61,6 +61,8 @@ VERSION_TIP:=$(shell $(TOPDIR)/scripts/getver.sh wlan-ap)
|
||||
VERSION_TIP_VERSION:=$(shell $(TOPDIR)/scripts/getver.sh wlan-ap-version)
|
||||
VERSION_TIP_VERSION:=$(if $(VERSION_TIP_VERSION),$(VERSION_TIP_VERSION),devel)
|
||||
|
||||
+VERSION_UCENTRAL_SCHEMA:=$(shell $(TOPDIR)/scripts/getver.sh ucentral-schema-version)
|
||||
+
|
||||
define taint2sym
|
||||
$(CONFIG_$(firstword $(subst :, ,$(subst +,,$(subst -,,$(1))))))
|
||||
endef
|
||||
@@ -111,5 +113,6 @@ VERSION_SED_SCRIPT:=$(SED) 's,%U,$(call sed_escape,$(VERSION_REPO)),g' \
|
||||
-e 's,%P,$(call sed_escape,$(VERSION_PRODUCT)),g' \
|
||||
-e 's,%a,$(call sed_escape,$(VERSION_TIP)),g' \
|
||||
-e 's,%x,$(call sed_escape,$(VERSION_TIP_VERSION)),g' \
|
||||
+ -e 's,%B,$(call sed_escape,$(VERSION_UCENTRAL_SCHEMA)),g' \
|
||||
-e 's,%h,$(call sed_escape,$(VERSION_HWREV)),g'
|
||||
|
||||
diff --git a/package/base-files/files/etc/openwrt_release b/package/base-files/files/etc/openwrt_release
|
||||
index 3652b1a49a..cbb8f4b820 100644
|
||||
--- a/package/base-files/files/etc/openwrt_release
|
||||
+++ b/package/base-files/files/etc/openwrt_release
|
||||
@@ -7,3 +7,4 @@ DISTRIB_DESCRIPTION='%D %V %C'
|
||||
DISTRIB_TAINTS='%t'
|
||||
DISTRIB_TIP='%D %V %C / TIP-%x-%a'
|
||||
DISTRIB_TIP_VERSION='%x'
|
||||
+DISTRIB_UCENTRAL_SCHEMA_REVISION='%B'
|
||||
diff --git a/scripts/getver.sh b/scripts/getver.sh
|
||||
index 8e8ee46f21..a49dd81393 100755
|
||||
--- a/scripts/getver.sh
|
||||
+++ b/scripts/getver.sh
|
||||
@@ -15,6 +15,11 @@ export LC_ALL=C
|
||||
exit 0
|
||||
}
|
||||
|
||||
+[ "$1" = "ucentral-schema-version" ] && {
|
||||
+ cat ./package/feeds/ucentral/ucentral-schema/Makefile | grep PKG_SOURCE_VERSION | awk -F= '{print substr($2,1,7)}'
|
||||
+ exit 0
|
||||
+}
|
||||
+
|
||||
GET_REV=$1
|
||||
|
||||
try_version() {
|
||||
--
|
||||
2.34.1
|
||||
|
||||
Reference in New Issue
Block a user