Skip to content

Commit 1a34dca

Browse files
authored
Merge pull request #4 from XenuIsWatching/zephyr2
Zephyr Module and Update
2 parents d30cdac + c331051 commit 1a34dca

File tree

1,827 files changed

+163030
-66449
lines changed

Some content is hidden

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

1,827 files changed

+163030
-66449
lines changed

.bazelrc

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
# ==============================================================================
1515
#
1616
# TFLM Bazel configuration file.
17-
#
18-
# Other build options:
19-
# asan: Build with the clang address sanitizer
20-
# msan: Build with the clang memory sanitizer
21-
# ubsan: Build with the clang undefined behavior sanitizer
22-
#
2317

24-
# Address sanitizer
25-
# CC=clang bazel build --config asan
18+
# Use the following C++ standard
19+
build --cxxopt -std=c++17
20+
21+
# Treat warnings as errors
22+
build --copt -Werror
23+
24+
# When building with the address sanitizer
25+
# E.g., bazel build --config asan
26+
build:asan --repo_env CC=clang
2627
build:asan --strip=never
2728
build:asan --copt -fsanitize=address
2829
build:asan --copt -DADDRESS_SANITIZER
@@ -31,8 +32,9 @@ build:asan --copt -O3
3132
build:asan --copt -fno-omit-frame-pointer
3233
build:asan --linkopt -fsanitize=address
3334

34-
# Memory sanitizer
35-
# CC=clang bazel build --config msan
35+
# When building with the memory sanitizer
36+
# E.g., bazel build --config msan
37+
build:msan --repo_env CC=clang
3638
build:msan --strip=never
3739
build:msan --copt -fsanitize=memory
3840
build:msan --copt -DADDRESS_SANITIZER
@@ -41,8 +43,9 @@ build:msan --copt -O3
4143
build:msan --copt -fno-omit-frame-pointer
4244
build:msan --linkopt -fsanitize=memory
4345

44-
# Undefined Behavior Sanitizer
45-
# CC=clang bazel build --config ubsan
46+
# When building with the undefined behavior sanitizer
47+
# E.g., bazel build --config ubsan
48+
build:ubsan --repo_env CC=clang
4649
build:ubsan --strip=never
4750
build:ubsan --copt -fsanitize=undefined
4851
build:ubsan --copt -g

.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Define the project's code formatting styles
2+
#
3+
# https://editorconfig.org
4+
#
5+
# EditorConfig is a file format for defining coding styles. EditorConfig is
6+
# natively supported by VisualStudio, GitHub, Neovim, etc.
7+
8+
[*]
9+
# Unix-style newlines and a newline ending in every file
10+
end_of_line = lf
11+
insert_final_newline = true
12+
13+
[*.{cc,h}]
14+
# https://google.github.io/styleguide/cppguide.html
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.py]
19+
# https://google.github.io/styleguide/pyguide.html but 2-space indent
20+
indent_style = space
21+
indent_size = 2
22+
23+
[WORKSPACE,BUILD,*.bzl]
24+
# https://bazel.build/build/style-guide
25+
indent_style = space
26+
indent_size = 4
27+
28+
[Makefile]
29+
indent_style = tab

.github/actions/docker_action/Dockerfile

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/actions/docker_action/action.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/assets/write_json.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/ci-error-template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Failed CI Test
3+
labels: bug
4+
---
5+
There was a failed test in the CI pipeline for [PR {{ env.PR_NUM }}]({{ env.PR_LINK }}). Please see comments in the PR for more details.
6+
7+
This issue automatically generated for notification purposes.

.github/mergify.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
queue_rules:
2+
- name: default
3+
checks_timeout: 2 h
4+
conditions:
5+
- base=main
6+
- label=ci:ready_to_merge
7+
8+
9+
pull_request_rules:
10+
- name: push to default merge queue
11+
conditions:
12+
- base=main
13+
- label=ci:ready_to_merge
14+
actions:
15+
queue:
16+
name: default
17+
require_branch_protection: true
18+
method: squash
19+
commit_message_template: |
20+
{{ title }} (#{{ number }})
21+
{{ body_raw }}
22+
23+
- name: remove ci:ready_to_merge label
24+
conditions:
25+
- merged
26+
actions:
27+
label:
28+
remove:
29+
- ci:ready_to_merge
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Scheduled workflow failed
3+
labels: bug
4+
---
5+
{{ env.WORKFLOW }} run number {{ env.RUN_NUMBER }} failed. Please examine the run itself for more details.
6+
7+
This issue has been automatically generated for notification purposes.

.github/stale.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Number of days of inactivity before an Issue or Pull Request becomes stale
2+
daysUntilStale: 30
3+
# Number of days of inactivity before a stale Issue or Pull Request is closed
4+
daysUntilClose: 15
5+
# Comment to post when marking as stale. Set to `false` to disable
6+
markComment: >
7+
This issue has been automatically marked as stale because it has no
8+
recent activity. It will be closed if no further activity occurs. Thank you.
9+
# Comment to post when removing the stale label. Set to `false` to disable
10+
unmarkComment: false
11+
closeComment: >
12+
Closing as stale. Please reopen if you'd like to work on this further.
13+
limitPerRun: 30
14+
# Limit to only `issues` or `pulls`
15+
only: issues

.github/workflows/arduino.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)