Skip to content

Commit 786092b

Browse files
authored
Merge pull request #116 from sorru94/fw-port-0.9
Forward port release 0.9
2 parents 9449444 + e91885a commit 786092b

12 files changed

Lines changed: 60 additions & 25 deletions

File tree

.github/workflows/static.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ jobs:
9191
- name: Install Python dependencies
9292
working-directory: edgehog-zephyr-device
9393
run: pip install -r $PWD/scripts/requirements.txt
94+
- name: Change code checker version
95+
working-directory: astarte-device-sdk-zephyr
96+
run: |
97+
pip uninstall codechecker -y
98+
pip install codechecker==6.24.4
9499
- name: Run static analisys
95100
working-directory: edgehog-zephyr-device
96101
run: west static --sample edgehog_app

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ All notable changes to this project will be documented in this file.
99
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
1010
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
1111

12+
## [0.9.0] - 2025-10-23
13+
### Added
14+
- In the samples, support for the NXP FRDM RW612 board, including WiFi functionality.
15+
16+
### Changed
17+
- Update the Astarte device SDK to v0.9.0.
18+
- Support for Zephyr 4.2.1.
19+
20+
### Removed
21+
- The `wifi_scan.h` header as the wifi scan functionality is now embedded within the edgehog
22+
device.
23+
1224
## [0.8.0] - 2025-03-26
1325
### Added
1426
- The `edgehog_device_poll` function that should be called periodically throughout the lifetime of

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Second, a new entry should be added to the projects list:
5151
remote: edgehog-device-manager
5252
repo-path: edgehog-zephyr-device.git
5353
path: edgehog-zephyr-device
54-
revision: v0.8.0
54+
revision: v0.9.0
5555
import: true
5656
```
5757
Remember to run `west update` after performing changes to the manifest file.
@@ -80,7 +80,7 @@ The second step is to initialize the west workspace, using the Edgehog library r
8080
manifest repository.
8181

8282
```shell
83-
west init -m git@github.com:edgehog-device-manager/edgehog-zephyr-device --mr v0.8.0
83+
west init -m git@github.com:edgehog-device-manager/edgehog-zephyr-device --mr v0.9.0
8484
west update
8585
```
8686

doc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(Edgehog-Device-Doc LANGUAGES)
77

88
set(MIN_WEST_VERSION 1.0.0)
99

10-
set(Edgehog_Device_VERSION 0.8.0)
10+
set(Edgehog_Device_VERSION 0.9.0)
1111

1212
message(STATUS "Zephyr base: ${EDGEHOG_DEVICE_BASE}")
1313
message(STATUS "Documentation tag: ${DOC_TAG}")

include/edgehog_device/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/** @brief Major version number */
2929
#define EDGEHOG_DEVICE_MAJOR 0
3030
/** @brief Minor version number */
31-
#define EDGEHOG_DEVICE_MINOR 8
31+
#define EDGEHOG_DEVICE_MINOR 9
3232
/** @brief Patch version number */
3333
#define EDGEHOG_DEVICE_PATCH 0
3434

samples/edgehog_app/README_NXP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ installed, this can be done through the
4141

4242
The application demonstrates the use of the
4343
[Edgehog device for Zephyr](https://github.com/edgehog-device-manager/edgehog-zephyr-device) at
44-
version **0.8.0** in conjunction with [Zephyr RTOS](https://github.com/zephyrproject-rtos/zephyr) at
44+
version **0.9.0** in conjunction with [Zephyr RTOS](https://github.com/zephyrproject-rtos/zephyr) at
4545
version **4.1.0**.
4646

4747
Every Edgehog device relies internally on the [Astarte](https://docs.astarte-platform.org/) platform

scripts/docs.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,21 @@ def do_run(self, args, unknown_args):
8181
"""
8282
module_path = Path(self.topdir).joinpath("edgehog-zephyr-device")
8383
if args.clean:
84-
log.inf(stylize("make -C doc clean", fore("cyan")))
85-
subprocess.run(
86-
"make -C doc clean",
87-
shell=True,
88-
cwd=module_path,
89-
timeout=60,
90-
check=True,
91-
env=dict(
92-
os.environ,
93-
EDGEHOG_DEVICE_BASE=f"{module_path}",
94-
EDGEHOG_DEVICE_EXTENDED_DOCS="yes" if args.extended else "no",
95-
),
96-
)
84+
build_path = os.path.join(module_path, "doc", "_build")
85+
if os.path.exists(build_path):
86+
log.inf(stylize("make -C doc clean", fore("cyan")))
87+
subprocess.run(
88+
"make -C doc clean",
89+
shell=True,
90+
cwd=module_path,
91+
timeout=60,
92+
check=True,
93+
env=dict(
94+
os.environ,
95+
EDGEHOG_DEVICE_BASE=f"{module_path}",
96+
EDGEHOG_DEVICE_EXTENDED_DOCS="yes" if args.extended else "no",
97+
),
98+
)
9799
log.inf(stylize("make -C doc doxygen", fore("cyan")))
98100
subprocess.run(
99101
"make -C doc doxygen",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5+
# This file contains all the west extension commands private to this project.
6+
# It should only be included in the `west.yml` manifest of the Astarte device
7+
58
west-commands:
69
- file: scripts/docs.py
710
commands:

scripts/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
codechecker==6.24.4
5+
codechecker==6.26.2
66
colored
7-
clang-tidy==18.1.1
87
astarte-device-sdk

scripts/static.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
import sys
1919
from linecache import getline
2020
from pathlib import Path
21+
from colored import stylize, fg
2122

22-
from colored import fore, stylize
23+
from colored import fore
2324
from west import log # use this for user output
2425
from west.commands import WestCommand # your extension must subclass this
2526

@@ -74,8 +75,20 @@ def do_add_parser(self, parser_adder):
7475
parser = parser_adder.add_parser(self.name, help=self.help, description=self.description)
7576

7677
# Add some options using the standard argparse module API.
77-
parser.add_argument("-p", "--pristine", help="west build pristine flag", default="auto")
78-
parser.add_argument("-s", "--sample", help="name of the sample analyze", default="edgehog_app")
78+
default_pristine = "auto"
79+
parser.add_argument(
80+
"-p",
81+
"--pristine",
82+
help=f"west build pristine flag. Default: '{default_pristine}'.",
83+
default=default_pristine,
84+
)
85+
default_sample = "edgehog_app"
86+
parser.add_argument(
87+
"-s",
88+
"--sample",
89+
help=f"sample to analyze. Default: '{default_sample}'.",
90+
default=default_sample,
91+
)
7992
parser.add_argument("-e", "--export", help="an additional (optional) export type")
8093

8194
return parser # gets stored as self.parser
@@ -113,6 +126,7 @@ def do_run(self, args, unknown_args):
113126
f'-DCODECHECKER_EXPORT={",".join(codechecker_exports)}',
114127
f'-DCODECHECKER_ANALYZE_OPTS="{";".join(codechecker_analyze_opts)}"',
115128
]
129+
print(stylize(" ".join(cmd), fg("cyan")))
116130
subprocess.run(" ".join(cmd), shell=True, cwd=module_path, check=True)
117131

118132
has_reports = False

0 commit comments

Comments
 (0)