1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 01:09:47 +01:00
Commit Graph

1780 Commits

Author SHA1 Message Date
Marian Buschsieweke
b9ba3ee0b2
Merge pull request #20964 from maribu/tests/rust_libs/improve-test-robustness
sys/shell: cmds_json builtin command
2024-11-13 05:30:13 +00:00
Marian Buschsieweke
15086a2f55
Merge pull request #20024 from mguetschow/makefile-subfolders
Build system: support for application subfolders
2024-11-12 08:05:47 +00:00
Marian Buschsieweke
f0a88dcf56
sys/shell: add help_json builtin command
This command does the same as `help`, but provides a machine readable
JSON rather than a human readable table. It is only provided when the
(pseudo-)module `shell_builtin_cmd_help_json` is used.
2024-11-11 22:05:04 +01:00
mguetschow
d86738f057
Merge pull request #20970 from crasbe/pr/nRF_OpenOCD
cpu/nRF52: Always recover Device before Flashing
2024-11-11 08:29:41 +00:00
crasbe
5d7194a4ee makefiles: introduce OPENOCD_POST_INIT_CMDS 2024-11-08 16:03:17 +01:00
Marian Buschsieweke
fdac725d8c
makefiles/serial: better MOST_RECENT_PORT=1 for CDC ACM
- Allow specifying an alternative board filter for the bootloader TTY,
  as this will present different vendor, model, and serial than RIOT's
  USB implementation.
- Allow specifying the serial. This is useful when multiple CDC ACM
  devices are present.
2024-11-05 13:21:16 +01:00
Mikolai Gütschow
b96536d1ba
Makefiles: (application) support for SRC in subfolders 2024-11-01 11:53:55 +01:00
mguetschow
00e25adfe3
Merge pull request #20720 from netd-tud/chacha20-glue-code-implementation
sys/psa_crypto: one-shot Chacha20 support
2024-10-29 16:52:30 +00:00
chrysn
340dc65629 makefiles: Update docker image 2024-10-18 09:13:13 +02:00
Wunderbaeumchen
b9396c4739 sys/psa_crypto: chacha20 oneshot gluecode 2024-10-17 10:25:59 +02:00
Marian Buschsieweke
0ffad1d65f
Merge pull request #20877 from maribu/tools/docker
build system: simplify docker image pinning
2024-10-11 10:08:54 +00:00
Marian Buschsieweke
e960a19f24
build system: simplify docker image pinning
It turns out that the ID mechanics of docker are even more crazy than
realized before: On Linux (x86_64) they use a different SHA256 when
referring to a locally installed image than when referring to the
same image at dockerhub. On Mac OS (Apple Silicon), the use the repo
SHA256 also when referring to the local image.

Instead of increasing the complexity of the current solution even more
by covering both cases, we now use
`docker.io/riot/riotbuild@sha256:<SHA256_OF_DOCKERHUB_IMAGE>` to refer
to a specific docker image, which hopefully works across systems.

Instead of pulling the image explicitly, we now can rely on docker
to do so automatically if the pinned image is not found locally. As
a result, the knob to disable automatic pulling has been dropped.

Fixes https://github.com/RIOT-OS/RIOT/issues/20853
2024-10-09 21:05:57 +02:00
Joshua DeWeese
dda83bc67e make: export DEVELHELP
This patch exports the make macro `DEVELHELP`. Without this patch, use
of the macro in the following files does not work when the macro is set
in a makefile (such as in Makefile.local or an application's makefile as
demonstrated in dist/Makefile). Inside these files `DEVELHELP` is not
defined under these conditions.

 - pkg/littlefs/Makefile
 - pkg/littlefs2/Makefile
 - sys/stdio_null/Makefile

Note that use of the macro does work in these files when the macro is
set from the command line, without the patch. For example:

``` sh
$make DEVELHELP=1 all
```
2024-10-03 14:23:33 -04:00
Marian Buschsieweke
d41a39e29b
Merge pull request #20888 from chrysn-pull-requests/riotdocker-update
makefiles/docker: Update docker image
2024-10-03 09:02:55 +00:00
chrysn
c5c248a267 makefiles/docker: Update docker image
This acknowledges the changes after [254], which moved the Rust
installation into the static tools.

