diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-08 11:02:00 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-08 11:02:00 +0000 |
commit | 15d8db1f8c467763ed437184a80e9da6c02e69f2 (patch) | |
tree | 680b9db45681b9616ec843d1ce3ac7a5ee75facd /include | |
parent | 3e0817d606199bcdd089bb8c3318b3ea109c3f2d (diff) | |
download | master-31e0f0ae-15d8db1f8c467763ed437184a80e9da6c02e69f2.tar.gz master-31e0f0ae-15d8db1f8c467763ed437184a80e9da6c02e69f2.tar.bz2 master-31e0f0ae-15d8db1f8c467763ed437184a80e9da6c02e69f2.zip |
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>
SVN-Revision: 43869
Diffstat (limited to 'include')
-rw-r--r-- | include/image.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index 7375bf563f..94e4438312 100644 --- a/include/image.mk +++ b/include/image.mk @@ -9,6 +9,7 @@ override TARGET_BUILD= include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/host.mk +include $(INCLUDE_DIR)/version.mk override MAKE:=$(_SINGLE)$(SUBMAKE) override NO_TRACE_MAKE:=$(_SINGLE)$(NO_TRACE_MAKE) @@ -16,7 +17,7 @@ override NO_TRACE_MAKE:=$(_SINGLE)$(NO_TRACE_MAKE) KDIR=$(KERNEL_BUILD_DIR) DTS_DIR:=$(LINUX_DIR)/arch/$(ARCH)/boot/dts/ -IMG_PREFIX:=openwrt-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET)) +IMG_PREFIX:=openwrt-$(if $(CONFIG_VERSION_FILENAMES),$(VERSION_NUMBER)-)$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET)) MKFS_DEVTABLE_OPT := -D $(INCLUDE_DIR)/device_table.txt |