From 61c02ed079ab7a39a802258ccfa4e48f978f55fa Mon Sep 17 00:00:00 2001 From: mariogamer2 Date: Fri, 13 May 2016 15:16:10 -0400 Subject: [PATCH] Print git commit in menu settings,taked from: https://github.com/roxas75/rxTools/commit/81566b7b27961fc4e9a94d6df10e23b3c75a01c5 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 65f6aea..b477dff 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ LD := arm-none-eabi-ld OC := arm-none-eabi-objcopy name := Luma3DS -version := $(shell git describe --abbrev=0 --tags) +revision := $(shell git describe --tags --match v[0-9]*) dir_source := source dir_patches := patches @@ -102,7 +102,7 @@ $(dir_build)/screeninit.h: $(dir_screeninit)/Makefile @bin2c -o $@ -n screeninit $(@D)/screeninit.bin $(dir_build)/memory.o: CFLAGS += -O3 -$(dir_build)/config.o: CFLAGS += -DCONFIG_TITLE="\"$(name) $(version) configuration\"" +$(dir_build)/config.o: CFLAGS += -DCONFIG_TITLE="\"$(name) $(revision) configuration\"" $(dir_build)/%.o: $(dir_source)/%.c $(bundled) @mkdir -p "$(@D)"