Skip to content

Commit d0446b7

Browse files
committed
Initial commit
Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
0 parents  commit d0446b7

File tree

151 files changed

+13728
-0
lines changed

Some content is hidden

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

151 files changed

+13728
-0
lines changed

.checkpatch.conf

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
--emacs
2+
--summary-file
3+
--show-types
4+
--max-line-length=100
5+
--min-conf-desc-length=1
6+
7+
--ignore BRACES
8+
--ignore PRINTK_WITHOUT_KERN_LEVEL
9+
--ignore SPLIT_STRING
10+
--ignore VOLATILE
11+
--ignore CONFIG_EXPERIMENTAL
12+
--ignore PREFER_KERNEL_TYPES
13+
--ignore PREFER_SECTION
14+
--ignore AVOID_EXTERNS
15+
--ignore NETWORKING_BLOCK_COMMENT_STYLE
16+
--ignore DATE_TIME
17+
--ignore MINMAX
18+
--ignore CONST_STRUCT
19+
--ignore FILE_PATH_CHANGES
20+
--ignore SPDX_LICENSE_TAG
21+
--ignore C99_COMMENT_TOLERANCE
22+
--ignore REPEATED_WORD
23+
--ignore UNDOCUMENTED_DT_STRING
24+
--ignore DT_SPLIT_BINDING_PATCH
25+
--ignore DT_SCHEMA_BINDING_PATCH
26+
--ignore TRAILING_SEMICOLON
27+
--ignore COMPLEX_MACRO
28+
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE
29+
--ignore ENOSYS
30+
--ignore IS_ENABLED_CONFIG
31+
--ignore EMBEDDED_FUNCTION_NAME
32+
--ignore MACRO_WITH_FLOW_CONTROL

.clang-format

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Note: The list of ForEachMacros can be obtained using:
4+
#
5+
# git grep -h '^#define [^[:space:]]*FOR_EACH[^[:space:]]*(' include/ \
6+
# | sed "s,^#define \([^[:space:]]*FOR_EACH[^[:space:]]*\)(.*$, - '\1'," \
7+
# | sort | uniq
8+
#
9+
# References:
10+
# - https://clang.llvm.org/docs/ClangFormatStyleOptions.html
11+
12+
---
13+
BasedOnStyle: LLVM
14+
AlignConsecutiveMacros: AcrossComments
15+
AllowShortBlocksOnASingleLine: Never
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortEnumsOnASingleLine: false
18+
AllowShortFunctionsOnASingleLine: None
19+
AllowShortIfStatementsOnASingleLine: false
20+
AllowShortLoopsOnASingleLine: false
21+
AttributeMacros:
22+
- __aligned
23+
- __deprecated
24+
- __packed
25+
- __printf_like
26+
- __syscall
27+
- __subsystem
28+
BitFieldColonSpacing: After
29+
BreakBeforeBraces: Linux
30+
ColumnLimit: 100
31+
ConstructorInitializerIndentWidth: 8
32+
ContinuationIndentWidth: 8
33+
ForEachMacros:
34+
- 'FOR_EACH'
35+
- 'FOR_EACH_FIXED_ARG'
36+
- 'FOR_EACH_IDX'
37+
- 'FOR_EACH_IDX_FIXED_ARG'
38+
- 'FOR_EACH_NONEMPTY_TERM'
39+
- 'RB_FOR_EACH'
40+
- 'RB_FOR_EACH_CONTAINER'
41+
- 'SYS_DLIST_FOR_EACH_CONTAINER'
42+
- 'SYS_DLIST_FOR_EACH_CONTAINER_SAFE'
43+
- 'SYS_DLIST_FOR_EACH_NODE'
44+
- 'SYS_DLIST_FOR_EACH_NODE_SAFE'
45+
- 'SYS_SFLIST_FOR_EACH_CONTAINER'
46+
- 'SYS_SFLIST_FOR_EACH_CONTAINER_SAFE'
47+
- 'SYS_SFLIST_FOR_EACH_NODE'
48+
- 'SYS_SFLIST_FOR_EACH_NODE_SAFE'
49+
- 'SYS_SLIST_FOR_EACH_CONTAINER'
50+
- 'SYS_SLIST_FOR_EACH_CONTAINER_SAFE'
51+
- 'SYS_SLIST_FOR_EACH_NODE'
52+
- 'SYS_SLIST_FOR_EACH_NODE_SAFE'
53+
- '_WAIT_Q_FOR_EACH'
54+
- 'Z_FOR_EACH'
55+
- 'Z_FOR_EACH_ENGINE'
56+
- 'Z_FOR_EACH_EXEC'
57+
- 'Z_FOR_EACH_FIXED_ARG'
58+
- 'Z_FOR_EACH_FIXED_ARG_EXEC'
59+
- 'Z_FOR_EACH_IDX'
60+
- 'Z_FOR_EACH_IDX_EXEC'
61+
- 'Z_FOR_EACH_IDX_FIXED_ARG'
62+
- 'Z_FOR_EACH_IDX_FIXED_ARG_EXEC'
63+
- 'Z_GENLIST_FOR_EACH_CONTAINER'
64+
- 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE'
65+
- 'Z_GENLIST_FOR_EACH_NODE'
66+
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
67+
IfMacros:
68+
- 'CHECKIF'
69+
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520
70+
#IncludeBlocks: Regroup
71+
IncludeCategories:
72+
- Regex: '^".*\.h"$'
73+
Priority: 0
74+
- Regex: '^<(assert|complex|ctype|errno|fenv|float|inttypes|limits|locale|math|setjmp|signal|stdarg|stdbool|stddef|stdint|stdio|stdlib|string|tgmath|time|wchar|wctype)\.h>$'
75+
Priority: 1
76+
- Regex: '^\<zephyr/.*\.h\>$'
77+
Priority: 2
78+
- Regex: '.*'
79+
Priority: 3
80+
IndentCaseLabels: false
81+
IndentWidth: 8
82+
InsertBraces: true
83+
SpaceBeforeParens: ControlStatementsExceptControlMacros
84+
SortIncludes: Never
85+
UseTab: Always
86+
WhitespaceSensitiveMacros:
87+
- STRINGIFY
88+
- Z_STRINGIFY
89+

