Skip to content

Commit

Permalink
base-files: add SOURCE_DATE_EPOCH as OPENWRT_BUILD_DATE to os-release
Browse files Browse the repository at this point in the history
This commit adds the build date during compilation to the os-release file.
This information can then be used later to output this via the the ubus,

Signed-off-by: Florian Eckert <[email protected]>
Link: openwrt/openwrt#15987
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
feckert authored and hauke committed Oct 20, 2024
1 parent 9131cb4 commit 6e6b82a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/version.mk
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ VERSION_SED_SCRIPT:=$(SED) 's,%U,$(call sed_escape,$(VERSION_REPO)),g' \
-e 's,%u,$(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'
-e 's,%h,$(call sed_escape,$(VERSION_HWREV)),g' \
-e 's,%B,$(call sed_escape,$(SOURCE_DATE_EPOCH)),g'

1 change: 1 addition & 0 deletions package/base-files/files/usr/lib/os-release
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ OPENWRT_DEVICE_MANUFACTURER_URL="%m"
OPENWRT_DEVICE_PRODUCT="%P"
OPENWRT_DEVICE_REVISION="%h"
OPENWRT_RELEASE="%D %V %C"
OPENWRT_BUILD_DATE="%B"

0 comments on commit 6e6b82a

Please sign in to comment.