Skip to content

Commit 9927b47

Browse files
author
HirokiIshiguro
committed
2 parents f159894 + ac2c383 commit 9927b47

File tree

510 files changed

+8749
-14809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

510 files changed

+8749
-14809
lines changed

.github/CONTRIBUTING.md

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
# Contribution guidelines
2-
3-
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, code, or
4-
documentation, we welcome our community to be involved in this project.
5-
6-
Please read through this document before submitting any issues or pull requests to ensure we are able to help you and all members of the community as effectively as possible.
7-
8-
## Code of conduct
9-
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
10-
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
11-
[email protected] with any additional questions or comments.
12-
13-
14-
## Security issue notifications
15-
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
16-
17-
18-
## Submitting a bugs/feature request
19-
Have a bug to report or feature to request? Follow these steps:
20-
1. Search on the [FreeRTOS Community Support Forums](https://forums.freertos.org/) and [GitHub issue tracker](https://github.com/FreeRTOS/FreeRTOS/issues?utf8=%E2%9C%93&q=is%3Aissue) to be sure this hasn't been already reported or discussed.
21-
2. If your search turns up empty, create a new topic in the [forums](https://forums.freertos.org/) and work with the community to help clarify issues or refine the idea. Include as many of the details listed below.
22-
3. Once the community has had time to discuss and digest, we welcome you to create an [issue](https://github.com/FreeRTOS/FreeRTOS/issues) to report bugs or suggest features.
23-
24-
When creating a new topic on the forums or filing an issue, please include as many relevant details as possible. Examples include:
25-
26-
* A clear description of the situation — what you observe, what you expect, and your view on how the two differ.
27-
* A reproducible test case or sequence of steps.
28-
* The version of our code being used.
29-
* Any modifications you've made relevant to the bug.
30-
* Details of your environment or deployment. Highlight anything unusual.
31-
32-
33-
## Contributing via pull request
34-
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
35-
36-
1. You are working against the latest source on the *master* branch.
37-
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
38-
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
39-
40-
To send us a pull request, please:
41-
42-
1. Fork the repository.
43-
2. Modify the source; focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
44-
3. Follow the [coding style guide](https://www.FreeRTOS.org/FreeRTOS-Coding-Standard-and-Style-Guide.html).
45-
4. Commit to your fork using clear commit messages.
46-
5. Send us a pull request, answering any default questions in the pull request interface.
47-
NOTE: Please make sure the default option (Allow edits from maintainers) is left checked.
48-
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
49-
50-
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
51-
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
52-
53-
## Coding style
54-
* Please ensure that your code complies to the [FreeRTOS coding style guidelines](https://www.FreeRTOS.org/FreeRTOS-Coding-Standard-and-Style-Guide.html).
55-
56-
57-
## Getting your pull request merged
58-
All pull requests must be approved by our review team before it can be merged in. We appreciate your patience while pull requests are reviewed. The time it takes to review will depend on complexity and consideration of wider implications.
59-
60-
61-
## Finding contributions to work on
62-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), tackling open 'help wanted' issues is a great place to start.
63-
64-
65-
## Licensing
66-
The FreeRTOS kernel is released under the MIT open source license, the text of which can be found [here](https://github.com/FreeRTOS/FreeRTOS/blob/master/FreeRTOS/License/license.txt)
67-
68-
Additional license files can be found in the folders containing any supplementary libraries licensed by their respective copyright owners where applicable.
69-
70-
We may ask you to sign a [Contributor License Agreement (CLA)](https://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
1+
# Contribution guidelines
2+
3+
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, code, or
4+
documentation, we welcome our community to be involved in this project.
5+
6+
Please read through this document before submitting any issues or pull requests to ensure we are able to help you and all members of the community as effectively as possible.
7+
8+
## Code of conduct
9+
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
10+
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
11+
[email protected] with any additional questions or comments.
12+
13+
14+
## Security issue notifications
15+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
16+
17+
18+
## Submitting a bugs/feature request
19+
Have a bug to report or feature to request? Follow these steps:
20+
1. Search on the [FreeRTOS Community Support Forums](https://forums.freertos.org/) and [GitHub issue tracker](https://github.com/FreeRTOS/FreeRTOS/issues?utf8=%E2%9C%93&q=is%3Aissue) to be sure this hasn't been already reported or discussed.
21+
2. If your search turns up empty, create a new topic in the [forums](https://forums.freertos.org/) and work with the community to help clarify issues or refine the idea. Include as many of the details listed below.
22+
3. Once the community has had time to discuss and digest, we welcome you to create an [issue](https://github.com/FreeRTOS/FreeRTOS/issues) to report bugs or suggest features.
23+
24+
When creating a new topic on the forums or filing an issue, please include as many relevant details as possible. Examples include:
25+
26+
* A clear description of the situation — what you observe, what you expect, and your view on how the two differ.
27+
* A reproducible test case or sequence of steps.
28+
* The version of our code being used.
29+
* Any modifications you've made relevant to the bug.
30+
* Details of your environment or deployment. Highlight anything unusual.
31+
32+
33+
## Contributing via pull request
34+
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
35+
36+
1. You are working against the latest source on the *main* branch.
37+
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
38+
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.
39+
40+
To send us a pull request, please:
41+
42+
1. Fork the repository.
43+
2. Modify the source; focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
44+
3. Follow the [coding style guide](https://www.FreeRTOS.org/FreeRTOS-Coding-Standard-and-Style-Guide.html).
45+
4. Commit to your fork using clear commit messages.
46+
5. Send us a pull request, answering any default questions in the pull request interface.
47+
NOTE: Please make sure the default option (Allow edits from maintainers) is left checked.
48+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
49+
50+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
51+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
52+
53+
## Coding style
54+
* Please ensure that your code complies to the [FreeRTOS coding style guidelines](https://www.FreeRTOS.org/FreeRTOS-Coding-Standard-and-Style-Guide.html).
55+
56+
57+
## Getting your pull request merged
58+
All pull requests must be approved by our review team before it can be merged in. We appreciate your patience while pull requests are reviewed. The time it takes to review will depend on complexity and consideration of wider implications.
59+
60+
61+
## Finding contributions to work on
62+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), tackling open 'help wanted' issues is a great place to start.
63+
64+
65+
## Licensing
66+
The FreeRTOS kernel is released under the MIT open source license, the text of which can be found [here](https://github.com/FreeRTOS/FreeRTOS/blob/main/FreeRTOS/License/license.txt)
67+
68+
Additional license files can be found in the folders containing any supplementary libraries licensed by their respective copyright owners where applicable.
69+
70+
We may ask you to sign a [Contributor License Agreement (CLA)](https://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature for this project
4+
title: "[Feature Request] <replace with your title>"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/actions/url_verifier.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ then
88
exit 2
99
fi
1010

11+
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36"
1112
SCRIPT_RET=0
1213

1314
set -o nounset # Treat unset variables as an error
@@ -27,7 +28,7 @@ function test {
2728

2829
for UNIQ_URL in ${!dict[@]} # loop urls
2930
do
30-
CURL_RES=$(curl -I ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
31+
CURL_RES=$(curl -si --user-agent "$(USER_AGENT)" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
3132
RES=$?
3233

3334
if [ "${CURL_RES}" == '' -o "${CURL_RES}" != '200' ]
@@ -38,11 +39,14 @@ function test {
3839
then
3940
CURL_RES=$RES
4041
SCRIPT_RET=1
42+
echo ERROR: Result is: "${CURL_RES}"
4143
elif [ "${CURL_RES}" == '403' ]
4244
then
4345
SCRIPT_RET=1
46+
echo ERROR: Result is: "${CURL_RES}"
47+
else
48+
echo WARNING: Result is: "${CURL_RES}"
4449
fi
45-
echo Result is: "${CURL_RES}"
4650
echo "================================="
4751
fi
4852
done

.github/lexicon.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,7 @@ prvinitialisenewstreambuffer
15291529
prvinitialisenewtimer
15301530
prvinsertblockintofreelist
15311531
prvlockqueue
1532+
prvnotifyqueuesetcontainer
15321533
prvportmalloc
15331534
prvportresetpic
15341535
prvprocesssimulatedinterrupts
@@ -1617,6 +1618,7 @@ pvowner
16171618
pvparameter
16181619
pvparameters
16191620
pvportmalloc
1621+
pvportmallocstack
16201622
pvportrealloc
16211623
pvreg
16221624
pvrxdata
@@ -1686,6 +1688,7 @@ pxprevious
16861688
pxpreviouswaketime
16871689
pxqueue
16881690
pxqueuebuffer
1691+
pxqueuesetcontainer
16891692
pxramstack
16901693
pxreadycoroutinelists
16911694
pxreadytaskslists
@@ -1705,6 +1708,7 @@ pxstreambuffercreatestatic
17051708
pxtagvalue
17061709
pxtask
17071710
pxtaskbuffer
1711+
pxtaskcode
17081712
pxtaskdefinition
17091713
pxtaskstatus
17101714
pxtaskstatusarray
@@ -3017,6 +3021,7 @@ xtaskswaitingforbits
30173021
xtaskswaitingtermination
30183022
xtaskswaitingtoreceive
30193023
xtaskswaitingtosend
3024+
xtasktodelete
30203025
xtasktonotify
30213026
xtasktoquery
30223027
xtasktoresume

.github/scripts/kernel_checker.py

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
#!/usr/bin/env python3
2+
3+
import os
4+
from common.header_checker import HeaderChecker
5+
6+
#--------------------------------------------------------------------------------------------------
7+
# CONFIG
8+
#--------------------------------------------------------------------------------------------------
9+
KERNEL_IGNORED_FILES = [
10+
'FreeRTOS-openocd.c'
11+
]
12+
13+
KERNEL_IGNORED_EXTENSIONS = [
14+
'.yml',
15+
'.css',
16+
'.idx',
17+
'.md',
18+
'.url',
19+
'.sty',
20+
'.0-rc2',
21+
'.s82',
22+
'.js',
23+
'.out',
24+
'.pack',
25+
'.2',
26+
'.1-kernel-only',
27+
'.0-kernel-only',
28+
'.0-rc1',
29+
'.readme',
30+
'.tex',
31+
'.png',
32+
'.bat',
33+
'.sh',
34+
'.txt'
35+
]
36+
37+
KERNEL_IGNORED_PATTERNS = [
38+
r'.*\.git.*',
39+
r'.*portable/ThirdParty/GCC/Posix/port*',
40+
r'.*portable.*Xtensa_ESP32\/include\/portmacro\.h',
41+
r'.*portable.*Xtensa_ESP32.*port\.c',
42+
r'.*portable.*Xtensa_ESP32.*portasm\.S',
43+
r'.*portable.*Xtensa_ESP32.*xtensa_.*',
44+
r'.*portable.*Xtensa_ESP32.*portmux_impl.*',
45+
r'.*portable.*Xtensa_ESP32.*xt_asm_utils\.h'
46+
]
47+
48+
KERNEL_HEADER = [
49+
'/*\n',
50+
' * FreeRTOS Kernel V10.4.3\n',
51+
' * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n',
52+
' *\n',
53+
' * Permission is hereby granted, free of charge, to any person obtaining a copy of\n',
54+
' * this software and associated documentation files (the "Software"), to deal in\n',
55+
' * the Software without restriction, including without limitation the rights to\n',
56+
' * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n',
57+
' * the Software, and to permit persons to whom the Software is furnished to do so,\n',
58+
' * subject to the following conditions:\n',
59+
' *\n',
60+
' * The above copyright notice and this permission notice shall be included in all\n',
61+
' * copies or substantial portions of the Software.\n',
62+
' *\n',
63+
' * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n',
64+
' * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n',
65+
' * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n',
66+
' * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n',
67+
' * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n',
68+
' * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n',
69+
' *\n',
70+
' * https://www.FreeRTOS.org\n',
71+
' * https://github.com/FreeRTOS\n',
72+
' *\n',
73+
' */\n',
74+
]
75+
76+
77+
def main():
78+
parser = HeaderChecker.configArgParser()
79+
args = parser.parse_args()
80+
81+
# Configure the checks then run
82+
checker = HeaderChecker(KERNEL_HEADER)
83+
checker.ignoreExtension(*KERNEL_IGNORED_EXTENSIONS)
84+
checker.ignorePattern(*KERNEL_IGNORED_PATTERNS)
85+
checker.ignoreFile(*KERNEL_IGNORED_FILES)
86+
checker.ignoreFile(os.path.split(__file__)[-1])
87+
88+
rc = checker.processArgs(args)
89+
if rc:
90+
checker.showHelp(__file__)
91+
92+
return rc
93+
94+
if __name__ == '__main__':
95+
exit(main())
96+

.github/workflows/auto-release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Kernel-Auto-Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
commit_id:
7+
description: 'Commit ID'
8+
required: true
9+
default: 'HEAD'
10+
version_number:
11+
description: 'Version Number (Ex. 10.4.0)'
12+
required: true
13+
default: '10.4.0'
14+
15+
jobs:
16+
release-packager:
17+
name: Release Packager
18+
runs-on: ubuntu-latest
19+
steps:
20+
# Install python 3
21+
- name: Tool Setup
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.7.10
25+
architecture: x64
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
# Currently FreeRTOS/.github/scripts houses the release script. Download it for upcoming usage
30+
- name: Checkout FreeRTOS Release Tools
31+
uses: actions/checkout@v2
32+
with:
33+
repository: FreeRTOS/FreeRTOS
34+
path: tools
35+
36+
# Simpler git auth if we use checkout action and forward the repo to release script
37+
- name: Checkout FreeRTOS Kernel
38+
uses: actions/checkout@v2
39+
with:
40+
path: local_kernel
41+
fetch-depth: 0
42+
43+
- name: Release
44+
run: |
45+
# Configure repo for push
46+
git config --global user.name ${{ github.actor }}
47+
git config --global user.email ${{ github.actor }}@users.noreply.github.com
48+
49+
# Install deps and run
50+
pip install -r ./tools/.github/scripts/release-requirements.txt
51+
./tools/.github/scripts/release.py FreeRTOS --kernel-repo-path=local_kernel --kernel-commit=${{ github.event.inputs.commit_id }} --new-kernel-version=${{ github.event.inputs.version_number }}
52+
exit $?
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)