.editorconfig

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# EditorConfig: https://editorconfig.org/
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# All (Defaults)
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
max_line_length = 100
13+
14+
# Assembly
15+
[*.S]
16+
indent_style = tab
17+
indent_size = 8
18+
19+
# C
20+
[*.{c,h}]
21+
indent_style = tab
22+
indent_size = 8
23+
24+
# C++
25+
[*.{cpp,hpp}]
26+
indent_style = tab
27+
indent_size = 8
28+
29+
# Linker Script
30+
[*.ld]
31+
indent_style = tab
32+
indent_size = 8
33+
34+
# Python
35+
[*.py]
36+
indent_style = space
37+
indent_size = 4
38+
39+
# Perl
40+
[*.pl]
41+
indent_style = tab
42+
indent_size = 8
43+
44+
# reStructuredText
45+
[*.rst]
46+
indent_style = space
47+
indent_size = 3
48+
49+
# YAML
50+
[*.{yml,yaml}]
51+
indent_style = space
52+
indent_size = 2
53+
54+
# Shell Script
55+
[*.sh]
56+
indent_style = space
57+
indent_size = 4
58+
59+
# Windows Command Script
60+
[*.cmd]
61+
end_of_line = crlf
62+
indent_style = tab
63+
indent_size = 8
64+
65+
# Valgrind Suppression File
66+
[*.supp]
67+
indent_style = space
68+
indent_size = 3
69+
70+
# CMake
71+
[{CMakeLists.txt,*.cmake}]
72+
indent_style = space
73+
indent_size = 2
74+
75+
# Makefile
76+
[Makefile]
77+
indent_style = tab
78+
indent_size = 8
79+
80+
# Device tree
81+
[*.{dts,dtsi,overlay}]
82+
indent_style = tab
83+
indent_size = 8
84+
85+
# Git commit messages
86+
[COMMIT_EDITMSG]
87+
max_line_length = 75
88+
89+
# Kconfig
90+
[Kconfig*]
91+
indent_style = tab
92+
indent_size = 8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Workflow that attaches additional assets to github release.
2+
name: Attach Release Assets
3+
4+
permissions:
5+
contents: write
6+
actions: write
7+
8+
on:
9+
release:
10+
types: [created]
11+
12+
jobs:
13+
build:
14+
uses: ./.github/workflows/build.yml
15+
secrets: inherit
16+
with:
17+
build_bl_update: true
18+
build_debug: true
19+
memfault_sw_type: "hello.nrfcloud.com"
20+
21+
attach-assets:
22+
runs-on: ubuntu-24.04
23+
needs: [build]
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Download artifact
29+
uses: actions/download-artifact@v4
30+
with:
31+
pattern: firmware-*
32+
merge-multiple: true
33+
34+
- name: Deploy release to github
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
fail_on_unmatched_files: true
38+
files: |
39+
hello.nrfcloud.com-*.*
40+
connectivity-bridge*.*
41+
nrf91-bl-*.hex
42+
nrf53-bl-*.hex
43+
44+
- name: Trigger workflow that publishes firmware bundles to nRF Cloud
45+
working-directory: .github/workflows
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
run: |
49+
gh workflow run publish-firmware-bundles.yml \
50+
-F version=${{ github.event.release.tag_name }}
51+
52+
- name: Trigger workflow that publishes symbol files to Memfault
53+
working-directory: .github/workflows
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
gh workflow run publish-symbol-files-to-memfault.yml \
58+
-F version=${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)