Skip to content

Commit ee0cd57

Browse files
committed
Merge remote-tracking branch 'upstream/main' into marigold.upstream-merge
2 parents 0956d12 + 4904ec7 commit ee0cd57

File tree

2,798 files changed

+134213
-19716
lines changed

Some content is hidden

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

2,798 files changed

+134213
-19716
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ ForEachMacros:
6767
- 'Z_GENLIST_FOR_EACH_NODE_SAFE'
6868
- 'STRUCT_SECTION_FOREACH'
6969
- 'TYPE_SECTION_FOREACH'
70+
- 'K_SPINLOCK'
7071
IfMacros:
7172
- 'CHECKIF'
7273
# Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520

.github/workflows/bsim-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
west forall -c 'git reset --hard HEAD'
8181
8282
- name: Check common triggering files
83-
uses: tj-actions/changed-files@v35
83+
uses: tj-actions/changed-files@v41
8484
id: check-common-files
8585
with:
8686
files: |
@@ -95,7 +95,7 @@ jobs:
9595
tests/bsim/*
9696
9797
- name: Check if Bluethooth files changed
98-
uses: tj-actions/changed-files@v35
98+
uses: tj-actions/changed-files@v41
9999
id: check-bluetooth-files
100100
with:
101101
files: |
@@ -104,7 +104,7 @@ jobs:
104104
subsys/bluetooth/**
105105
106106
- name: Check if Networking files changed
107-
uses: tj-actions/changed-files@v35
107+
uses: tj-actions/changed-files@v41
108108
id: check-networking-files
109109
with:
110110
files: |

.github/workflows/codecov.yaml

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Code Coverage with codecov
22

33
on:
44
schedule:
5-
- cron: '25 */3 * * 1-5'
5+
- cron: '25 06,18 * * 1-5'
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
platform: ["native_sim", "qemu_x86", "unit_testing"]
23+
platform: ["mps2_an385", "native_sim", "qemu_x86", "unit_testing"]
2424
env:
2525
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.16.4
2626
steps:
@@ -88,27 +88,25 @@ jobs:
8888
export ZEPHYR_BASE=${PWD}
8989
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
9090
mkdir -p coverage/reports
91-
./scripts/twister --force-color -N -v --filter runnable -p ${{ matrix.platform }} --coverage -T tests
92-
93-
- name: Generate Coverage Report
94-
run: |
95-
mv twister-out/coverage.info lcov.pre.info
96-
lcov -q --remove lcov.pre.info mylib.c --remove lcov.pre.info tests/\* \
97-
--remove lcov.pre.info samples/\* --remove lcov.pre.info ext/\* \
98-
--remove lcov.pre.info *generated* \
99-
-o coverage/reports/${{ matrix.platform }}.info --rc lcov_branch_coverage=1
91+
pip3 install gcovr
92+
./scripts/twister -i --force-color -N -v --filter runnable -p ${{ matrix.platform }} --coverage -T tests --coverage-tool gcovr -xCONFIG_TEST_EXTRA_STACK_SIZE=4096 -e nano
10093
10194
- name: ccache stats post
10295
run: |
10396
ccache -s
10497
ccache -p
10598
99+
- name: Rename coverage files
100+
if: always()
101+
run: |
102+
cp twister-out/coverage.json coverage/reports/${{ matrix.platform }}.json
103+
106104
- name: Upload Coverage Results
107105
if: always()
108106
uses: actions/upload-artifact@v3
109107
with:
110108
name: Coverage Data (Subset ${{ matrix.platform }})
111-
path: coverage/reports/${{ matrix.platform }}.info
109+
path: coverage/reports/${{ matrix.platform }}.json
112110

113111
codecov-results:
114112
name: "Publish Coverage Results"
@@ -129,14 +127,14 @@ jobs:
129127

