forked from SunnyKi/bareBoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbbcheck.sh
43 lines (38 loc) · 977 Bytes
/
bbcheck.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# -D HOST_EFI \
# -D VBOX \
# -D FSTYPE=hfs \
# -D FSW_DEBUG_LEVEL=3 \
# \
# -i $BBHOME/Library/PListLib/main.c \
# -i $BBHOME/Library/PListLib/plist_helpers_os.c \
# -i $BBHOME/VBoxFsDxe/msvc/ \
# -i $BBHOME/VBoxFsDxe/posix/ \
EDK2HOME=$BBHOME/../edk2; export EDK2HOME
EDK2CFG=$BBHOME/cppcheck/edk2.cfg; export EDK2CFG
CPU=X64; export CPU
exec $BBHOME/cppcheck/cppcheck.sh \
--library=$BBHOME/cppcheck/bareBoot.cfg \
--enable=information \
--inconclusive \
\
-D MDE_CPU_$CPU \
\
-I $BBHOME/DxeIpl \
-I $BBHOME/EfiLdr \
-I $BBHOME/Include \
-I $BBHOME/BdsDxe \
-I $BBHOME/BdsDxe/Graphics \
-I $BBHOME/BdsDxe/GenericBds \
-I $BBHOME/Library/PListLib \
-I $BBHOME/Library/PListLib/b64 \
-I $BBHOME/VBoxFsDxe \
\
-I $EDK2HOME/MdePkg/Include \
-I $EDK2HOME/MdePkg/Include/$CPU \
-I $EDK2HOME/MdeModulePkg/Include \
-I $EDK2HOME/IntelFrameworkPkg/Include \
-I $EDK2HOME/IntelFrameworkModulePkg/Include \
-I $EDK2HOME/UefiCpuPkg/Include \
\
$*