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

22914 Commits

Author SHA1 Message Date
342f3e87e2
boards/stm32l4: add riotboot support 2019-07-04 10:35:02 +02:00
Leandro Lanzieri
5492214fbf
Merge pull request #11768 from aabadie/pr/boards/lobaro_lorabox
boards/lobaro-lorabox: add sx1272 radio driver dependency to netdev_default
2019-07-04 09:19:26 +02:00
Kevin "Bear Puncher" Weiss
6176878153
Merge pull request #11786 from miri64/gnrc_tftp/fix/set-dst-port-on-server-init
gnrc_tftp: set port on server init
2019-07-04 08:49:31 +02:00
Martine Lenders
16f0751102
Merge pull request #11745 from miri64/gnrc_ipv6/fix/rm-dangerous-dup
gnrc_ipv6: remove obsolete and harmful reception code
2019-07-03 23:50:06 +02:00
Martine Lenders
0cc4c50919
Merge pull request #11780 from miri64/gnrc_pktbuf/cleanup/rm-duplicate_upto
gnrc_pktbuf: remove gnrc_pktbuf_duplicate_upto
2019-07-03 17:44:08 +02:00
Sebastian Meiling
f6207871a9
Merge pull request #11678 from MichelRottleuthner/pr_fix_sx127x_reset
drivers/sx127x: fix device reset
2019-07-03 17:07:50 +02:00
Martine S. Lenders
1c946a1af4 gnrc_tftp: set port on server init 2019-07-03 16:49:43 +02:00
Ken Bannister
3d33400b04
Merge pull request #11779 from miri64/gcoap/doc/rm-req_send2
gcoap: remove all references to `gcoap_req_send2()`
2019-07-03 10:35:27 -04:00
Kevin "Bear Puncher" Weiss
cd6544ebe0
Merge pull request #11778 from miri64/gnrc_tftp/doc/deprecate
gnrc_tftp: add deprecation note
2019-07-03 16:09:39 +02:00
Martine S. Lenders
6d56686d44 LOSTANDFOUND.md: document removal of gnrc_pktbuf_duplicate_upto() 2019-07-03 15:37:27 +02:00
Martine S. Lenders
01fc3d8f0b gnrc_tftp: add deprecation note 2019-07-03 15:11:41 +02:00
Martine S. Lenders
b83430aa62 gnrc_pktbuf: remove gnrc_pktbuf_duplicate_upto
The removal of this function was already announced for the 2019.04
release. So it is safe to remove it.
2019-07-03 15:09:18 +02:00
Martine S. Lenders
7e70bf3ac1 cord_epsim: replace gcoap_req_send2() 2019-07-03 15:02:22 +02:00
Martine S. Lenders
0579ef952e cord_ep: replace gcoap_req_send2() 2019-07-03 15:02:15 +02:00
Martine S. Lenders
f1495f839d examples/gcoap: replace gcoap_req_send() 2019-07-03 15:01:50 +02:00
Martine S. Lenders
c9179a26c8 gcoap: replace internal references to gcoap_req_send2()
`gcoap_req_send2()` is deprecated and was replaced with
`gcoap_req_send()`.
2019-07-03 15:00:06 +02:00
Martine Lenders
e8650f5b9a
Merge pull request #11773 from miri64/gnrc_tftp/fix/uninitialized-values
gnrc_tftp: initialize unititialized 'tftp_context_t'
2019-07-03 14:52:46 +02:00
Martine S. Lenders
ea449f3f9e gnrc_ipv6: remove obsolete and harmful reception code
When reworking the reception of IPv6 packets I reset a previously set
`ipv6` snip as follows  when the IPv6 extension handler returns a
packet (see first hunk of this commit):

```C
ipv6 = pkt->next->next
```