130128
- name: Move coverage files
131129
run: |
132-
mv ./coverage/reports/*/*.info ./coverage/reports
130+
mv ./coverage/reports/*/*.json ./coverage/reports
133131
ls -la ./coverage/reports
134132
135133
- name: Generate list of coverage files
136134
id: get-coverage-files
137135
shell: cmake -P {0}
138136
run: |
139-
file(GLOB INPUT_FILES_LIST "coverage/reports/*.info")
137+
file(GLOB INPUT_FILES_LIST "coverage/reports/*.json")
140138
set(MERGELIST "")
141139
set(FILELIST "")
142140
foreach(ITEM ${INPUT_FILES_LIST})
@@ -150,7 +148,7 @@ jobs:
150148
foreach(ITEM ${INPUT_FILES_LIST})
151149
get_filename_component(f ${ITEM} NAME)
152150
if(MERGELIST STREQUAL "")
153-
set(MERGELIST "-a ${f}")
151+
set(MERGELIST "--add-tracefile ${f}")
154152
else()
155153
set(MERGELIST "${MERGELIST} -a ${f}")
156154
endif()
@@ -160,10 +158,19 @@ jobs:
160158
161159
- name: Merge coverage files
162160
run: |
163-
sudo apt-get update
164-
sudo apt-get install -y lcov
165161
cd ./coverage/reports
166-
lcov ${{ steps.get-coverage-files.outputs.mergefiles }} -o merged.info --rc lcov_branch_coverage=1
162+
pip3 install gcovr
163+
gcovr ${{ steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --json merged.json
164+
gcovr ${{ steps.get-coverage-files.outputs.mergefiles }} --merge-mode-functions=separate --cobertura merged.xml
165+
166+
- name: Upload Merged Coverage Results
167+
if: always()
168+
uses: actions/upload-artifact@v3
169+
with:
170+
name: Merged Coverage Data
171+
path: |
172+
coverage/reports/merged.json
173+
coverage/reports/merged.xml
167174
168175
- name: Upload coverage to Codecov
169176
if: always()
@@ -173,4 +180,4 @@ jobs:
173180
env_vars: OS,PYTHON
174181
fail_ci_if_error: false
175182
verbose: true
176-
files: merged.info
183+
files: merged.xml

.github/workflows/do_not_merge.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
jobs:
88
do-not-merge:
99
if: ${{ contains(github.event.*.labels.*.name, 'DNM') ||
10-
contains(github.event.*.labels.*.name, 'TSC') }}
10+
contains(github.event.*.labels.*.name, 'TSC') ||
11+
contains(github.event.*.labels.*.name, 'Architecture Review') ||
12+
contains(github.event.*.labels.*.name, 'dev-review') }}
1113
name: Prevent Merging
1214
runs-on: ubuntu-22.04
1315
steps:
1416
- name: Check for label
1517
run: |
16-
echo "Pull request is labeled as 'DNM' or 'TSC'"
17-
echo "This workflow fails so that the pull request cannot be merged"
18+
echo "Pull request is labeled as 'DNM', 'TSC', 'Architecture Review' or 'dev-review'."
19+
echo "This workflow fails so that the pull request cannot be merged."
1820
exit 1
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Merged PR stats
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
- v*-branch
8+
types: [closed]
9+
jobs:
10+
record_merged:
11+
if: github.event.pull_request.merged == true && github.repository == 'zephyrproject-rtos/zephyr'
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v3
16+
- name: PR event
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
20+
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"
21+
PR_STAT_ES_INDEX: ${{ vars.PR_STAT_ES_INDEX }}
22+
run: |
23+
pip3 install pygithub elasticsearch
24+
python3 ./scripts/ci/stats/merged_prs.py --pull-request ${{ github.event.pull_request.number }} --repo ${{ github.repository }}

