-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·25 lines (22 loc) · 646 Bytes
/
update.sh
File metadata and controls
executable file
·25 lines (22 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ssconvert is provided by gnumeric
# sudo apt-get install gnumeric
echo "Cleaning old files"
rm uefi-pnp-export
rm uefi-pnp.csv
rm pnpid.c
rm test.c
rm testbin
rm examplebin
echo "Downloading PNP ID REGISTRY from uefi.org"
wget http://www.uefi.org/uefi-pnp-export
ssconvert uefi-pnp-export uefi-pnp.csv
echo "Generating C code"
cat uefi-pnp.csv | python3 conv.py > pnpid.c
cat uefi-pnp.csv | python3 test.py > test.c
echo "Compiling test program"
gcc -std=c99 -Wall -Wextra pnpid.c test.c -o testbin
echo "Running test program"
./testbin
echo "Compiling example program"
gcc -std=c99 -Wall -Wextra pnpid.c example.c -o examplebin
echo "Done"