From 19964de8aa1eb78502252f5411586fe125907453 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 26 Jan 2019 14:32:10 +0100 Subject: [PATCH] Generate date using RGBDS built-in This adds a "Z" at the end of the build date, but this should be fine --- Makefile | 1 - src/res/build_date.asm | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b7da052..cb211e9 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,6 @@ $(ROMFILE): $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(ASMFILES)) @mkdir -p $(BINDIR) @# Generate build date - date +"%FT%H:%M:%S" > $(SRCDIR)/res/build.date $(RGBASM) $(ASFLAGS) -o $(OBJDIR)/build_date.o $(SRCDIR)/res/build_date.asm $(RGBLINK) $(LDFLAGS) -o $(BINDIR)/tmp.gb -m $(@:.$(ROMExt)=.map) -n $(@:.$(ROMExt)=.sym) $^ $(OBJDIR)/build_date.o diff --git a/src/res/build_date.asm b/src/res/build_date.asm index 452edab..aa3c78e 100644 --- a/src/res/build_date.asm +++ b/src/res/build_date.asm @@ -3,5 +3,5 @@ SECTION "Build date", ROM0 db "Built " BuildDate:: -INCBIN "res/build.date" + db __ISO_8601_UTC__ db 0