aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2013-10-20 10:45:53 -0400
committerGene Cumm <gene.cumm@gmail.com>2013-10-31 21:03:05 -0400
commitbe90b8cc0c2267f42b863fdae2e35fdf76d1206a (patch)
treead00c8f437b58fdbded567f338aa91aeb9fe8674
parent4c3c85630e83ed4522444c707abea6bc3db8a40b (diff)
downloadsyslinux-be90b8cc0c2267f42b863fdae2e35fdf76d1206a.tar.gz
syslinux-be90b8cc0c2267f42b863fdae2e35fdf76d1206a.tar.xz
syslinux-be90b8cc0c2267f42b863fdae2e35fdf76d1206a.zip
efi/: Fix displayed version; add DATE
Version string appeared to be a temporary generic string; complete out in the standard fashion Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--efi/Makefile11
-rw-r--r--efi/main.c5
2 files changed, 14 insertions, 2 deletions
diff --git a/efi/Makefile b/efi/Makefile
index a818abe0..4bf5a229 100644
--- a/efi/Makefile
+++ b/efi/Makefile
@@ -48,6 +48,17 @@ OBJS = $(subst $(SRC)/,,$(filter-out %wrapper.o, $(patsubst %.c,%.o,$(CSRC))))
OBJS += $(objdir)/core/codepage.o $(ARCH)/linux.o
+# 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 HEXDATE
+HEXDATE := $(shell $(PERL) $(SRC)/../now.pl $(SRCS))
+endif
+ifndef DATE
+DATE := $(shell sh $(SRC)/../gen-id.sh $(VERSION) $(HEXDATE))
+endif
+CFLAGS += -DDATE_STR='"$(DATE)"'
+
.PHONY: subdirs
subdirs:
mkdir -p $(ARCH)
diff --git a/efi/main.c b/efi/main.c
index 2eeeba32..d37a57b5 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -10,11 +10,12 @@
#include "efi.h"
#include "fio.h"
+#include "version.h"
__export uint16_t PXERetry;
-__export char copyright_str[] = "Copyright (C) 2011\n";
+__export char copyright_str[] = "Copyright (C) 2011-" YEAR_STR "\n";
uint8_t SerialNotice = 1;
-__export char syslinux_banner[] = "Syslinux 5.x (EFI)\n";
+__export char syslinux_banner[] = "Syslinux " VERSION_STR " (EFI; " DATE_STR ")\n";
char CurrentDirName[CURRENTDIR_MAX];
struct com32_sys_args __com32;