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 /target/sdk | |
parent | 3e0817d606199bcdd089bb8c3318b3ea109c3f2d (diff) | |
download | upstream-15d8db1f8c467763ed437184a80e9da6c02e69f2.tar.gz upstream-15d8db1f8c467763ed437184a80e9da6c02e69f2.tar.bz2 upstream-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 'target/sdk')
-rw-r--r-- | target/sdk/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile index cdfb2c8c45..9e8749b080 100644 --- a/target/sdk/Makefile +++ b/target/sdk/Makefile @@ -8,13 +8,14 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/host.mk +include $(INCLUDE_DIR)/version.mk override MAKEFLAGS= PKG_OS:=$(word 2,$(subst -, ,$(shell $(HOSTCC) -dumpmachine))) PKG_CPU:=$(word 1,$(subst -, ,$(shell $(HOSTCC) -dumpmachine))) -SDK_NAME:=OpenWrt-SDK-$(BOARD)-for-$(PKG_OS)-$(PKG_CPU)-gcc-$(GCCV)_$(LIBC)-$(LIBCV) +SDK_NAME:=OpenWrt-SDK-$(if $(CONFIG_VERSION_FILENAMES),$(VERSION_NUMBER)-)$(BOARD)-for-$(PKG_OS)-$(PKG_CPU)-gcc-$(GCCV)_$(LIBC)-$(LIBCV) SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME) STAGING_SUBDIR_HOST := staging_dir/host |