Makefile: Add build time and compiler info string
authorWei Fu <wefu@redhat.com>
Thu, 30 Sep 2021 10:11:20 +0000 (18:11 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 20 Oct 2021 09:40:52 +0000 (15:10 +0530)
commit422eda499cd6b69c0ca9f4cb06b3aceef17a3b27
tree129d2f1b1d2d6ca462cfce58c2a1b8e5b33d60b4
parent67cbbcb100d321ec61f6424392562834083e9c98
Makefile: Add build time and compiler info string

When we are doing opensbi development, we want to know the build time
and compiler info for debug purpose.

To enable this message, please add "BUILD_INFO=y", like:

```
make BUILD_INFO=y
```

NOTE: Using `BUILD_INFO=y` without specifying SOURCE_DATE_EPOCH will
violate "reproducible builds". So it's ONLY for development and debug
purpose, and should NOT be used in a product which follows "reproducible
builds".

Signed-off-by: Wei Fu <wefu@redhat.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Makefile
README.md
lib/sbi/sbi_init.c