summaryrefslogtreecommitdiffstats
path: root/src/drivers/intel/fsp2_0/header_util/fspupdvpd_sanitize.sh
blob: c9f67ec605504d082800df6b4b8dab8094e65fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-License-Identifier: GPL-2.0-or-later

#
# Convert the FspUpdVpd.h header file into a format usable by coreboot
# Usage:
#     fspupdvpd_sanitize.sh <path/to/FspUpdVpd.h>
#

PWD=$(dirname "${BASH_SOURCE[0]}")

SPATCH=spatch

# Fix line terminations
dos2unix $1

# Clean up trailing whitespace
sed -e "s, $,,g" -i $1

# Now fix the actual coding style
$SPATCH -sp_file ${PWD}/fspupdvpd.spatch \
	-in_place $1