.github/workflows/twister.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ jobs:
179179
west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject)
180180
west forall -c 'git reset --hard HEAD'
181181
182+
# Hotfix until we have kitware ninja in the docker image.
183+
# Needed for full functionality of the job server functionality in twister which only works with
184+
# kitware supplied ninja version.
185+
wget -c https://github.com/Kitware/ninja/releases/download/v1.11.1.g95dee.kitware.jobserver-1/ninja-1.11.1.g95dee.kitware.jobserver-1_x86_64-linux-gnu.tar.gz -O - | tar xz --strip-components=1
186+
sudo cp ninja /usr/local/bin
187+
182188
- name: Check Environment
183189
run: |
184190
cmake --version

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,18 +1622,20 @@ if(CONFIG_BUILD_OUTPUT_BIN AND CONFIG_BUILD_OUTPUT_UF2)
16221622
endif()
16231623

16241624
if(CONFIG_BUILD_OUTPUT_META)
1625+
set(KERNEL_META_PATH ${PROJECT_BINARY_DIR}/${KERNEL_META_NAME} CACHE INTERNAL "")
1626+
16251627
list(APPEND
16261628
post_build_commands
16271629
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/zephyr_module.py
16281630
${WEST_ARG}
16291631
${ZEPHYR_MODULES_ARG}
16301632
${EXTRA_ZEPHYR_MODULES_ARG}
1631-
--meta-out ${KERNEL_META_NAME}
1633+
--meta-out ${KERNEL_META_PATH}
16321634
$<$<BOOL:${CONFIG_BUILD_OUTPUT_META_STATE_PROPAGATE}>:--meta-state-propagate>
16331635
)
16341636
list(APPEND
16351637
post_build_byproducts
1636-
${KERNEL_META_NAME}
1638+
${KERNEL_META_PATH}
16371639
)
16381640
endif()
16391641

@@ -1885,12 +1887,11 @@ endif()
18851887
add_custom_command(
18861888
TARGET ${logical_target_for_zephyr_elf}
18871889
POST_BUILD
1890+
COMMAND ${CMAKE_COMMAND} -E echo "Generating files from ${PROJECT_BINARY_DIR}/${KERNEL_ELF_NAME} for board: ${BOARD}"
18881891
${post_build_commands}
18891892
BYPRODUCTS
18901893
${post_build_byproducts}
1891-
COMMENT "Generating files from ${KERNEL_ELF_NAME} for board: ${BOARD}"
18921894
COMMAND_EXPAND_LISTS
1893-
# NB: COMMENT only works for some CMake-Generators
18941895
)
18951896

18961897
# To populate with hex files to merge, do the following:

CODEOWNERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
/boards/shields/inventek_eswifi/ @nandojve
134134
/boards/xtensa/odroid_go/ @ydamigos
135135
/boards/xtensa/nxp_adsp_imx8/ @iuliana-prodan @dbaluta
136+
/boards/xtensa/kincony_kc868_a32/ @bbilas
136137
/boards/arm64/qemu_cortex_a53/ @carlocaione
137138
/boards/arm64/bcm958402m2_a72/ @abhishek-brcm
138139
/boards/arm64/mimx8mm_evk/ @MrVan @JiafeiPan
@@ -363,6 +364,8 @@
363364
/drivers/spi/spi_rv32m1_lpspi* @karstenkoenig
364365
/drivers/spi/*esp32* @sylvioalves
365366
/drivers/spi/*pl022* @soburi
367+
/drivers/sdhc/ @danieldegrasse
368+
/drivers/sdhc/sdhc_cdns* @roymurlidhar
366369
/drivers/timer/*arm_arch* @carlocaione
367370
/drivers/timer/*cortex_m_systick* @anangl
368371
/drivers/timer/*altera_avalon* @nashif
@@ -416,7 +419,7 @@
416419
/dts/arm/atmel/ @galak
417420
/dts/arm/broadcom/ @sbranden
418421
/dts/arm/cypress/ @ifyall @npal-cy
419-
/dts/arm/gigadevice/ @nandojve
422+
/dts/arm/gd/ @nandojve
420423
/dts/arm/infineon/xmc4* @parthitce @ifyall @npal-cy
421424
/dts/arm/infineon/psoc6/ @ifyall @npal-cy
422425
/dts/arm64/armv8-r.dtsi @povergoing

0 commit comments

Comments
 (0)