summaryrefslogtreecommitdiffstats
path: root/src/VBox/Devices/EFI/Firmware/.scm-settings
blob: e353a6fd48f9cbdf73aaa194a4982e4f7eb727e6 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# $Id: .scm-settings $
## @file
# Source code massager settings for the EFI Firmware.
#

#
# Copyright (C) 2017-2023 Oracle and/or its affiliates.
#
# This file is part of VirtualBox base platform packages, as
# available from https://www.virtualbox.org.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, in version 3 of the
# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses>.
#
# SPDX-License-Identifier: GPL-3.0-only
#


/*:     --external-copyright --dont-set-svn-keywords --no-convert-tabs --no-strip-trailing-blanks \
        --strip-no-trailing-lines --no-force-final-eol --no-fix-todos --no-fix-header-guards

/.scm-settings: --no-external-copyright --set-svn-keywords --convert-tabs --strip-trailing-blanks --strip-trailing-lines \
        --force-final-eol --fix-todos --license-ose-gpl

/*.kmk: --no-external-copyright --set-svn-keywords --convert-tabs --strip-trailing-blanks --strip-trailing-lines \
        --force-final-eol --fix-todos --license-ose-dual

/MdeModulePkg/Universal/Disk/PartitionDxe/Apple.c: \
        --no-external-copyright --set-svn-keywords --convert-tabs --strip-trailing-blanks --strip-trailing-lines \
        --force-final-eol --fix-todos --license-ose-dual

/VBox*: --no-external-copyright --set-svn-keywords --convert-tabs --strip-trailing-blanks --strip-trailing-lines \
        --force-final-eol --fix-todos --license-ose-dual


# Build related files using '#' for comments.
/*.dec:        --treat-as Makefile
/*.dsc:        --treat-as Makefile
/*.fdf:        --treat-as Makefile
/*.inf:        --treat-as Makefile
/BaseTools/Conf/build_rule.template:   --treat-as Makefile
/BaseTools/Conf/target.template:       --treat-as Makefile
/BaseTools/Conf/tools_def.template:    --treat-as Makefile

# IASL sources.
/*.asl:        --treat-as *.h
/*.aslc:       --treat-as *.h

# NASM source.
/*.nasm:       --treat-as .asm
/*.nasmb:      --treat-as .asm
/*.asm16:      --treat-as .asm

# cpp processed assembly files.
/*.s:          --treat-as .h
/*.i:          --treat-as .h

# GAS assembly files w/o preprocessing.
/*.S:          --treat-as Makefile

# Python sources.
/*.pyw:        --treat-as python

# Not quite sure what this is, uses C++ comment style.
/*.vfr:        --treat-as .h
/*.Vfr:        --treat-as .h

# Linker scripts.
/*-ld-script:  --treat-as .h
/*.lds:        --treat-as .h

# Grammar files. Treat as C for now.
/*.g:          --treat-as .c

# Not entirely sure what the .dlg files are, but they seems to contain C like license headers.
/*.dlg:        --treat-as .h

# Misc.
*.xsd:                  --treat-as .xml
/*.ini:        --treat-as Makefile
/BaseTools/Conf/FrameworkDatabase.template:    --treat-as .xml
/BaseTools/Source/C/VfrCompile/Pccts/*.r:      --treat-as .h
/BaseTools/BuildEnv:                           --treat-as .sh

# Files that aren't UTF-8.
/BaseTools/Source/C/VfrCompile/Pccts/antlr/antlr.r:      --skip-unicode-checks
/BaseTools/Source/C/VfrCompile/Pccts/antlr/AntlrPPC.mak: --skip-unicode-checks
/BaseTools/Source/C/VfrCompile/Pccts/dlg/DlgPPC.mak:     --skip-unicode-checks

# Some normal makefiles (external code, convenience, ...)
/*.mak:        --treat-as Makefile
/*/makefile1:  --treat-as Makefile
/*/makefile.cygwin:                            --treat-as Makefile
/*/makefile.old:                               --treat-as Makefile
/BaseTools/Source/C/Makefiles/*.makefile:      --treat-as Makefile
/BaseTools/Source/C/Makefiles/ms.*:            --treat-as Makefile

# Ignore most text files, usually no license stuff there. See Readme.txt below.
--filter-out-files *.rtf
--filter-out-files *.1
--filter-out-files /*/README
--filter-out-files /BaseTools/Source/C/VfrCompile/Pccts/MPW_Read_Me
--filter-out-files /BaseTools/Source/C/VfrCompile/Pccts/NOTES.bcc
--filter-out-files /BaseTools/Source/C/VfrCompile/Pccts/NOTES.msvc
--filter-out-files /BaseTools/Source/C/VfrCompile/Pccts/RIGHTS
--filter-out-files /ReadMe.vbox

# Ignore binary files.
--filter-out-files *.raw
--filter-out-files *.efi
--filter-out-files *.bin
--filter-out-files *.obj
--filter-out-files *.dll
--filter-out-files *.docx

# The .uni files are UTF-16LE encoded and scm doesn't grok that yet.
--filter-out-files *.uni

# Ignore patches.
--filter-out-files *.patch

# Ignore visual C++ project stuff.
--filter-out-files *.sln
--filter-out-files *.suo
--filter-out-files *.vcproj

# Misc
--filter-out-files */.gitignore
--filter-out-files */.gitmodules
--filter-out-files /.mailmap
--filter-out-files *.cmm
--filter-out-files *.CMM
--filter-out-files *.cer
--filter-out-files *.idf
--filter-out-files *.g4
--filter-out-files *.html
--filter-out-files *.lds
--filter-out-files *.md
--filter-out-files *.pem
--filter-out-files *.ps
--filter-out-files *.sct
--filter-out-files *.svg
--filter-out-files *.rst
--filter-out-files *.yml
--filter-out-files *.yaml
--filter-out-files /BaseTools/Conf/diff.order
--filter-out-files /BaseTools/Conf/gitattributes
--filter-out-files /BaseTools/BinPipWrappers/PosixLike/*
--filter-out-files /BaseTools/Source/Python/Rsa2048Sha256Sign/TestSigningPrivateKey.pem
--filter-out-files /EmbeddedPkg/Library/FdtLib/Makefile.libfdt
--filter-out-files /IntelFsp2Pkg/Tools/Tests/ExpectedOutput.bsf
--filter-out-files /OvmfPkg/AmdSev/Grub/grub.cfg
--filter-out-files /ShellPkg/Application/ShellCTestApp/*.log
--filter-out-dirs  /StdLib/Efi/StdLib/etc/.

# @todo Temporary until openssl is updated and we can cleanup the eol style mess
--filter-out-dirs  /CryptoPkg/Library/OpensslLib/.

# Ignore PAGE_SIZE related stuff here.
/OvmfPkg/Include/IndustryStandard/Xen/io/*.h: --no-page-restrictions


#
# VBoxPkg
#
/VBoxPkg/VBoxFsDxe/test/*: --external-copyright --no-strip-trailing-blanks --no-fix-todos --strip-no-trailing-lines
/VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaFont*.h: --external-copyright
/VBoxPkg/E1kNetDxe/*.*: --external-copyright
/VBoxPkg/VBoxMisc/efi-app/Readme.txt: --treat-as .scm-settings

#/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/Edid.c: --no-convert-tabs
#/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/*.*: --no-convert-tabs
#/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxVgaDxe/Edid.c: --dont-set-svn-keywords
#/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxFsDxe/*.*: --dont-set-svn-keywords