summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-11 15:01:42 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-11 15:01:42 +0000
commit7def55591de471e6fa2e7921dfdf71c84a308cae (patch)
tree24f0802da2e9e2baa6a4e804b9ba7cd33e13cc7c
parentc0c804da6ebb4297d4a10fbaf13246956b27768f (diff)
downloadbuildroot-novena-7def55591de471e6fa2e7921dfdf71c84a308cae.tar.gz
buildroot-novena-7def55591de471e6fa2e7921dfdf71c84a308cae.zip
Define date of build as DATE, use in mtd/mtd.mk
-rw-r--r--Makefile1
-rw-r--r--package/mtd/mtd.mk4
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3563e5ae4..d2c4b7183 100644
--- 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 \
diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index 1673523b0..30da86707 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -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