aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/Makefile
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-07 11:55:41 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-07 11:55:41 -0800
commit33bf122c1bc1ee98a98a5459847bf3f6acc1e33d (patch)
tree0294136eb3de339967fe291b1b593c1962555c41 /com32/sysdump/Makefile
parent7def7a90e13cfb9a25fdb89029c977653a47e04f (diff)
downloadsyslinux-33bf122c1bc1ee98a98a5459847bf3f6acc1e33d.tar.gz
syslinux-33bf122c1bc1ee98a98a5459847bf3f6acc1e33d.tar.xz
syslinux-33bf122c1bc1ee98a98a5459847bf3f6acc1e33d.zip
sysdump: record the sysdump version used to generate a bundle
Record the sysdump version used to actually generate a data set. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/sysdump/Makefile')
-rw-r--r--com32/sysdump/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/com32/sysdump/Makefile b/com32/sysdump/Makefile
index a64414ad..4ac235a8 100644
--- a/com32/sysdump/Makefile
+++ b/com32/sysdump/Makefile
@@ -26,6 +26,15 @@ TESTFILES =
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
+# The DATE is set on the make command line when building binaries for
+# official release. Otherwise, substitute a hex string that is pretty much
+# guaranteed to be unique to be unique from build to build.
+ifndef DATE
+DATE := $(shell sh ../gen-id.sh $(VERSION) $(HEXDATE))
+endif
+
+CFLAGS += -DDATE='"$(DATE)"'
+
all: $(MODULES) $(TESTFILES)
sysdump.elf : $(OBJS) $(LIBS) $(C_LIBS)