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

22557 Commits

Author SHA1 Message Date
Gaëtan Harter
545a5f74aa
Merge pull request #11433 from cladmi/pr/make/flash_recipe/allow_overriding
Makefile.include: allow overwriting flash-recipe
2019-05-28 14:45:47 +02:00
Gaëtan Harter
e40d569204
kinetis: save 'wdog-disable.bin' binary in the repository
Keep the compiled '.bin' file to remove the need to compile it when
flashing. This remove the need to have the toolchain when flashing so
allow compiling and flashing with `BUILD_IN_DOCKER=1` without a local
toolchain.

Even if it ends up storing a binary, the file is only 34 bytes.
2019-05-28 14:37:11 +02:00
Gaëtan Harter
984cbc7e41
cpu/kinetis/check-fcfield: use OBJDUMP
Get OBJDUMP from the environment instead of hardwriting the value.

This is a prerequisite to allow using `objdump` when building from docker
when not having the `arm` toolchain installed.
2019-05-28 14:36:37 +02:00
Juan I Carrano
bb6a06a5a0
Merge pull request #11547 from cladmi/pr/make/objdump
makefiles/toolchain: fallback to 'objdump'
2019-05-28 14:26:58 +02:00
Gaëtan Harter
f47b09faa4
makefiles/toolchain: fallback to 'objdump'
When '$(PREFIX)objdump' is not present fallback to native '(g)objdump'.
'objdump' is used when flashing for some boards but the toolchain may
not be installed when building in docker.

This will allow using 'objdump' in 'cpu/kinetis/dist/check-fcfield.sh'.
2019-05-28 14:04:31 +02:00
Juan Carrano
66c66b59a5 tests/unittests: add tests for scanf_float.
Newlib-nano does not seem to support hexadecimal floats or the %a
specifier. What is even weirder, it reports a successful conversion
anyways.

Tests for these two cases have been commented out.
2019-05-28 12:10:39 +02:00
Gilles DOFFE
7fc3207043 sys: add pseudomodule scanf_float
To read float number from stdin, add "-u scanf_float"
option to the linker.
This option is setup using a pseudomodule as it is already done for
printf_float.
Just add to your Makefile:
USEMODULE += scanf_float

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-05-28 12:10:39 +02:00
Gaëtan Harter
0f8372fac4
Merge pull request #11589 from fjmolinas/pr_kinetis_merge_fcfield_check
kinetis/fcfield-check*: merge into single file and support binary flash
2019-05-28 12:06:42 +02:00
francisco
c219fdc001 kinetis/check-fcfield: skip on IMAGE_OFFSET > 0x410
- fcfield is located in memory at 0x400-0x40f. Its content is only read
  upon reset, therefore if in presence of a bootloader and multiple
  applications, the fcfield will only be read when the bootloader
  is loaded. As long as we flash at IMAGE_OFFSET > 0x410 we do not
  care about the fcfield content since it won't get overwritten.
2019-05-28 10:19:00 +02:00
Gaëtan Harter
d486598fdf
dist/tools/buildsystem_sanity_check: check no PREFLASH* exports
Add sanity check for removed exports.
2019-05-28 09:58:40 +02:00
Gaëtan Harter
79280eb12e
boards/tools: remove exporting PREFLASH/FLASHDEPS
PREFLASHER/PREFFLAGS/FLASHDEPS are evaluated by the main Makefile.include.
Their value does not need to be exported.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `16 insertions(+), 16 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE` plus the newline that is said to have
changed.
2019-05-28 09:58:40 +02:00
Gaëtan Harter
ff00096a39
boards/tools: remove exporting MSPDEBUGFLAGS
MSPDEBUGFLAGS is evaluated only in the same file.
Its value does not need to be exported.

This will also prevent evaluating 'PORT' for MSPDEBUGFLAGS when not needed.
2019-05-28 09:58:40 +02:00
Gaëtan Harter
ea51cf3174
dist/tools/buildsystem_sanity_check: check no DEBUG* exports
Add sanity check for removed exports.
2019-05-28 09:58:40 +02:00
Gaëtan Harter
7306dbd382
boards/tools: remove exporting DEBUG*
DEBUGGER/DEBUGGER_FLAGS/DEBUGSERVER/DEBUGSERVER_FLAGS are evaluated by the
main Makefile.include or by file included by it.
Their value does not need to be exported.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `55 insertions(+), 55 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE`.
2019-05-28 09:58:35 +02:00
Gaëtan Harter
734410b9cd
dist/tools/buildsystem_sanity_check: check no RESET/RESET_FLAGS exports
Add sanity check for removed exports.
2019-05-28 09:56:14 +02:00
Gaëtan Harter
b88d1887c8
boards/tools: remove exporting RESET/RESET_FLAGS
RESET and RESET_FLAGS are evaluated by the main Makefile.include or by file
included by it. Their value does not need to be exported.

