Define date of build as DATE, use in mtd/mtd.mk
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Wed, 11 Jul 2007 15:01:42 +0000 (15:01 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Wed, 11 Jul 2007 15:01:42 +0000 (15:01 -0000)
Makefile
package/mtd/mtd.mk

index 3563e5ae4fe53aa9389736c7c3f9994ed0d5de3f..d2c4b71835a44fb297b63289eef5209086198e6f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ TOPDIR=./
 CONFIG_CONFIG_IN = Config.in
 CONFIG_DEFCONFIG = .defconfig
 CONFIG = package/config
+DATE:=$(shell date -u +%Y%m%d)
 
 noconfig_targets := menuconfig config oldconfig randconfig \
        defconfig allyesconfig allnoconfig release tags    \
index 1673523b00c5b4e9484958432fc24766ad3ac6d8..30da86707858f5ec5671d50a42b1792258f3f59d 100644 (file)
@@ -5,8 +5,8 @@
 #############################################################
 ifeq ($(strip $(BR2_PACKAGE_MTD_SNAPSHOT)),y)
 # Be aware that this changes daily....
-TODAY:=$(shell date -u +%Y%m%d)
-MTD_DL_SOURCE:=mtd-snapshot-$(TODAY).tar.bz2
+
+MTD_DL_SOURCE:=mtd-snapshot-$(DATE).tar.bz2
 MTD_CAT:=$(BZCAT)
 MTD_SOURCE:=mtd-snapshot.tar.bz2
 MTD_SITE:=ftp://ftp.uk.linux.org/pub/people/dwmw2/mtd/cvs