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

124 Commits

Author SHA1 Message Date
Frederik Haxel
5ed0bafc92 examples, tests: Changes for the native64 board
- Adapted build system and test checks for the native boards to include native64
- Added `native64` to the same tests as `native`
2024-02-05 22:02:14 +01:00
Benjamin Valentin
ff52d35584 gnrc_ipv6_nib: use static DNS server from auto_init_sock_dns if present 2023-01-27 19:15:13 +01:00
Benjamin Valentin
acf2074369 examples/gnrc_border_router: static: use router from advertisements by default 2023-01-27 18:01:00 +01:00
bors[bot]
211db05401
Merge #18477 #19101 #19155
18477: gnrc_static: add static network configuration r=miri64 a=benpicco



19101: CI: update check-labels-action r=miri64 a=kaspar030



19155: Revert "sys/pm_layered: pm_(un)block add attribute optimize(3)" r=maribu a=Teufelchen1

Revert "sys/pm_layered: pm_(un)block add attribute optimize(3) -shortens hotpath"

This reverts commit 5447203921.

### Contribution description

Compiling `examples/gnrc_networking_mac` using `TOOLCHAIN=llvm` yields the following error:
```
RIOT/sys/pm_layered/pm.c:77:16: error: unknown attribute 'optimize' ignored [-Werror,-Wunknown-attributes]
__attribute__((optimize(3)))
```
As indicated, this is because the attribute `optimize` is GCC only and not present in LLVM.
Compare the manpages of [GCC](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html) and [LLVM](https://clang.llvm.org/docs/AttributeReference.html).


### Testing procedure

Since this should only affect performance and not behavior, no special testing is needed. I am not aware of any tests in RIOT which could verify that assumption.

### Issues/PRs references

Introduced in #18846

There is another instance of this attribute being used in[ shell_lock.c](6fb340d654/sys/shell_lock/shell_lock.c (L80)). Since the usage is security related, I omit it from this PR.


Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
2023-01-16 14:03:15 +00:00
chrysn
e9f793c5e4 examples/gnrc_border_router: Restore UHCP conditional default
The space inside the expression made the ifneq always non-equal; the
intended behavior is "if we're using any of these interfaces, or
REUSE_TAP is set".
2022-12-20 17:35:08 +01:00
Benjamin Valentin
34e9d66261 examples/gnrc_border_router: add static network config option 2022-12-11 23:34:09 +01:00
Benjamin Valentin
5260c18ae6 examples/gnrc_border_router: add option to re-use existing TAP interface 2022-11-08 15:06:33 +01:00
Marian Buschsieweke
a04b0a01a2
examples,tests: replace deprecated module names by new names 2022-09-16 13:15:46 +02:00
Benjamin Valentin
53601df430 examples/gnrc_border_router: allow more than two ways to obtain a prefix 2022-04-22 22:22:28 +02:00
Benjamin Valentin
130b809de1 examples/gnrc_border_router: default to native board
If no board is selected, `gnrc_border_router` would be build for `samr21-xpro`.
This seems rather arbitrary.

Select `native` instead as it is done for other examples.
This ensures that the default `make all term` works with no hardware connected.
2021-10-14 14:13:03 +02:00
Benjamin Valentin
9a6fc85b16 treewide: replace gnrc_netdev_default with netdev_default 2021-09-06 15:43:40 +02:00
Benjamin Valentin
eb801ad684 examples/gnrc_border_router: fix wording in Makefile 2021-04-10 01:08:48 +02:00
Benjamin Valentin
2d910dcc53 examples/gnrc_border_router: default to DHCPv6 for CDC ECM 2021-03-22 16:24:07 +01:00
Benjamin Valentin
0eef9b3a75 examples/gnrc_border_router: enable ethernet uplink
Boards with an ethernet interface already have this as their `netdev_default`
so we don't have to enable anything here.
2021-03-21 17:47:19 +01:00
Martine S. Lenders
04222f0393
examples/gnrc_border_router: include gnrc_ipv6_nib_dns explicitly
The other applications using `sock_dns` do it too
(`tests/gnrc_sock_dns` and `tests/gnrc_ipv6_nib_dns`) and besides it
doesn't make much sense to include RDNSS option support
(aka `gnrc_ipv6_nib_dns`) just because someone uses the DNS client
(aka `sock_dns`). This dependency will be removed in a later commit.
2020-08-28 19:58:00 +02:00
Dan Trickey
2c3987def0
examples/gnrc_border_router: add CDC-ECM uplink
Optionally executes pyterm from CDC-ECM start_network.sh

The shell script exits and cleans up instantly unless there is a
blocking program running at the end. Users can supply a serial port to
display in pyterm, or alternatively just wait if it is a "headless"
deployment.
2020-07-17 21:34:56 +01:00
Cenk Gündoğan
7aa499d5f1 make: use $(MAKE) instead of direct make call 2020-07-03 12:03:06 +02:00
Martine Lenders
fc5704d814
examples/gnrc_border_router: use 64-bit prefix with UHCP 2020-04-07 14:28:16 +02:00
Benjamin Valentin
e83409b8c0 examples/gnrc_border_router: allow to configure more than one ZEP device
Native supports multiple ZEP devices, so add a config option for it to
gnrc_border_router.

This allows for easier testing of border routers with multiple interfaces.
2020-04-05 01:14:03 +02:00
benpicco
f6eacda9f8
Merge pull request #13609 from miri64/dhcpv6-pd_ia/feat/initial
dhcpv6-pd_ia: initial import of a DHCPv6 server bootstrapper
2020-04-03 20:40:38 +02:00
Martine S. Lenders
74b34c2a03
examples: bootstrap host-side DHCPv6 server with gnrc_border_router 2020-04-03 17:47:39 +02:00
Martine Lenders
bc20360d34
examples/gnrc_border_router: add sock_dns as a comment
Alternative to https://github.com/RIOT-OS/RIOT/pull/13732
2020-03-27 10:59:33 +01:00
Jose Alamos
e451570219 gnrc_netif: remove GNRC_NETIF_NUMOF macro 2020-03-26 11:12:23 +01:00
János Brodbeck
201f599064 examples/gnrc_border_router: remove never defined USE_SLIP variable 2020-03-23 17:47:43 +01:00
Benjamin Valentin
31245849fb examples/gnrc_border_router: add example for WiFi <-> esp_now BR
This adds an example configuration to use the gnrc_border_router to route
between a regular WiFi network and an esp_now network.

All you need is an esp based board (esp8266, esp32).

Configure the access data for your WiFi network in `Makefile.esp.conf`,
then run

    make BOARD=esp32-wroom-32 USE_ETHOS=0 USE_ESP=1 flash term

to turn a e.g. `esp32-wroom-32` into a boarder router.

You can use other esp based boards as nodes in the network by flashing
e.g. the `gnrc_networking` example.
Be sure to add `CFLAGS += -DGNRC_IPV6_NIB_CONF_SLAAC=1` as otherwise
your esp_now node will not receive a link-local IP address.
2020-03-19 22:55:39 +01:00
Martine S. Lenders
f847cde5f7
examples: adapt border router example for slipdev_stdio 2020-03-06 08:58:45 +01:00
Martine S. Lenders
9cadd5569f
gnrc_border_router: move module specific config to extra Makefile
This aims to make the main Makefile more accessible for new users.
2020-03-03 18:24:46 +01:00
Martine S. Lenders
a0b0724f76
examples/gnrc_border_router: add optional DHCPv6 support 2020-02-20 16:42:19 +01:00
Martine S. Lenders
7831a98bce
examples/gnrc_border_router: remove fib module
IPv6 routers use the FIB of `gnrc_ipv6_nib` for a while now, so the
`fib` module is not used.
2020-01-29 14:59:59 +01:00
a12af69752
examples/gnrc_border_router: remove BOARD_BLACKLIST variable
pic32 boards now provide an UART, and this the periph_uart feature
ruuvitag/thingy52 provide the periph_uart feature so stdio_uart can work
on these boards.
2020-01-14 07:48:09 +01:00
6d5f64bd14
examples/gnrc_border_router: move board deps in Makefile.board.dep 2019-12-06 21:19:58 +01:00
Benjamin Valentin
d45b3d1cd3 makefiles: default-channel.inc.mk -> default-radio-settings.inc.mk
The scope of the file has changed, so change it's name.
2019-10-27 11:55:55 +01:00
Marian Buschsieweke
ba90ba2e2f
examples: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci
- Decluttered Makefile by moving BOARD_INSUFFICIENT_MEMORY lists from Makefile
  to Makefile.ci
- Optimized the list for use of tools:
    - One entry per line reduces the number of merge conflicts
    - One entry per line allows alphabetical sorting e.g. via Vim's sort command
- Sorted all lists alphabetically
2019-10-15 09:55:07 +02:00
Marian Buschsieweke
7c6eb619e1
examples: Updated BOARD_INSUFFICIENT_MEMORY
Added new boards bluepill-128kib and blackpill-128kib where needed.
2019-09-29 16:52:29 +02:00
Marian Buschsieweke
00965e3a40
makefiles: Refactored channel configuration
The default channel configuration is managed within the Makefiles of many
examples and tests. This commit moves the default channel logic to
`makefiles/default-channel.ink.mk` to ease maintenance. All Makefiles that
previously managed the default channel configuration themself have been
updated to include that file.

The default channel configuration of the cc110x has been added
2019-09-10 10:04:52 +02:00
Marian Buschsieweke
615e25f319
drivers: Removed driver for CC110x transceivers
- Removed cc110x driver
- Updated all makefiles
- Kept both board specific configurations and support for it in RIOT's
  upper layers, so re-implementations don't need to start from zero
2019-08-19 12:56:47 +02:00
kenrabold
5222822260 examples/* : blacklisting for hifive1b 2019-07-19 13:25:17 -07:00
Juan I Carrano
ee6b6b9c38 boards/mips-malta: remove board.
The mips-malta board is a maintainance burden, has no working UART input
and is unobtainable and thus must be removed.

1. Unobtainable board
=====================

The mips-malta board is not an off-the-shelf part. A quick web
search only show the MIPS website where one is told to "contact sales".

I could find it on ebay, used, at €155 and from single seller.

Not having access to the board means:

a. We cannot maintain it. In fact it could be broken right now.
b. Potential RIOT uses have not access to the board either. In other
   words, it is pointless to run on hardware nobody has.

2. No working UART input
========================

Not all applications need UART input, but that is no excuse for not supporting
it:

a. Makes development & debugging way harder.
b. It is impossible to run interactive tests.
 b.1. Constrains the rest of the platforms by providing an incentive to not
      make tests interactive.
c. The lack of UART is a witness to the poor quality of the port.

I want to stress point (c). If something as basic as a serial port cannot work,
how can we expect more complex fucntionality to work. The answer is impossible
to know, because of point (1).

3. Maintainance burden
======================

The RIOT project has limited time and human resources which can be better spent.

a. Compiling for mips-malta wastes CPU time.
b. Blacklisting the board in the test wastes contributor's time.
c. Adapting the board's makefile during build system rework takes time and makes
   the reworks harder.
 c.1. Add to that that the changes are most of the time not even tested on the board
      because of (1). Look at the github issues/PRs and you will see it.
d. Developers usually stick to the lowest common denominator. Issue (2) sets this
   denominator unacceptably low.

MIPS platform in general
========================

In commits I will address general issues in the MIPS platform and why it should all
be removed.
2019-07-12 12:24:52 +02:00
d94c557a11
examples: exclude stm32l0538-disco board
because of insufficient memory available
2019-07-08 09:06:55 +02:00
930142fbcf
examples/gnrc_border_router: add stdio_ethos dependency 2019-06-23 22:16:03 +02:00
Marian Buschsieweke
f4c0af8421
examples: Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:23:00 +02:00
a76efc3b93
examples: not enough memory for i-nucleo-lrwan1 2019-05-21 09:57:33 +02:00
97b4ac0e98
examples: add lsn50 to insufficient memory boards 2019-05-17 22:43:04 +02:00
Marian Buschsieweke
e14bea1cf5
examples: Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-nano to BOARD_INSUFFICIENT_MEMORY/BOARD_BLACKLIST following suit
of how arduino-uno is marked, as arduino-nano is mostly an Uno in a different
form factor.
2019-03-14 13:58:45 +01:00
Dylan Laduranty
eaa8d83c23 examples/*: add saml1*-xpro to BOARD_INSUFFICIENT_MEMORY 2019-01-21 17:11:05 +01:00
1858db871d examples: exclude nrf51dk from big examples 2018-12-04 08:37:00 +01:00
Silke Hofstra
ee82d4fbfe boards, examples, tests: rename stm32mindev to blackpill 2018-09-19 16:22:14 +02:00
cladmi
b3f889c7ef
examples: blacklist arduino boards based on ROM/RAM overflow 2018-09-05 12:07:54 +02:00
Marian Buschsieweke
e0bf20728c
examples, tests: Updated BOARD_INSUFFICIENT_MEMORY
Added stm32mindev to BOARD_INSUFFICIENT_MEMORY where needed
2018-06-04 09:03:30 +02:00
kenrabold
db4d67c4fd make: add hifive1 to BOARD_INSUFFICIENT_MEMORY
Added HiFive1 to BOARD_INSUFFICIENT_MEMORY list for examples and tests that are too big to fit

build: fixed missing syscall and cpuid failures

Added missing syscall stubs for nanostubs and fixed compile error with cpuid periph

build: fixed whitespace error

build: add hifive1 to more BOARD_INSUFFICIENT_MEMORY

doc: fixed doxygen warnings

Addressed Doxygen warnings in source file comments

doc: more doxygen fixes

doc: even more doxygen fixes

doc: more changes

build: fix pedantic and rdci_simple build failures

make: exclude lua
2018-05-29 16:27:53 -07:00