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>
This commit is contained in:
Werner Zeh 2020-04-21 10:52:48 +02:00 committed by Patrick Georgi
parent e7f176cd61
commit abaa1de93b
1 changed files with 14 additions and 14 deletions

View File

@ -41,23 +41,23 @@ unsigned int microcode[] = {
EOF EOF
include_file() { include_file() {
if [ "${1: -4}" == ".inc" ]; then if [ "${1: -4}" == ".inc" ]; then
awk '{gsub( /h.*$/, "", $2 ); print "0x" $2 ","; }' "$1" \ awk '{gsub( /h.*$/, "", $2 ); print "0x" $2 ","; }' "$1" \
>> "${TMPFILE}.c" >> "${TMPFILE}.c"
else else
echo "#include \"$1\"" >> "${TMPFILE}.c" echo "#include \"$1\"" >> "${TMPFILE}.c"
fi fi
} }
for UCODE in "${@:2}"; do for UCODE in "${@:2}"; do
if [ -d "$UCODE" ]; then if [ -d "$UCODE" ]; then
for f in "$UCODE/"*.inc for f in "$UCODE/"*.inc
do do
include_file "$f" include_file "$f"
done done
else else
include_file "$UCODE" include_file "$UCODE"
fi fi
done done
cat >> "${TMPFILE}.c" << EOF cat >> "${TMPFILE}.c" << EOF