mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
8259d3ca1e
- Add TRACE function tracing output under etc/functions, depending on CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT enabled in board configs - Replace current DEBUG to TRACE calls in code, reserving DEBUG calls for more verbose debugging later on (output of variables etc) - add 'export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y' in qemu-coreboot(fb)whiptail-tpm1(-hotp) boards to see it in action
13 lines
235 B
Bash
Executable File
13 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
set -e -o pipefail
|
|
. /etc/functions
|
|
. /tmp/config
|
|
|
|
TRACE "Under /bin/cbfs.sh"
|
|
|
|
if pnor "$2" -r HBI > /tmp/pnor.part 2>/dev/null; then
|
|
cbfs "$@" -o /tmp/pnor.part && pnor "$2" -w HBI < /tmp/pnor.part
|
|
else
|
|
cbfs "$@"
|
|
fi
|