Generate date using RGBDS built-in

This adds a "Z" at the end of the build date, but this should be fine
This commit is contained in:
ISSOtm
2019-01-26 14:32:10 +01:00
parent 4750306a1f
commit 19964de8aa
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -3,5 +3,5 @@ SECTION "Build date", ROM0
db "Built "
BuildDate::
INCBIN "res/build.date"
db __ISO_8601_UTC__
db 0