[254]: https://github.com/RIOT-OS/riotdocker/pull/254
2024-10-02 22:09:23 +02:00
Marian Buschsieweke
8c2f6ae9dc
drivers: Add shield_llcc68 module
This implements the `shield_llcc68` module that allows using the LLCC68
LoRa shield on Arduino UNO compatible boards (with Arduino IO mappings
provided by the board) by just selecting the module.
2024-10-02 09:48:29 +02:00
Marian Buschsieweke
4b36bb6098
Merge pull request #20873 from benpicco/cpu/native-no-pedantic
makefiles/arch/native: don't be pedantic
2024-10-01 08:51:55 +00:00
Benjamin Valentin
50e3d61441 makefiles/suit: allow to decrypt signing key with SUIT_SEC_PASSWORD 2024-09-30 16:38:16 +02:00
Benjamin Valentin
5c34eeae03 makefiles/arch/native: don't be pedantic
We don't enable this on any other architecture.
-pedantic doesn't give us any more beneficial wanrings, only warns
about language extensions that are implemented by both GCC and Clang
anyway.

Since those are the only compilers we are targeting, we can just make
use of them to make our lives easier.
2024-09-26 17:09:15 +02:00
Benjamin Valentin
1517949f13 makefiles/suit: drop use of SUIT_SEC_PASSWORD
Specifying the password of the SUIT private key on the command line
and thereby committing it to shell history is a security issue.

Instead ask for the password interactively when an encrypted private
key is used.
2024-09-13 10:57:40 +02:00
Benjamin Valentin
765dd68753 makefiles/suit: use OpenSSL to generate key
Co-authored-by: Fabian Hüßler <fabian.huessler@ml-pa.com>
2024-09-12 21:54:00 +02:00
Benjamin Valentin
99285d3ec5 makefiles/suit: add support for multiple & encrypted signing key 2024-09-11 19:28:39 +02:00
Benjamin Valentin
fbf1cd16a6 makefiles/suit: store public keys
This makes it easier to work with encrypted keys and multiple keys.
The firmware binary can contain multiple public keys that are used
to verify the manifest.
The use case is that we want to include the production public key
in the debug build, so we can seamlessly update to the production
version without re-flashing the device.

If the public keys is always generated on the fly, this would still
require the production key password even for the debug build.

Instead if we store the (unencrypted) public key, we can always
include it in the debug build.
2024-09-11 17:57:59 +02:00
chrysn
6dc2037767 makefiles/docker: Update docker image 2024-09-11 10:26:11 +02:00
chrysn
f6477370df makefiles/doc: Explain where docker image hash values come from 2024-09-11 10:13:36 +02:00
Mikolai Gütschow
a68e2f0a70
makefiles/docker.inc.mk: bump riotbuild docker image to last available 2024-08-28 15:41:38 +02:00
chrysn
4beff4e9d4 makefiles: Align cargo-info output with what happens in the build system
This simplifies the explanation of what might need adjustments depending
on which cargo command is invoked.
2024-08-22 15:16:41 +02:00
chrysn
a5c7705e1f makefiles/doc: Clarify that CARGO_OPTIONS is only used for cargo build
The options passed to cargo are not universal, and thus can not apply to
all commands as was previously documented.
2024-08-22 15:16:41 +02:00
chrysn
d260ec88a6 makefiles: Add "cargo-command" target for executing cargo
Examples of executed commands are `cargo check`, `cargo fix` or `cargo
doc`.
2024-08-22 15:16:41 +02:00
chrysn
184ffc89ab makefiles: Align cargo build command's setup with upcoming cargo-command 2024-08-21 21:20:46 +02:00
chrysn
8d30b00dd1 makefiles: Split Rust related checks out from building target 2024-08-21 20:40:08 +02:00
chrysn
a26366371d sys/ztimer: Remove the deprecated ztimer_now64
This has been scheduled for removal after 2022.10, and its replacement
ztimer64_now has long been available.
2024-08-20 20:52:37 +02:00
Marian Buschsieweke
422042bd00
drivers/periph_gpio_ll_irq: make support for both edges optional
The assumption that every MCU has this feature turned out wrong. Hence,
add a feature to allow testing for support of edge triggered IRQs on
both flanks.
2024-08-02 13:41:36 +02:00
Wunderbaeumchen
9b502027ab sys/psa_crypto: added sha3 glue code 2024-07-13 04:35:21 +02:00
benpicco
db21bd134f
Merge pull request #20121 from benpicco/pyterm-session
makefiles/tools/serial.inc.mk: make use of pyterm session names
2024-07-11 15:48:42 +00:00
crasbe
1261e03a5e makesfiles/jlink: fix exports for flashing 2024-07-06 19:27:29 +02:00
Marian Buschsieweke
a8a7987e72
Merge pull request #20752 from fabian18/pr/fix_riotboot_build_with_slot_aux
makefiles: add OPENOCD_DEBUG_ADAPTER and SLOT_AUX_LEN to riotboot build environment
2024-06-14 16:31:53 +00:00
Fabian Hüßler
bb80878fad makefiles: add OPENOCD_DEBUG_ADAPTER and SLOT_AUX_LEN to riotboot build env. 2024-06-14 17:44:40 +02:00
Marian Buschsieweke
89754bf6b0
makefiles/docker.inc.mk: Pin riotbuild version with BUILD_IN_DOCKER=1
We had a number of issues being reported that in the end were caused
by building with a version of riotbuild incompatible with the source,
because CI and source were updated in lock-step but users forgot to
run `docker pull` to update theirs.

