gbmc-dump-ramoops: Add lastrebootcause file

Add a file to /tmp/ to indicate the last reboot is a crash or software reboot/AC power on
Tested:
File is created and shows correct value.
* On BMC reboot or powercycle:
```
root@host-nfd01:~# cat /tmp/lastrebootcause
0
```
* When crash happened:
```
root@host-nfd01:~# echo c > /proc/sysrq-trigger
root@host-nfd01:~# cat /tmp/lastrebootcause
1
```
Fusion-Link:
fusion2/fe0c6d71-3f74-3c78-9874-2172af1f4967
fusion2/64636aad-518a-39e6-970c-237774b7f2e8
fusion2/71647659-7eaa-34ca-9b67-853973902c4d
fusion2/65998a48-220c-3867-982c-c664450ce716
fusion2/6110bddc-a1b2-3f23-9f0b-d1754d159db1
Google-Bug-Id: 405059545
Change-Id: Ie0d8b90384d15d1bd72645fe3f262cdf655081f2
Signed-off-by: Anh Phan <anhphan@google.com>
1 file changed
tree: 92d1a0d658806732a2fc196c3851b9ca007f55c8
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.