diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2020-04-21 10:52:48 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-04-22 17:30:40 +0000 |
commit | abaa1de93b36a431e5545f252cddc0e1c2cd3102 (patch) | |
tree | 672e6f6594e1eb1dba6dec4ad5ebe7b39ba474a4 | |
parent | e7f176cd61a7ccb78ab9c015bb79b83ae6aaf071 (diff) |
util/scripts/ucode_h_to_bin.sh: Replace whitespace with TABs
Newly added code in commit CB:25546 contains spaces instead of TABs for
line indent. Replace every 4 spaces by a single TAB to match our coding
guides.
Change-Id: Ie3633bb42643f4abb5f1a8827a7dc2c9e023d6aa
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40564
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rwxr-xr-x | util/scripts/ucode_h_to_bin.sh | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/scripts/ucode_h_to_bin.sh b/util/scripts/ucode_h_to_bin.sh index 436c0fd151..e6f4699c8f 100755 --- a/util/scripts/ucode_h_to_bin.sh +++ b/util/scripts/ucode_h_to_bin.sh @@ -41,23 +41,23 @@ unsigned int microcode[] = { EOF include_file() { - if [ "${1: -4}" == ".inc" ]; then - awk '{gsub( /h.*$/, "", $2 ); print "0x" $2 ","; }' "$1" \ - >> "${TMPFILE}.c" - else - echo "#include \"$1\"" >> "${TMPFILE}.c" - fi + if [ "${1: -4}" == ".inc" ]; then + awk '{gsub( /h.*$/, "", $2 ); print "0x" $2 ","; }' "$1" \ + >> "${TMPFILE}.c" + else + echo "#include \"$1\"" >> "${TMPFILE}.c" + fi } for UCODE in "${@:2}"; do - if [ -d "$UCODE" ]; then - for f in "$UCODE/"*.inc - do - include_file "$f" - done - else - include_file "$UCODE" - fi + if [ -d "$UCODE" ]; then + for f in "$UCODE/"*.inc + do + include_file "$f" + done + else + include_file "$UCODE" + fi done cat >> "${TMPFILE}.c" << EOF |