This will also prevent evaluating 'PORT' for RESET_FLAGS when not needed.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `24 insertions(+), 24 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE`.
2019-05-28 09:56:14 +02:00
Gaëtan Harter
95c07c507c
dist/tools/buildsystem_sanity_check: check no FLASHER/FFLAGS exports
Add sanity check for removed exports.
2019-05-28 09:56:14 +02:00
Gaëtan Harter
ac113ca2f8
boards/tools: remove exporting FLASHER/FFLAGS
FLASHER and FFLAGS are evaluated by the main Makefile.include or by file
included by it. Their value does not need to be exported.

This will also prevent evaluating 'PORT' for FFLAGS when not needed.

Testing
-------

`git diff --word-diff` only reports `export` being removed.

`git show --stat` reports `84 insertions(+), 84 deletions(-)`
Which is the same amount as lines that where matching
`export[[:blank::]]\+VARIABLE`.
2019-05-28 09:56:00 +02:00
Gaëtan Harter
04e76f323d
dist/tools/buildsystem_sanity_check: handle vars exported in vars.inc.mk
Handle differently variables that are exported in `vars.inc.mk` from the
ones that should not.

This is needed for the upcoming variables change that should also be
removed from `vars.inc.mk` right now.

Keeping the old behavior will help migrating other variables more easily
by keeping them only exported in vars.inc.mk in the first time.
2019-05-28 09:53:40 +02:00
Gaëtan Harter
1dc479de00
Merge pull request #11590 from cladmi/pr/make/info_applications_supported_boards
makefiles/app_dirs.inc.mk: target to list supported applications/boards
2019-05-27 19:57:45 +02:00
francisco
7156977fed kinetis/check-fcfield: add fcfield verirication for bin files 2019-05-27 17:43:19 +02:00
francisco
963bbe75ba kinetis/check-fcfield: merge hex and elf script 2019-05-27 17:38:46 +02:00
Gaëtan Harter
79814b6ca9
makefiles/app_dirs.inc.mk: target to list supported applications/boards
Slow implementation to list all supported boards.
It is adapted from what `.murdock` does without the `toolchain` handling.
2019-05-27 17:21:39 +02:00
Gaëtan Harter
d21b03fe54
makefiles/app_dirs.inc.mk: declare info-applications .PHONY 2019-05-27 17:21:39 +02:00
Gaëtan Harter
1c4ab53e2a
Merge pull request #11588 from cladmi/pr/cortexm_common_ldscripts/prepare_kinetis
tests/cortexm_common_ldscript: update code section for kinetis
2019-05-27 17:02:41 +02:00
Gaëtan Harter
fe81c51dcd
tests/cortexm_common_ldscript: update code section for kinetis
Update the 'code' section detection to also work on kinetis.

The boards using 'cortexm.ld' have the code section starting with
'.text'. For the 'cpu/kinetis/kinetis.ls' the first section is '.vector'.

Update the 'awk' matching pattern to correctly detect the kinetis boards.
It is a dependency to allow testing upcoming offset support with kinetis.

I am not 100% sure about the pattern for awk.
2019-05-27 15:45:49 +02:00
Martine Lenders
8fe12bc82c
Merge pull request #11021 from miri64/gnrc_sixlowpan_frag/enh/multiple-send
gnrc_sixlowpan_frag: allow send of multiple datagrams simultaneously
2019-05-27 11:54:26 +02:00
Martine Lenders
93050d29c0 gnrc_sixlowpan_frag: unify common operations 2019-05-27 10:35:31 +02:00
Martine Lenders
04472d3fbe gnrc_sixlowpan_frag: reorder stack variables for better stack usage 2019-05-27 10:35:31 +02:00
Martine Lenders
b6f19c0bcb gnrc_sixlowpan_frag: allow send of multiple datagrams simultaneously 2019-05-27 10:35:31 +02:00
92ee05289a
tests/pkg_semtech_loramac: remove useless lora region cflags 2019-05-26 11:47:16 +02:00
8823548fa5
examples/lorawan: remove useless lora region cflags 2019-05-26 11:47:16 +02:00
d87cf66473
pkg/semtech-loramac: move lora region cflags to pkg makefile 2019-05-26 11:47:16 +02:00
4d052a6921
Merge pull request #11580 from miri64/gnrc_ipv6_ext/fix/nh-after-change
gnrc_ipv6_ext: don't read from `pkt->data` after `_demux()`
2019-05-26 00:40:37 +02:00
Dylan Laduranty
d3dbd4e129
Merge pull request #11581 from benpicco/sam0-sercom_cleanup
cpu/sam0: sercom cleanup
2019-05-25 23:56:32 +02:00
Benjamin Valentin
7415e0590e sam0_common: spi: use sercom_set_gen() instead of re-implementing it
Don't repeat yourself and introduce errors in doing so.
2019-05-25 19:13:53 +02:00
Benjamin Valentin
84233ce5d5 sam0_common: replace sercom_id() calculation with switch statement
As the sercom_id() function grows it gets more unweidly.
Let's replace it with a simple switch statement that is true for all
sam0 parts.
2019-05-25 19:12:55 +02:00
Benjamin Valentin
31f88a2d0e sam0_common: periph/spi: use sercom_clk_en/dis()
Use already existing functions to turn on / off SERCOM clocks instead
of replicating the functionality in the driver.
2019-05-25 19:09:32 +02:00
Marian Buschsieweke
483feb7ba9
Merge pull request #11579 from miri64/minmea/enh/version-bump-2018
minmea: bump version to current master
2019-05-25 12:06:01 +02:00
Cenk Gündoğan
e7ec7a2e67
Merge pull request #11577 from miri64/gnrc_sixlowpan_frag/fix/ms-to-us
gnrc_sixlowpan_frag: fix timeout config macro name
2019-05-25 08:49:56 +02:00
Martine Lenders
ea1708b402 gnrc_ipv6_ext: don't read from pkt->data after _demux()
`_demux()` might change `pkt->data` in all kind of ways (moving it due
to `gnrc_pktbuf_mark()`, though unlikely; releasing it, because e.g. it
starts with a fragment header that marks a fragmented packet containing
only one fragment, etc.) so accessing the pointer *after* calling
`_demux()` is somewhat playing with fire. This change avoids this by
storing the value of `ext_hdr->nh` (all we are interested in here) in a
temporary variable that then is used to set the out-parameter `nh`.

