diff --git a/include/version.mk b/include/version.mk index c3cc170045d..0d956e2a6f3 100644 --- a/include/version.mk +++ b/include/version.mk @@ -67,6 +67,8 @@ VERSION_TAINTS := $(strip $(foreach taint,$(VERSION_TAINT_SPECS), \ PKG_CONFIG_DEPENDS += $(foreach taint,$(VERSION_TAINT_SPECS),$(call taint2sym,$(taint))) +BUILT_DATE := $(shell date +'%b %e %Y') + VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \ -e 's,%V,$(VERSION_NUMBER),g' \ -e 's,%v,\L$(subst $(space),_,$(VERSION_NUMBER)),g' \ @@ -82,6 +84,7 @@ VERSION_SED:=$(SED) 's,%U,$(VERSION_REPO),g' \ -e 's,%t,$(VERSION_TAINTS),g' \ -e 's,%M,$(VERSION_MANUFACTURER),g' \ -e 's,%P,$(VERSION_PRODUCT),g' \ - -e 's,%h,$(VERSION_HWREV),g' + -e 's,%h,$(VERSION_HWREV),g' \ + -e 's,%B,$(BUILT_DATE),g' VERSION_SED_SCRIPT:=$(subst '\'','\'\\\\\'\'',$(VERSION_SED)) diff --git a/package/base-files/files/etc/openwrt_release b/package/base-files/files/etc/openwrt_release index 9b2a40c820b..d8fbe4501db 100644 --- a/package/base-files/files/etc/openwrt_release +++ b/package/base-files/files/etc/openwrt_release @@ -3,5 +3,5 @@ DISTRIB_RELEASE='%C' DISTRIB_REVISION='%R' DISTRIB_CODENAME='%n' DISTRIB_TARGET='%S' -DISTRIB_DESCRIPTION='%D %N %V' +DISTRIB_DESCRIPTION='%D %N %V.Built at %B' DISTRIB_TAINTS='%t'