build: add version number to filenames

This commit introduces a new option CONFIG_VERSION_FILENAMES which causes
OpenWrt to embed the version number in generated image files, SDK- and
ImageBuilder archives.

The option is enabled by default if CONFIG_VERSIONOPT is set.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43869 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Jo-Philipp Wich
2015-01-08 11:02:00 +00:00
parent 49305aa537
commit a8bb90bd2f
4 changed files with 13 additions and 3 deletions

View File

@@ -206,6 +206,14 @@ if VERSIONOPT
help
This is the hardware revision string embedded in /etc/device_info
Useful for OEMs building OpenWrt based firmware
config VERSION_FILENAMES
bool
prompt "Version number in filenames"
default y
help
Enable this to include the version number in firmware image, SDK-
and Image Builder archive file names
endif