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

19055 Commits

Author SHA1 Message Date
smlng
3893f04d00 tests: move testrunner import up
Testrunner is now impported as a package found in PYTHONPATH, so
import can be placed at the top of the script as usual.
2018-08-13 14:11:24 +02:00
smlng
f9824abedb tests: remove unused os package import
os package is imported by every test script but only used by
a few, thus flake8 check reported errors.
2018-08-13 14:11:23 +02:00
smlng
13d61b5c20 tests: use testrunner from pythonlibs
Remove now obsolete sys.append from all tests, as testrunner was moved
to dist/pythonlibs as proper package.
2018-08-13 14:11:23 +02:00
smlng
dd9a43bdc9 dist: move testrunner to pythonlibs as package
As testrunner is moved to dist/pythonlibs which is exported
via PYTHONPATH, testrunner is found by all test scripts.
2018-08-13 14:11:22 +02:00
Cenk Gündoğan
ba6d386c5e
Merge pull request #9756 from smlng/pr/ccnlite/versionbump
pkg: update ccn-lite and adapt shell commands
2018-08-13 11:03:11 +02:00
Martine Lenders
d852d90cd0
Merge pull request #9470 from gebart/pr/netif-fcf-frame-pend
gnrc_netif_ieee802154: Set FCF Frame Pending when more data is expected
2018-08-13 10:39:49 +02:00
Peter Kietzmann
2bfca66e5c
Merge pull request #9469 from gebart/pr/netif-flags-more-data
gnrc_netif: Introduce GNRC_NETIF_HDR_FLAGS_MORE_DATA
2018-08-13 10:03:00 +02:00
Joakim Nohlgård
a247d8bfa5 gnrc_netif_ieee802154: set Frame Pending bit sometimes
Set frame pending bit in IEEE 802.15.4 FCF when
GNRC_NETIF_HDR_FLAGS_MORE_DATA is set on the netif header on outbound
frames.
2018-08-13 09:27:18 +02:00
Joakim Nohlgård
29e4a1ba3c gnrc_netif: Introduce GNRC_NETIF_HDR_FLAGS_MORE_DATA 2018-08-13 09:25:32 +02:00
Peter Kietzmann
a05e2f22e2
Merge pull request #9693 from smlng/pr/cc2538/timer
cc2538: cleanup and optimisation of periph timer
2018-08-13 08:40:51 +02:00
e2d2a479bf
Merge pull request #9351 from cladmi/pr/make/cortexm_common/linkerscript
cortexm_common/ldscript: simplify generation of firmwares in section of the ROM
2018-08-12 12:28:44 +02:00
Martine Lenders
6b0c34fa6f
Merge pull request #9765 from gebart/pr/sprintf-len
tests/gnrc_netif: Fix -Wformat-overflow
2018-08-11 17:50:48 +02:00
Gaëtan Harter
6abcf2e015
cortexm_common_ldscript: add a README.md
Explain the test and the output you should get.
2018-08-11 11:34:10 +02:00
Gaëtan Harter
8ecc0ac652
cortexm_common_ldscript: add test for _fw_rom_length overflow
Verify that specifying a too big _fw_rom_length for the rom is detected and
prevent compilation.
2018-08-11 11:34:07 +02:00
Gaëtan Harter
6768763601
cortexm_common_ldscript: add test for linker FW_ROM_LEN
Compile an elf file with a length equals to half the rom length.
2018-08-11 11:34:04 +02:00
Gaëtan Harter
7dad2e7096
cortexm_common/ldscript: allow defining FW_ROM_SIZE
Allow defining a specific rom length to use for linking the firmware,
_fw_rom_length, instead of the default configuration to use the whole rom from
_rom_offset to the end.

 * Add cortexm_common/Makefile.include FW_ROM_SIZE configuration
 * Add an assertion that _fw_rom_length still respects _rom_length
