Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
SangsubLim committed Jan 18, 2024
2 parents b260963 + a040ef6 commit 73d3d81
Show file tree
Hide file tree
Showing 3,145 changed files with 515,905 additions and 152,243 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 13 additions & 0 deletions .checkpatch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--codespell
--no-tree
--quiet
--strict
--max-line-length=80
--ignore=CAMELCASE
--ignore=CONCATENATED_STRING
--ignore=FILE_PATH_CHANGES
--ignore=GERRIT_CHANGE_ID
--ignore=NOT_UNIFIED_DIFF
--ignore=PREFER_KERNEL_TYPES
--ignore=USLEEP_RANGE
--kconfig-prefix=CFG_
150 changes: 150 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# SPDX-License-Identifier: GPL-2.0
#
# clang-format configuration file. Intended for clang-format >= 11.
#
# This is not perfect, but should help in most cases.
# Please note that the maintainers have the last word if there's
# disagrement with this tool.
#
# For more information, see:
# https://clang.llvm.org/docs/ClangFormat.html
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
---
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: false
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Cpp11BracedListStyle: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: false

# Taken from:
# find lib core -name "*.h" -path '*/include/*' -print0 | xargs -0 grep -E -h \
# '^#define[[:blank:]]*[^[:blank:]]*(FOREACH|for_each)[^[:blank:]]' | \
# sed \
# -e "s,^#define[ \t]*\([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
# -e "s,^#define[ \t]*\([^[:space:]]*FOREACH[^[:space:]]*\)(.*$, - '\1'," | \
# LC_ALL=C sort -u
ForEachMacros:
- 'CIRCLEQ_FOREACH'
- 'CIRCLEQ_FOREACH_REVERSE'
- 'LIST_FOREACH'
- 'LIST_FOREACH_SAFE'
- 'SCATTERED_ARRAY_FOREACH'
- 'SIMPLEQ_FOREACH'
- 'SLIST_FOREACH'
- 'SLIST_FOREACH_SAFE'
- 'STAILQ_FOREACH'
- 'STAILQ_FOREACH_SAFE'
- 'TAILQ_FOREACH'
- 'TAILQ_FOREACH_REVERSE'
- 'TAILQ_FOREACH_REVERSE_SAFE'
- 'TAILQ_FOREACH_SAFE'
- 'fdt_for_each_property_offset'
- 'fdt_for_each_subnode'
- 'for_each_dt_driver'
- 'for_each_early_ta'
- 'for_each_fip_sp'
- 'for_each_secure_partition'

IncludeBlocks: Preserve
IncludeCategories:
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentGotoLabels: false
IndentPPDirectives: None
IndentWidth: 8
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 8
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true

# Taken from git's rules
PenaltyBreakAssignment: 10
PenaltyBreakBeforeFirstCallParameter: 30
PenaltyBreakComment: 10
PenaltyBreakFirstLessLess: 0
PenaltyBreakString: 10
PenaltyExcessCharacter: 100
PenaltyReturnTypeOnItsOwnLine: 60

PointerAlignment: Right
ReflowComments: false
SortIncludes: false
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp03
TabWidth: 8
UseTab: Always
...
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# For git archive
.gitignore export-ignore
.gitattributes export-ignore
.travis.yml export-ignore
.github export-ignore
.shippable.yml export-ignore
21 changes: 21 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
General guidance when creating issues:
1. Please try to remember to close the issue when you have
got an answer to your question.
2. It never hurts to state which commit or release tag you are using in case
the question is about build issues.
3. Try to use GitHub markdown formatting to make your issue more readable:
https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax#quoting-code
4. Try to search for the issue before posting the question:
-> Issues tab -> Filters
5. Check the FAQ before posting a question:
https://optee.readthedocs.io/en/latest/faq/faq.html
NOTE: This comment will not be shown in the issue, so no harm keeping it,
but feel free to remove it if you like.
-->
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--
If you are new to submitting pull requests to OP-TEE, then please have a
look at the list below and tick them off before submitting the pull request.
1. Read our contribution guidelines:
https://optee.readthedocs.io/en/latest/general/contribute.html
2. Read the contribution section in Notice.md and pay extra attention to the
"Developer Certificate of Origin" in the contribution guidelines.
3. You should run checkpatch preferably before submitting the pull request.
4. When everything has been reviewed, you will need to squash, rebase and
add tags like `Reviewed-by`, `Acked-by`, `Tested-by` etc. More details
about this can also be found on the link provided above.
NOTE: This comment will not be shown in the pull request, so no harm keeping
it, but feel free to remove it if you like.
-->
22 changes: 22 additions & 0 deletions .github/workflows/ci-cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Cancel previous CI workflows that are still running when a new one is
# requested with the same ID. Happens when a branch is pushed to,
# including when a PR is updated. It would be wasteful to leave CI
# running on obsolete content.
# See https://github.com/marketplace/actions/cancel-workflow-action#advanced-pull-requests-from-forks
name: Cancel obsolete CI
on:
workflow_run:
workflows: [CI]
types: [requested]
branches-ignore: [master]
permissions: {}
jobs:
cancel:
permissions:
actions: write # to cancel/stop running workflows (styfle/cancel-workflow-action)
name: Cancel obsolete CI workflows
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.10.0
with:
workflow_id: ${{ github.event.workflow.id }}
Loading

0 comments on commit 73d3d81

Please sign in to comment.