blob: e6641dd565c82ba3144b3c0f65fb5f74bebe91ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# This file is part of the coreboot project.
# 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
|