2018-08-11 11:34:01 +02:00
Gaëtan Harter
642f5f2414
cortexm_common_ldscript: add test for linker script offset
Compile two elf files with different offset and verify the linked file offset.
I only enabled samr21-xpro and iotlab nodes for the moment.
2018-08-11 11:33:58 +02:00
Gaëtan Harter
c84539fdb3
cortexm_common: allow defining ROM_OFFFSET in a compilation rule
Define _rom_offset with a conditional evaluated at execution time to allow
setting it in compilation rules and generate in the same make instance different
elf files with different configurations.
2018-08-11 11:33:55 +02:00
Gaëtan Harter
9103dcaeda
cortexm_common: refactor the definition test
The variables should all always be defined.
2018-08-11 11:33:52 +02:00
Gaëtan Harter
def2858af9
cortexm_common_ldscript: test _rom_offfset taken into account
Test that _rom_offfset is removed from the available _rom_length.
2018-08-11 11:33:49 +02:00
Gaëtan Harter
83a617261a
cortexm_common/ldscript: add _fw_rom_length variable
It will help testing if it is taken into account and for defining for outside
after.
2018-08-11 11:33:47 +02:00
Gaëtan Harter
bbb1fbe0e3
cortexm_common_ldscript: add a test that checks if ROM_LEN is used
Trigger an overflow by 1 byte to detect in ROM_LEN is indeed used.
2018-08-11 11:33:43 +02:00
Gaëtan Harter
d9db258411
cortexm_common/ldscript: re-use _rom_offset variable name
Inspired by kaspar030 version to removing the new _boot_offset variable.

cbf324a66d/cpu/cortexm_common/ldscripts/cortexm.ld
2018-08-11 11:33:39 +02:00
Joakim Nohlgård
556d06d3bf tests/gnrc_netif: Fix -Wformat-overflow
Fixes the following error with GCC 7

main.c: In function 'test_netif_get_name':
main.c:1054:23: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
     sprintf(exp_name, "if%d", (int)netif);
                       ^~~~~~
main.c:1054:5: note: 'sprintf' output between 4 and 9 bytes into a destination of size 8
     sprintf(exp_name, "if%d", (int)netif);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-08-11 07:28:29 +02:00
Gaëtan Harter
67e3b3a8dd
Merge pull request #9761 from cladmi/pr/release/version
Makefile.include: Include VERSION file for release
2018-08-10 16:49:17 +02:00
Gaëtan Harter
5c9213dfc6
Makefile.include: Include VERSION file for release
When downloading the release archive and building an example, the RIOT_VERSION string is not set to "Version 2018.04" but to
    
    Version: UNKNOWN (builddir: /home/me/Downloads/RIOT-2018.04)