With `gnrc_ipv6_ext` this makes *somewhat* sense, `pkt->next` was
previously equal to `ipv6` and after the function call `pkt->next`
is the marked extension header, while `pkt->next->next` is the IPv6
header. However, since `ipv6` is already write-protected i.e.
`ipv6->users == 1` (see ll. 665-675), any additional call of
`gnrc_pktbuf_start_write()` [won't][start-write-doc] duplicate the
packet. In fact, the only `gnrc_pktbuf_start_write()` in
`gnrc_ipv6_ext` is used to send the *result* to the subscribers of that
extension header type, leaving the original packet unchanged for the
caller. As such `ipv6` remains the pointer to the IPv6 header whether
we set it in the line above or not. So we actually don't need that
line.

However, the extension header handling also returns a packet when
`gnrc_ipv6_ext` is not compiled in. In that case it is just a dummy
define that returns the packet you give provide it which means that
this still holds true: `pkt->next == ipv6`.
So setting `ipv6` in this case is actually harmful, as `ipv6` now
points to the NETIF header [following the IPv6 header][pkt-structure]
in the packet and this causes the `user` counter of that NETIF header
`hdr` to be decremented if `hdr->users > 1` in the write-protection I
removed in hunk 2 of this commit:

```C
/* pkt might not be writable yet, if header was given above */
ipv6 = gnrc_pktbuf_start_write(ipv6);
if (ipv6 == NULL) {
    DEBUG("ipv6: unable to get write access to packet: dropping it\n");
    gnrc_pktbuf_release(pkt);
    return;
}
```

But as we already established, `ipv6->users` is already 1, so we don't
actually need the write protection here either.

Since the packet stays unchanged after the `ipv6` snip, we also don't
need to re-search for `netif_hdr` after the other two lines are
removed.

[start-write-doc]: https://doc.riot-os.org/group__net__gnrc__pktbuf.html#ga640418467294ae3d408c109ab27bd617
[pkt-structure]: https://doc.riot-os.org/group__net__gnrc__pkt.html#ga278e783e56a5ee6f1bd7b81077ed82a7
2019-07-03 14:44:03 +02:00
Martine S. Lenders
b8269316e6 tests: add test case for pointer confusion
When subscribing to IPv6 packets on a router for sniffing, the NETIF
header is released prematurely, because of a wrong
`gnrc_pktbuf_start_write()` call. This test aims to reproduce this
error case.
2019-07-03 14:44:03 +02:00
1d7b825122
Merge pull request #11774 from kaspar030/murdock_fast_start
murdock: chunked get_jobs()
2019-07-03 14:23:33 +02:00
Martine S. Lenders
7ba928faa3 gnrc_tftp: make it working again with link-local addresses 2019-07-03 14:04:26 +02:00
Martine Lenders
2fce0950bf gnrc_tftp: set dst_port when duplicated data received 2019-07-03 12:51:10 +02:00
Michel Rottleuthner
6e4214843a drivers/sx127x: fix reset for sx1272 devices.
- The previous implementation wrongly assumes that sx1272 and 1276
  use the same logic level for triggering a reset.
- The timeout values were to short to guarantee proper reset when
  coming from POR.
2019-07-03 11:26:23 +02:00
c704d4a274 murdock: make get_compile_jobs() return subjobs
This change allows callers to receive the job list of individual apps in
chunks (instead of all at once after all appdirs have been processed),
if run as dwq job itself.

E.g.,

    $ dwqc ./.murdock get_compile_jobs

would previously run "get_compile_jobs()" as one job, collecting all the
output from "get_app_board_toolchain_pairs()" subjobs, then return the
combined output as job result.

By using subjobs, the job returns right away, but has previously sent
the "get_app_board_toolchain_pairs" jobs as subjobs ti the initial
instance, which will also wait for all of them to complete, but
already print subjob output as it is received.
2019-07-02 22:06:33 +02:00
a0caf62ebf murdock: add prefix support to get_app_board_toolchain_pairs()
Previously, get_app_board_toolchain_pairs() took the appdir as only
parameter and produced "$appdir $board:$toolchain" tuples.
This commit makes get_app_board_toolchain_pairs() prefix each tuple with
any additional args, e.g.,

    get_app_board_toolchain_pairs() tests/hello_world ./murdock compile

->

    ./murdock compile tests/hello_world samr21-xpro:gnu

This allows getting rid of the xargs call in get_compile_jobs().
2019-07-02 22:06:33 +02:00
a01e70a4ab
Merge pull request #11775 from aabadie/pr/riotboot/flashwrite_typo
riotboot/flashwrite: fix typo in doxygen documentation
2019-07-02 13:19:56 +02:00
22796b7438
riotboot/flashwrite: fix typo in doxygen documentation 2019-07-02 11:39:51 +02:00
6e08151efe murdock: make _greplist() not return error code on empty list 2019-07-02 10:26:43 +02:00
Kevin "Bear Puncher" Weiss
2ebd65ff86
Merge pull request #11675 from cladmi/pr/boards/common/use_makefile_features
boards/common: use Makefile.features
2019-07-02 10:21:20 +02:00
5c676dea23 murdock: split get_jobs() 2019-07-01 23:59:22 +02:00
Martine Lenders
3d9c7ee5de gnrc_tftp: set source port for server 2019-07-01 22:56:42 +02:00
Martine Lenders
5ec0b1609a gnrc_tftp: initialize unititialized 'tftp_context_t' values to 0 2019-07-01 22:55:31 +02:00
cladmi
ec312492ee
boards/remote: use common/remote/Makefile.features
Introduce and use a common/remote/Makefile.features.
The boards were already using the common `Makefile.include` and
`Makefile.dep`.

This makes 'include $(RIOTCPU)/cc2538/Makefile.features' be done in
the same module where 'CPU' is defined.

Preparation for moving 'CPU' definition to Makefile.features.
2019-07-01 18:09:57 +02:00
cladmi
5b00d3a942
boards/msba2-based: use common/msba2/Makefile.features
Introduce and use a common/msba2/Makefile.features.
The boards were already using the common `Makefile.include` and
`Makefile.dep`.

This makes 'include $(RIOTCPU)/lpc2387/Makefile.features' be done in
the same module where 'CPU' is defined.

Preparation for moving 'CPU' definition to Makefile.features.
2019-07-01 18:09:57 +02:00
cladmi
6be662a48b
boards/msp30: use common/msb-430/Makefile.features
Use the common `msb-430/Makefile.features` instead of duplicating the
`cpu` include.
2019-07-01 18:09:57 +02:00
cladmi
38e0ce3d54
boards/bluepill/blackpill: always include common Makefile.features
The file is there so no reason to have an include if file exists.
2019-07-01 18:09:57 +02:00
Kevin "Bear Puncher" Weiss
9b4c01c2dd
Merge pull request #11478 from cladmi/pr/make/makefile_features
Makefile.features: prerequisites for moving CPU/CPU_MODEL to boards/Makefile.features
2019-07-01 17:52:07 +02:00
Gaëtan Harter
fecc9c178d
Makefile.dep: include CPU/Makefile.dep when CPU is defined
Prepare for when boards define `CPU` in `BOARD/Makefile.features`.

Include '$(RIOTCPU)/$(CPU)/Makefile.features' directly when it is
defined. This will allow removing the file inclusion from the
`BOARD/Makefile.dep`. The board must then not include it directly.

Transitional change to allow migrating part by parts.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.

This can currently trigger including two times the cpu/CPU/Makefile.dep
but allows a by board complete migration.
2019-07-01 17:23:14 +02:00
Gaëtan Harter
376b09b875
Makefile.features: include CPU/Makefile.features when CPU is defined
Prepare for when boards define `CPU` in `BOARD/Makefile.features`.

Include '$(RIOTCPU)/$(CPU)/Makefile.features' directly when it is
defined. This will allow removing the file inclusion from the
`BOARD/Makefile.features`. The board must then not include it directly.

Transitional change to allow migrating part by parts.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-07-01 17:23:14 +02:00
Gaëtan Harter
5c0ba89e81
makefiles/vars.inc.mk: update doc on CPU/CPU_MODEL definition
Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-07-01 17:23:14 +02:00
Gaëtan Harter
3125d6f979
Makefile.features: add doc on CPU/CPU_MODEL definition in board
Describe the ongoing migration.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-07-01 17:23:14 +02:00
cladmi
168cb62ba5
makefiles/info-global.inc.mk: Reset CPU/CPU_MODEL value when reading deps
Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-07-01 17:23:14 +02:00
Francisco
bc6303fb59
Merge pull request #11750 from aabadie/pr/cpu/stm32l1-4_flashpage_numof
cpu/stm32l{1,4}: refactor flashpage numof macros
2019-07-01 14:58:10 +02:00
a1fbbff99b
examples/default: add lobaro-lorabox to boards with netif list 2019-07-01 14:51:07 +02:00
Francisco
50055726e0
Merge pull request #11751 from aabadie/pr/boards/stm32f3_riotboot
boards/stm32f3: add support for riotboot feature
2019-07-01 14:50:55 +02:00
8db29ad065
boards/lobaro-lorabox: add sx1272 driver to netdev_default deps 2019-07-01 14:50:04 +02:00
a1d0192e48
boards/nucleo-f3xx: add support for riotboot feature 2019-07-01 10:44:32 +02:00
Francisco
c3aaf621b5
Merge pull request #11749 from aabadie/pr/cpu/stm32f3_flashpage
cpu/stm32f3: add support for flashpage and flashpage_raw
2019-07-01 10:03:40 +02:00
Sebastian Meiling
57361470dd
Merge pull request #11737 from nmeum/pr/gnrc_tftp_mode_compare
gnrc_tftp: Fix out-of-bounds memory access when comparing modes
2019-07-01 09:26:03 +02:00
4f929e924c
Merge pull request #11764 from kaspar030/add_mypycache_to_gitignore
.gitignore: add .mypy_cache/
2019-07-01 08:12:45 +02:00