In addition, checking out a random old release/commit will likely fail,
as older source may contain bugs that did not trigger with older
toolchains. To reliably succeed at building, a matching version of
riotbuild needs to be used for `BUILD_IN_DOCKER=1`.

This just pins the version of riotbuild manually, so it needs to be
updated by hand in lock step with updating the docker container.

In addition, the latest image is pulled automatically on mismatch.
Ideally, this would pull the tagged image. But that fails for unknown
reason when using the documented command for this with both docker and
podman with:

    manifest for riot/riotbuild@sha256:f5951bc41dfface6cac869181d703e62cbdd3b7976b0946130a38f2e658000b3 not found: manifest unknown: manifest unknown

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
2024-06-08 02:11:08 +02:00
Marian Buschsieweke
9187d16c78
features.yaml: s/esp_eth/periph_eth/
Use periph_eth instead of esp_eth for the Ethernet peripheral on ESP
MCUs for consistency
2024-05-28 20:59:29 +02:00
Marian Buschsieweke
798793e60a
build system: add netif_openwsn feature
Boards / MCUs now provide the newly introduced  netif_openwsn feature
if they have a network interface supported by OpenWSN.
2024-05-27 22:56:37 +02:00
Marian Buschsieweke
8ebc102780
build system: rename ethernet feature into netif_ethernet
The `ethernet` feature has not yet been used, so renaming it should not
cause any issue.

The goal is to eventually have a number of `netif_<type>` features that
would allow filtering boards by the time of connectivity the have.
2024-05-24 22:38:59 +02:00
Marian Buschsieweke
97a6543c10
tree-wide: Introduce netif feature and use it
This gets rid of a long list of boards with network interfaces and
instead let's boards (or MCUs with peripheral network interfaces)
provide the netif feature.

The apps that before used the long list are not depending on the
feature instead (in case of the default example, this is an
optional dependency).

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
Co-authored-by: mewen.berthelot <mewen.berthelot@orange.com>
2024-05-22 10:39:56 +02:00
Mikolai Gütschow
ecf259579a
sys/psa_crypto: support for SHA-{384,512-{224,256}} 2024-05-14 17:06:39 +02:00
Marian Buschsieweke
2e9ce4d6b4
Merge pull request #20633 from dylad/pr/cpu/cortexm33/add_splim_support
cpu/cortexm: add stack limit support for Cortex-M33
2024-05-06 17:05:20 +00:00
Dylan Laduranty
683d4a249d cpu/cortexm: add stack limit support for CM33
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-05-06 17:14:49 +02:00
Martine Lenders
a5996e22b8
Merge pull request #20454 from mariemC/mariem/coap-coaps-forward-proxy
gcoap:  add coaps forward proxy
2024-05-06 08:54:08 +00:00
Mikolai Gütschow
286314994f
makefiles/docker: prevent recursive docker invocation 2024-04-29 16:47:34 +02:00
mariemC
e10553b6ee sys: add forward proxy thread submodule 2024-04-25 13:30:16 +02:00
Teufelchen1
c8d5fe2352 boards/cpu: Add limited GBA boot support to RIOT 2024-04-10 17:06:14 +02:00