Merge pull request #702 from antmicro/fix-disable-build-timestamp

litex: soc: do not add the timestamp in the BIOS if it was disabled
This commit is contained in:
enjoy-digital 2020-11-18 22:01:25 +01:00 committed by GitHub
commit 1ac34bf5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -1061,6 +1061,7 @@ class LiteXSoC(SoC):
self.check_if_exists(name) self.check_if_exists(name)
if with_build_time: if with_build_time:
identifier += " " + build_time() identifier += " " + build_time()
self.add_config("HAS_TIMESTAMP")
setattr(self.submodules, name, Identifier(identifier)) setattr(self.submodules, name, Identifier(identifier))
self.csr.add(name + "_mem", use_loc_if_exists=True) self.csr.add(name + "_mem", use_loc_if_exists=True)

View File

@ -97,7 +97,9 @@ int main(int i, char **c)
printf(" (c) Copyright 2012-2020 Enjoy-Digital\n"); printf(" (c) Copyright 2012-2020 Enjoy-Digital\n");
printf(" (c) Copyright 2007-2015 M-Labs\n"); printf(" (c) Copyright 2007-2015 M-Labs\n");
printf("\n"); printf("\n");
#ifdef CONFIG_HAS_TIMESTAMP
printf(" BIOS built on "__DATE__" "__TIME__"\n"); printf(" BIOS built on "__DATE__" "__TIME__"\n");
#endif
crcbios(); crcbios();
printf("\n"); printf("\n");
printf(" Migen git sha1: "MIGEN_GIT_SHA1"\n"); printf(" Migen git sha1: "MIGEN_GIT_SHA1"\n");