This allows sourcing a global VERSION file to manually set it before releases.
2018-08-10 16:15:56 +02:00
f617a29156
Merge pull request #9758 from smlng/pr/dist/pythonlibs
make: introduce common Python lib path
2018-08-10 14:50:20 +02:00
José Alamos
3436d34c04
Merge pull request #9757 from aabadie/pr/boards/doc_cleanup
boards*: documentation cleanup
2018-08-10 14:40:39 +02:00
4d141d4885 boards/frdm-kw41z: cleanup documentation
- Cleanup brief description to be consistent with other boards
- Move general documentation in doc.txt
2018-08-10 13:54:25 +02:00
1ffe438488 boards/jiminy-mega256rfr2: cleanup documentation
- Cleanup brief description to be consistent with other boards
- Move general documentation in doc.txt
2018-08-10 13:54:17 +02:00
5eb3cb0120 boards/native: cleanup documentation
Display brief description instead of link to the wiki
2018-08-10 13:54:17 +02:00
172942ce8c boards/common: cleanup documentation
Display brief description instead of copyright
2018-08-10 13:54:17 +02:00
0ee7bd2f90 boards/*: cleanup arduino-due and udoo doc
- display brief description instead of copyright
- add a reference to the 'real' documentation, otherwise it's empty
2018-08-10 13:54:17 +02:00
Peter Kietzmann
25a487e3a9
Merge pull request #9698 from smlng/pr/cc2538/spi
cpu/cc2538: refine periph/spi implementation
2018-08-10 12:30:18 +02:00
smlng
68a6ba8987 make: introduce common Python lib path
Introduce dist/pythonlibs directory to store RIOT python packages.
This directory is exported via PYTHONPATH by the build system to
make it commonly available.
2018-08-10 11:37:43 +02:00
smlng
d9c9c9479e cpu/cc2538: add debug output in periph/spi 2018-08-10 10:38:51 +02:00
smlng
e246c19fe1 cpu/cc2538: adapt periph/spi to gpio API
Rework SPI periph driver to use proper RIOT GPIO API functions.
    Also cleanup header files by using vendor defines and remove
    obsolete code. Further, adapt board config accordingly.
2018-08-10 10:38:51 +02:00
smlng
d8e2611ed9 cpu/cc2538: refine gpio_init_mux
Introduces a define to inidicate an unused function parameter.
2018-08-10 10:38:51 +02:00
Gaëtan Harter
feb3912c3d
Merge pull request #9741 from cladmi/pr/make/buildtest/override_redirection
makefiles/buildtests.inc.mk: allow overwriting make output redirection
2018-08-10 10:31:12 +02:00
smlng
990a76c80c pkg: update ccn-lite and adapt shell commands
This updates the ccn-lite package version which brings in the
    latest upstream fixes for some compiler issues found on macOS
    with clang and newer GCC versions.

    A minor adaption of the RIOT shell commands is also included.
2018-08-10 10:21:24 +02:00
Sebastian Meiling
513e3eca2f
Merge pull request #9522 from miri64/gnrc_ipv6_nib/enh/slaac-fallback
gnrc_ipv6_nib: fallback to SLAAC if ARO is ignored by upstream
2018-08-10 08:21:31 +02:00
Gaëtan Harter
60008cbb2e
Merge pull request #9751 from smlng/pr/make/info-build
make: add APPDIR to info-build target
2018-08-09 15:37:02 +02:00
smlng
ec2a0f9f81 make: add APPDIR to info-build target
While info-build already provides lots of useful information
    it does not print the application source dir. However this
    might be useful for debugging and logging, hence its added
    to the output.
2018-08-09 14:40:35 +02:00
Martine Lenders
8966f01d66
Merge pull request #9744 from cladmi/pr/tests/run_all_with_echo_true
tests: remove echo=False
2018-08-09 12:10:03 +02:00
MichelRottleuthner
2164c97441
Merge pull request #9746 from cladmi/pr/driver/sdcard_spi
drivers/sdcard_spi: fix uint64_t cast location
2018-08-09 11:07:09 +02:00
Martine Lenders
4f87883ab8 gnrc_ipv6_nib: fallback to SLAAC if ARO is ignored by upstream
Linux doesn't have ARO support at the moment so this is a workaround to
try to speak 6Lo-ND while still being able to do DAD with a border
router that doesn't.
2018-08-09 10:56:36 +02:00
Gaëtan Harter
939ca4e1bf
drivers/sdcard_spi: fix uint64_t cast location
When compiling `tests/drivers_sdcard_spi` with `avr-gcc: avr-gcc (GCC) 6.4.0`
it detected this error

    RIOT/drivers/sdcard_spi/sdcard_spi.c:1012:72:
    error: result of '512 << 10' requires 21 bits to represent, but 'int' only has 16 bits [-Werror=shift-overflow=]
    return (card->csd.v2.C_SIZE + 1) * (uint64_t)(SD_HC_BLOCK_SIZE << 10);
2018-08-09 09:12:23 +02:00
Gaëtan Harter
a081b485c1
tests/evtimer_underflow: run tests with echo=True by default 2018-08-09 07:13:25 +02:00
Gaëtan Harter
11d2cdb2ac
tests/cbor: run tests with echo=True by default 2018-08-09 07:13:12 +02:00
Gaëtan Harter
842bc88d4e
tests/evtimer_msg: run tests with echo=True by default 2018-08-09 07:12:50 +02:00