`protnum` needs to be unchanged before the call to `_demux()` as it was
set by the previous iteration and determines what extension header
actually is handled.
2019-05-24 22:11:22 +02:00
Martine Lenders
b251f96022 tests/pkg_minmea: remove blacklisting of ATmega-based boards
The reason for the blacklisting was fixed in the current version of
minmea.
2019-05-24 19:03:27 +02:00
Martine Lenders
6273b30bcb minmea: bump version to current master
$ git log --oneline dbf51f03c5058746b4c4b3d6fdcd3d0357c5da36..HEAD
ae4dd94 Merge pull request #38 from noahp/noahp/check-url
b1371aa 🔗 update Check link
65bf740 Merge pull request #35 from gdpinchina/master
61c6ef7 fix test for gga
4514f6d fix test for gga
113221d fix test for gga
35b00bc fix test in gga
9fcd245 remove indent
59c3e0a fix gga char alignment problem in test.c
79b964a modefy initialization for dgps_age
c4a5a01 modify dgps_age type
c01cbcf modify dgps_age type
cd27e72 Merge pull request #29 from swilson/master
4d97109 Fix compiler warnings.
0456bbb Define timegm
04f1141 Add TI-RTOS compat header
8e4fc4e README.md: formatting fixes
0b02771 minmea.h: add Windows compatibility layer
ded4faf Merge pull request #25 from asund/master
f50449e Fixup whitespace
80af9b4 * Arrange year interpretation in order of likeliness * Add unit tests
ef8bca7 clarity of century use in struct tm
486da2b Small fixes to minmea_gettime * Handle four digit years provided by ZDA in minmea_gettime * Assume GPS epoch to allow dates prior 2000 to be parsed
2019-05-24 19:02:59 +02:00
Martine Lenders
5522f3d7a5 tests/pkg_minmea: port to fmt
With `newlib-nano` and other smaller `libc`s the output of floats does
not work with `printf()`. Since minmea uses floating point operations
I used `fmt` instead.
2019-05-24 18:58:47 +02:00
1dcd3b6a08
Merge pull request #11563 from dylad/pr/saml1x/pm_layered
saml1x: enable pm_layered by default
2019-05-24 18:33:37 +02:00
Martine Lenders
0f3ccb2a33
Merge pull request #11227 from maribu/leonardo
boards: Add support for the Arduino-Leonardo
2019-05-24 18:24:21 +02:00
Martine Lenders
88158253b9
Merge pull request #11574 from aabadie/pr/make_print_versions
make: add print-versions helper target
2019-05-24 18:02:42 +02:00
Marian Buschsieweke
855b5bd54d
tests: Updated BOARD_INSUFFICIENT_MEMORY
Added arduino-leonardo to BOARD_INSUFFICIENT_MEMORY where needed
2019-05-24 17:57:44 +02:00
Marian Buschsieweke
5522e9efb5
tests: Updated BOARD_BLACKLIST
Added arduino-leonardo to BOARD_BLACKLIST where needed
2019-05-24 17:56:42 +02:00
Martine Lenders
7e26a22723 gnrc_sixlowpan_frag: fix timeout config macro name 2019-05-24 17:39:35 +02:00