main: use date/time/timezone as build string
This commit is contained in:
parent
3484a7b3f6
commit
bb31462909
2 changed files with 3 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -13,6 +13,7 @@ all: $(BUILD)/tbm
|
||||||
-include scripts/Makefile.${TARGET}
|
-include scripts/Makefile.${TARGET}
|
||||||
|
|
||||||
CFLAGS += -DTBM_VERSION=\"2017-10-31\"
|
CFLAGS += -DTBM_VERSION=\"2017-10-31\"
|
||||||
|
CFLAGS += -DBUILD_VERSION=\""$(shell date -u)"\"
|
||||||
CFLAGS += -Iinclude
|
CFLAGS += -Iinclude
|
||||||
CFLAGS += -Wall -Wextra -Wshadow -Wimplicit-function-declaration
|
CFLAGS += -Wall -Wextra -Wshadow -Wimplicit-function-declaration
|
||||||
CFLAGS += -Wredundant-decls -pedantic
|
CFLAGS += -Wredundant-decls -pedantic
|
||||||
|
|
|
@ -101,8 +101,8 @@ int main(void)
|
||||||
fprintf(admin_con->fp, "error: unable to probe flash chip.\n");
|
fprintf(admin_con->fp, "error: unable to probe flash chip.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(user_con->fp, "TBM-dev (built on " __DATE__ ")\n");
|
fprintf(user_con->fp, "TBM-dev (built on " BUILD_VERSION ")\n");
|
||||||
fprintf(admin_con->fp, "TBM-dev (built on " __DATE__ ")\n");
|
fprintf(admin_con->fp, "TBM-dev (built on " BUILD_VERSION ")\n");
|
||||||
|
|
||||||
shell_init(&user_shell, user_cmds, user_con, "tbm $",
|
shell_init(&user_shell, user_cmds, user_con, "tbm $",
|
||||||
SHELL_SHOW_EXIT_CODE);
|
SHELL_SHOW_EXIT_CODE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue