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

1780 Commits

Author SHA1 Message Date
bcb438a661
Merge pull request #9788 from cladmi/pr/edbg/flashbin
edbg.inc.mk: allow flashing with an offset in rom without erasing all ROM
2018-08-30 22:25:31 +02:00
5710fd89b7
Merge pull request #9398 from miri64/murdock/enh/llvm
murdock: also compile with LLVM/clang
2018-08-20 20:03:07 +02:00
Martine Lenders
9160b9cc0f murdock: also compile with LLVM/clang
There are two major reasons for this:

1. clang picks up different errors sometimes than GCC.
2. OSX support is hardened as it is usually the toolchain used there.
2018-08-20 16:02:24 +02:00
Gaëtan Harter
94f2a499a3
make: add LAZYSPONGE and LAZYSPONGE_FLAGS variables 2018-08-20 11:34:52 +02:00
e6776ae8d1
edbg.inc.mk: allow flashing with an offset in rom
Allow flashing with an offset in ROM from the rom base address.
It reuses `IMAGE_OFFSET` configuration variable name from `openocd.sh`.

This will allow flashing multiple images with different flash operations.
2018-08-16 16:49:16 +02:00
3af10a604e
edbg.inc.mk: do not erase the whole rom before flashing
This mimics openocd behaviour that only erase needed sectors of the rom.
2018-08-16 16:47:10 +02:00
Martine Lenders
6309df6301 makefiles/vars.inc.mk: add doc on TOOLCHAIN lists 2018-08-16 16:42:28 +02:00
Martine Lenders
0972082b8a make: provide toolchain support for buildtests 2018-08-16 16:42:28 +02:00
Martine Lenders
ac9311a47a makefiles/info.inc.mk: provide info targets about toolchain support 2018-08-16 16:42:04 +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
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
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
Gaëtan Harter
bfbc9c1c45
makefiles/buildtests.inc.mk: allow overwriting make output redirection
When running tests, I often needed to modify `buildtests.inc.mk` to see the
actual errors/standard output.
This allows overwriting the default redirection of both to `/dev/null`.
It is low level and directly given to the command execution.

As it is interpreted by make, it can even be overwritten using build system
variables:

    'BUILDTEST_MAKE_REDIRECT=>/tmp/buildtest.$${board}.out 2>&1'
2018-08-08 14:34:56 +02:00
Gaëtan Harter
3226918e17
newlib.mk: indent comments in conditionnal
Comments inside an if are usually also indented.
2018-08-02 17:06:54 +02:00
Gaëtan Harter
154d64ee47
newlib.mk: get NEWLIB_INCLUDE_DIR absolute and without trailing slash
It replaces

    make BOARD=iotlab-m3 info-debug-variable-NEWLIB_INCLUDE_DIR
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include/

with

    make BOARD=iotlab-m3 info-debug-variable-NEWLIB_INCLUDE_DIR
    /usr/arm-none-eabi/include

Without trailing slash and without relative '..' everywhere.

It also uses `realpath` instead of `abspath` to support Mingw32.
2018-08-02 17:06:51 +02:00
Gaëtan Harter
37a92c4c5e
newlib.mk: Windows/MSYS Bash support: use realpath instead of abspath
Some versions of Mingw32 abspath implementation has trouble working with
windows formatted path.

    $(abspath "C:/A/B") returns "/C/CUR/DIR/C:/A/B" instead of "/C/A/B"

relpath does not have this problem, it does additional symlink resolution but is
not a problem.
Note: on windows it does not remove the trailing `/`.

https://github.com/zephyrproject-rtos/zephyr/issues/2061#issuecomment-331635063

Patched in

941059c69f
2018-08-02 17:06:46 +02:00
Gaëtan Harter
3a4538ee76
newlib.mk: sanitize output before getting include path
Only keep lines that are indeed include path.
It also keeps newlines as they do not matter.

It fixes Mingw32 support where `grep '^\s'` is not working the same way.
It also handles some mac `sed` that do not support `\s`.

Ouput tested with:

    make -C examples/hello-world BOARD=samr21-xpro info-debug-variable-COMPILER_INCLUDE_PATHS
    # by also putting newlines for readability

Now:

    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include-fixed
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include

Before:

    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/cc1 -E -quiet -v -iprefix /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/ -isysroot /usr/bin/../arm-none-eabi -D__USES_INITFINI__ /dev/null
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/include-fixed
    /usr/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/include
2018-08-02 17:05:17 +02:00
Gaëtan Harter
18a4ccf315
newlib.mk: fix NEWLIB_INCLUDE_DIR not being set by PATTERNS
As NEWLIB_INCLUDE_DIR has already been set here, with an empty value, it is not
overwriting it because of the '?='.
2018-08-02 17:05:13 +02:00
Gaëtan Harter
a946c2c5bd
newlib.mk: fix: do not require slash terminated NEWLIB_INCLUDE_DIR
When NEWLIB_INCLUDE_DIR is set from other parts than 'COMPILER_INCLUDE_PATHS' it
does not have a trailing slash.
Also, it makes it more problematic when supplying it from the command line.

And anyway having two '/' does not break anything.
2018-08-02 17:05:10 +02:00
Martine Lenders
d4bdac7e5c
Merge pull request #9513 from cladmi/pr/make/llvm/nano
newlib.mk: llvm, fix newlib-nano header not used
2018-08-02 17:00:38 +02:00
Gaëtan Harter
e5c49aa486
makefiles/docker.inc.mk: allow overwriting 'docker' command
Not all users register their user in the docker group and should not run the
whole make process as root to use docker.

They can now overwrite DOCKER with `DOCKER="sudo docker"`.

Creating files as a user is correctly handled as `id -u` is still run as the
original user.
2018-07-26 14:30:39 +02:00
Gaëtan Harter
f8e1419a31
newlib.mk: llvm, fix newlib-nano header not used
In the previous state, with llvm and arm for example, newlib-nano include dir
NEWLIB_NANO_INCLUDE_DIR is placed after NEWLIB_INCLUDES and so the default
'newlib.h' is used instead of the nano version.
2018-07-25 14:29:51 +02:00
Gaëtan Harter
cde5a91a8a
toolchain/gnu: also define NM
llvm is defining NM already and `openthread` is using the symbol.
2018-07-23 17:29:55 +02:00
Gaëtan Harter
a99dd332cc
cflags.inc.mk: fix cflags test for llvm
gcc does an error but not clang, so add -Werror.
2018-07-19 18:59:20 +02:00
Joakim Nohlgård
3c23c95b6f
cflags: add -Wformat=2 -Wformat-overflow -Wformat-truncation 2018-07-18 15:29:06 +02:00
Martine Lenders
9f93745734
Merge pull request #9358 from gebart/pr/cflags-cleanup
makefiles/cflags.inc.mk: Use a template for CFLAGS testing
2018-07-18 14:11:49 +02:00
Gaëtan Harter
3cb57b68c2
Merge pull request #9502 from dylad/pr/update_edbg
dist/tools: update EDBG version
2018-07-12 22:14:02 +02:00
Joakim Nohlgård
843cec5cbd
makefiles/cflags.inc.mk: Use a template for CFLAGS testing 2018-07-10 16:51:29 +02:00
Joakim Nohlgård
a71ef652e7
makefiles/cflags.inc.mk: move excluded patterns out of conditional
The excluded patterns can always be defined as they only set `CFLAGS` that
should not be passed to `CXX`.

This prepares for replacing the cflags support detection by a function.
2018-07-10 16:48:37 +02:00
Joakim Nohlgård
be2169d587
makefiles/cflags.inc.mk: Remove WERROR duplicate handling
WERROR already sets -Werror so this is not necessary.
2018-07-10 16:47:42 +02:00
dylad
5341fc5ae5 makefiles/tools: add Makefile dependency to EDBG 2018-07-10 15:20:14 +02:00
Gaëtan Harter
fb10a181a0
make: Add 'BUILDDEPS' variable
BUILDDEPS are files / make targets that should be build before compiling.
It can include packages source download, generating headers, modules.

It is the equivalent of `APPDEPS` but not limited to the application.
It cannot be done right now with `APPDEPS` as it is used in `BASELIBS` and
fixing it requires changing mips using it for source files.
2018-07-06 18:56:33 +02:00
Gaëtan Harter
a62c8a84dd
pseudomodules: allow defining them in pkg/PKG/Makefile.include
Officially allow packages to define pseudomodules in their Makefile.include as
done in the libcose package.
2018-07-05 16:03:07 +02:00
Martine Lenders
0ef62b9690 gnrc_ndp: add support for building RDNSS option 2018-07-05 11:01:22 +02:00
4ea93f3aea
Merge pull request #8542 from OTAkeys/pr/at_oob
drivers/at: at out-of-band data support for at commands parser
2018-07-04 19:01:28 +02:00
Hauke Petersen
3ccb27d00d tools: add mosquitto.rsmb MQTT-SN broker 2018-07-04 11:36:57 +02:00
4e1f07b895
Merge pull request #8475 from aabadie/pr/common-stlink
boards/stm32: use common place of openocd config files for all boards using stlink
2018-06-28 15:13:48 +02:00
Gaëtan Harter
5e053bffe9
boards: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
Marian Buschsieweke
d208c224b0
drivers: Renamed module sht11 to sht1x
The sensor family SHT10, SHT11 and SHT15 only differ in their accuracy (as in
calibration, not as in resolution). Thus, the same driver can be used for all.
The new driver name better reflects this fact.
2018-06-27 08:57:58 +02:00
de15af4c87 boards/common/stm32-link: add common place for stlink
- introduce common place for boards using stlink: same serial, all use openocd
- apply this to nucleos
2018-06-26 20:45:23 +02:00
Sebastian Meiling
d0a3817cb8
Merge pull request #9394 from cgundogan/pr/newlib_includes
newlib: include fixes for newlib-nano
2018-06-26 19:29:28 +02:00
Vincent Dupont
3393888cea drivers/at: add URC registering and parsing feature 2018-06-26 10:03:10 -07:00
Cenk Gündoğan
db6cb1ac65 newlib: include fixes for newlib-nano 2018-06-26 15:45:54 +02:00
Joakim Nohlgård
b36afc3964 make: Clean up WERROR handling 2018-06-26 12:50:02 +02:00
Martine Lenders
a6a7357077 shell_commands: add command for packet buffer stats
I'm using something like this command for a while now for debugging
GNRC. Usually, I just patch it into the application I'm using it with,
but I think there is a benefit to also provide it to RIOT upstream
properly.
2018-06-22 09:51:17 +02:00
Gaëtan Harter
acef97aa15
Merge pull request #9243 from cladmi/pr/warning/missing_include_dirs
makefiles/cflags.inc.mk: add -Wmissing-include-dirs flag
2018-06-18 13:13:54 +02:00
Gaëtan Harter
2c9800d5d8
makefiles/vars.inc.mk: fixup indentation 2018-06-13 13:29:20 +02:00
Gaëtan Harter
08ff1b73a2
makefiles/cflags.inc.mk: add -Wmissing-include-dirs flag
Warn if a user-supplied include directory does not exist.
2018-06-12 14:08:33 +02:00
Toon Stegen
f1c53794fa Revert "newlib-nano: add include directory"
This reverts commit 88aaa62364.
2018-05-30 17:41:21 +02:00
kenrabold
7d1d5e77d8 cpu/fe310: add RISC-V cpu FE310
New CPU FE310 from SiFive based on RISC-V architecture

build: add makefile for RISC-V builds

Makefile for builds using RISC-V tools
2018-05-29 15:21:45 -07:00
ea4aa1e178
Merge pull request #9134 from aabadie/pr/makefiles/riottools
makefiles/tools: use RIOTTOOLS variable
2018-05-28 17:03:00 +02:00
Toon Stegen
88aaa62364 newlib-nano: add include directory
The newlib-nano include directory can be named either newlib-nano or
nano, so we should make sure it is added in both cases.
2018-05-27 07:13:16 +02:00
f04f954a21 makefiles/tools: use RIOTTOOLS variable 2018-05-15 11:29:33 +02:00
0b0fea9a2e
Merge pull request #9101 from cladmi/pr/make/add_debug_variable
makefiles/info.inc.mk: add a info-debug-variable-% target
2018-05-14 11:47:29 +02:00
9312a711bc cpu/cortexm: explicitly set -march=armv6s-m for crotexm0(plus)
Works around a regression in gcc 8.1.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85606.
2018-05-11 23:07:25 +02:00
Gaëtan Harter
e45194d301
mcuboot.mk: use RIOTTOOLS variable 2018-05-09 18:01:51 +02:00
Gaëtan Harter
bd29ac614d
makefiles/info.inc.mk: add a info-debug-variable-% target
Add a target to print an internal variable value.

Usage: make info-debug-variable-VARIABLENAME

Example:

    make info-debug-variable-ELFFILE
    /path/to/riot/examples/hello-world/bin/native/hello-world.elf
2018-05-08 18:19:03 +02:00
smlng
a83d53f2d9
make: add and export RIOTTOOLS directory
Replacing usage will come in further commits/PRs.
2018-05-03 15:56:00 +02:00
Josarn
1dd7ac0575 Makefile.include: add SIZEFLAGS 2018-04-27 12:23:06 +02:00
cladmi
3f145413f5 boards/makefiles: Remove '-Otype' from OFLAGS
* Remove '-Oihex' and '-Obinary' from OFLAGS for all boards
  It is now provided by the Makefile.include rule.
2018-04-09 17:32:46 +02:00
Hauke Petersen
108284670c net: added RD client for simplified registration 2018-04-09 10:37:10 +02:00
Hauke Petersen
49bd85d00a sys/net: added Skald
Skald is a very small and simple, TX-only BLE stack that supports
sending advertisements only. It is useful for building all kinds
of BLE beacons with very minimal memory footprints.
2018-04-06 11:18:53 +02:00
16ff8a51bd
Merge pull request #8795 from gebart/pr/newlib-rm-lnosys
newlib: link without -lnosys
2018-04-04 10:51:09 +02:00
Gaëtan Harter
b502637f60
Merge pull request #8509 from smlng/cmake/xcompile
pkg: fix cross compiling with cmake on macOS
2018-03-29 14:20:11 +02:00
58a0fd8eb6 murdock: add support for running tests on hardware 2018-03-28 18:28:54 +02:00
35c73c83d0 make: add test-murdock target 2018-03-28 18:28:42 +02:00
Gaëtan Harter
fff5810191 Makefile.include: FIX .DEFAULT_GOAL not being all
.DEFAULT_GOAL was reset many times which removed 'all' from being the default
goal.
By chance it was then set to `link` so was working by some magic.
2018-03-28 16:59:00 +02:00
smlng
069f920466 make: export RANLIB tool with prefix 2018-03-27 19:00:28 +02:00
Gaëtan Harter
72ddc72f2b make: cleanup HEXFILE/ELFFILE/BINFILE
* Use the existing variable when possible
* Remove duplicate definition
* Remove unused BINFILE variable
2018-03-27 16:02:48 +02:00
61f1b941ce make: replace curly braces with parenthesis 2018-03-22 20:43:15 +01:00
Joakim Nohlgård
2060492cf9 bindist: remove APPLICATION_MODULE duplicate
Fix APPLICATION_MODULE being duplicated in the command line during link.

This error is currently silently ignored by the linker.
2018-03-22 14:32:24 +01:00
Joakim Nohlgård
30f6f0033f newlib: No need to link with -lnosys 2018-03-18 09:58:17 +01:00
136ba53639 cpu/cortexm: move -mno-thumb-interwork from CFLAGS_CPU to CFLAGS
CFLAGS_CPU is used in ASFLAGS, but assembler doesn't know that
parameter. Moving to CFLAGS uses it only for the C compiler.
2018-03-14 21:27:14 +01:00
3a6a3b8b14 drivers/si114x: initial basic support 2018-03-08 14:07:28 +01:00
Gaëtan Harter
1c816a9601 info-build: add INCLUDES to the output
Add INCLUDES to the output of info-build
2018-03-01 15:21:16 +01:00
Francisco Acosta
2e066e8693
Merge pull request #8492 from cladmi/pr/prepend_app_module_by_application
makefiles: Add an APPLICATION_MODULE variable
2018-02-28 12:13:14 +01:00
Sören Tempel
55b026b349 Makefile.include: Introduce LINKXX variable
This variable can be used to specify the linker which should be used to
link C++ object files. This is needed in order to use g++ for linking
with TOOLCHAIN=llvm.
2018-02-21 12:26:20 +01:00
Sören Tempel
18f99ef708 makefiles: always link with gcc even if TOOLCHAIN is set to LLVM
Fixes #8356
2018-02-21 12:26:20 +01:00
28a0ffca37 tools: edbg: use for resetting 2018-02-16 15:32:58 +01:00
Joakim Nohlgård
0cf3f63b6f
Merge pull request #8292 from cladmi/pr/deprecated/feature_macros
makefiles/modules.inc.mk: remove setting deprecated FEATURE_PERIPH_ macros
2018-02-09 10:32:12 +01:00
3bfe4b6986 make: mcuboot: add MCUBOOT_ namespacing 2018-02-06 16:41:48 +01:00
Bas Stottelaar
e4d699ad46
Merge pull request #8471 from cladmi/pr/fix_tradfri_module_name_conflict
cpu/efm32: fix 'cpu' module name conflict
2018-02-01 08:41:03 +01:00
Gaëtan Harter
d724e71a26 makefiles: Add an APPLICATION_MODULE variable
Set the application module name with APPLICATION_MODULE.
The default module name is "application_$(APPLICATION)".

This should fix name conflicts where an application/test has the same name as
an existing module and so both write to the same archive.
2018-01-30 17:27:03 +01:00
Gaëtan Harter
a3bc341878 cortexm.inc.mk: allow configuring vectors.o path
This allows providing 'vectors.o' by another module than 'cpu' by overwriting
VECTORS_O variable.
2018-01-30 11:55:05 +01:00
Gaëtan Harter
5cbfb378a8 makefiles/vars.inc.mk: UNDEF fix variable doc
Despite its name, UNDEF are files that must be included during linking even if
the linker would not by default.
2018-01-26 19:38:51 +01:00
Hauke Petersen
09dab1a9fb drivers: add support for STM lis2dh12 accelerometer 2018-01-18 18:39:43 +01:00
b63412efa1 drivers: add rn2xx3 LoRa module driver 2018-01-18 10:46:54 +01:00
Gaëtan Harter
e554a19756 makefiles/modules.inc.mk: remove deprecated FEATURE_PERIPH_ macros
`#ifdef FEATURE_PERIPH_NAME` usage should now be replaced by
`#ifdef MODULE_PERIPH_NAME`.

This deprecation was started by pull requests #8226 and #8227.
2018-01-18 09:24:17 +01:00
4c4e10fb31 makefiles: add lora pseudomodule 2017-12-14 15:01:09 +01:00
Cenk Gündoğan
b6581289a2 pkg: ccn-lite: adapt to v2 2017-12-01 16:14:27 +01:00
3367840fa2 sys/net/nanocoap: use submodules 2017-12-01 12:55:45 +01:00
Hauke Petersen
a1d5e0fe13 make/info-global: adapt for common board folder 2017-11-30 10:26:36 +01:00
Martine Lenders
16e2829258
Merge pull request #7959 from antmicro/feature/renode-integration
makefiles: tools/renode: add support for Renode
2017-11-24 18:43:31 +01:00
Joakim Nohlgård
697f0b00f3 edbg: Use DEBUG_ADAPTER_ID to select which USB programmer to use 2017-11-17 10:03:05 +01:00
Joakim Nohlgård
57de166ea1 makefiles: Refactor openocd tool handling
Attempt to decouple board configuration from debugger interface
configuration by specifying the DEBUG_IFACE variable for the debug
hardware interface to use.
2017-11-17 10:03:05 +01:00
Xavier Clive
c6af3f733d make: Do not attempt to use color if the terminal cannot support it 2017-11-16 20:04:18 +01:00
86665b71bf cpu: adapt to COREIF_NG removal 2017-11-16 14:40:16 +01:00
3e4e3d261f sys/posix: factor inet_*to* from header into .c file 2017-11-15 23:01:56 +01:00
Peter Kietzmann
a2721c03c9 sys/od: add ASCII representation to memory dump 2017-11-14 09:22:02 +01:00
fd1b0bdea5 makefiles: docker: make docker call non-interactive
prevents "the input device is not a TTY"
2017-11-13 12:34:51 +01:00
Piotr Zierhoffer
b424274a72 makefiles: tools/renode: add support for Renode 2017-11-08 12:43:09 +01:00
e7646781e4 make: mcuboot: prefix mcuboot make targets 2017-11-07 12:44:38 +01:00
268e763d63 make: move mcuboot related stuff to makefiles/mcuboot.mk 2017-11-07 12:28:41 +01:00
Hauke Petersen
9c386716a9
Merge pull request #7241 from kaspar030/make_periph_use_submodules
make: use submodules for periph
2017-11-06 14:28:04 +01:00
Martine Lenders
0954dba17d
Merge pull request #6000 from kaspar030/add_event_system
sys: add asynchronous event system
2017-11-06 14:25:18 +01:00
0e09213e53 sys/event: initial commit of handler-based event system 2017-11-06 14:19:31 +01:00
3ec8126c84 cpu: cortexm: provide periph_pm for all cortexm 2017-11-06 12:01:19 +01:00
8965e9e26c make: make features available to Makefile.include 2017-11-06 12:01:19 +01:00
d69291c3a1 make: handle optional features in Makefile.dep 2017-11-06 12:01:19 +01:00
46d824b6b1 make: add Makefile.periph 2017-11-06 12:01:01 +01:00
c348a89c91 make: add NO_PSEUDOMODULES variable 2017-11-06 12:01:01 +01:00
6f43e98b95 drivers/si70xx: cleanup and use pseudomodules 2017-11-05 18:13:19 +01:00
66bd9b0295
Merge pull request #7809 from smlng/makefiles/fix_info_targets
makefiles: fix (and add) info targets
2017-11-02 16:10:14 +01:00
Joakim Nohlgård
b80cdd81d8
Merge pull request #7798 from kaspar030/fix_buildsizes_diff
make: fix info-buildsizes-diff
2017-10-30 07:41:19 +01:00
Francisco Acosta
a6cb09cfa6 Merge pull request #7783 from kYc0o/fix_cbor_arm
sys/cbor: fix compilation with newlib
2017-10-24 16:21:44 +02:00
Martine Lenders
af5760977d newlib: use RIOT dependency system for _GNU_SOURCE instead 2017-10-24 16:01:24 +02:00
smlng
de6691f523 makefiles: add targets for list of features provided and features required 2017-10-24 14:09:20 +02:00
smlng
fe1a99e1b1 makefiles: fix duplicate for missing features 2017-10-24 14:08:52 +02:00
bbae3f32c2 make: fix info-buildsizes-diff 2017-10-23 23:02:07 +02:00
Martine Lenders
e3e1abb368
make: prefix TERMINAL macro
Fixes #7767
2017-10-23 15:19:32 +02:00
0718898cc0 Merge pull request #7758 from haukepetersen/opt_make_termprog
make: tools: serial: allow for using picocom as term prog
2017-10-19 10:20:01 +02:00
Hauke Petersen
cd5fa2690e make.serial: allow for using picocom as term prog 2017-10-19 09:57:19 +02:00
Joakim Nohlgård
0ad0a39a40 makefiles: Split GDB settings from toolchain 2017-10-18 14:34:20 +02:00
Joakim Nohlgård
7713bede99 openocd: Refactor openocd.sh script
- Merge flash and flash-elf commands since they were identical except
  for the file name of the image
- Split GDB command from DBG environment variable to allow more easily
  configure front-ends for GDB via environment variables.
- Remove verbose tests of empty variables and replace by `: ${VAR:=default}`
- Remove passed command line arguments to sub-functions, they were
  unused in the functions anyway.
- Remove TUI variable, use `export DBG_EXTRA_FLAGS=-tui` to get the same
  result.
2017-10-18 14:34:20 +02:00
Vincent Dupont
be588c2f0e cpu/stm32_common: use pseudomodule for UART HW FC 2017-10-10 14:09:05 +02:00
Martine Lenders
d30216dcbe gnrc_ipv6_nib: add configuration pseudo-modules 2017-10-06 23:21:18 +02:00
e5fc70ae57 makefiles: cleanup indentation 2017-09-28 21:29:08 +02:00
625d2449d8 make: fix nproc for buildtest 2017-09-20 21:07:11 +02:00
daa277b36e make: refactor info- and buildtest targets 2017-09-14 13:15:53 +02:00
02e055fc81 make: include cpu Makefile.features from board Makefile.features 2017-09-14 13:15:52 +02:00
Hauke Petersen
27361a5c73 Merge pull request #6690 from lebrush/fix/export-features
make: fix export features
2017-09-08 11:35:21 +02:00
bc928eac17 Merge pull request #7507 from smlng/enh/makefiles
makefiles, build tests: omit recursive make
2017-09-08 11:13:52 +02:00
88433cba2f sys: random: make use of submodules in Makefile 2017-08-30 23:49:30 +02:00
b67751ae8a examples/bindist: some improvements 2017-08-29 18:04:00 +02:00
smlng
2c4a8c4f96 makefiles,buildtests: fix parameters for size command on macOS 2017-08-24 13:28:04 +02:00
smlng
a1c8a14705 makefiles,buildtests: omit recursive make 2017-08-24 13:27:07 +02:00
Hauke Petersen
09ab7cb0a8 make: allow for disabling colored compiler output 2017-08-07 10:20:30 +02:00
Joakim Nohlgård
da4f2f6e6e Merge pull request #6892 from neiljay/pr/mips-newlib-v2
cpu/mips: Integrate better with RIOT newlib layer (v2)
2017-07-20 00:27:51 +02:00
Joakim Nohlgård
ab9b0fd48b Merge pull request #7262 from haukepetersen/add_coloredgccoutput
gcc: add -fdiagnostics-color for native and arm
2017-07-20 00:20:58 +02:00
Francisco Acosta
1523186f99 Merge pull request #7209 from kYc0o/mcuboot_nrf52dk
Add MCUBoot linking options for RIOT images
2017-07-17 15:12:57 +02:00
kYc0o
e8c66a1ae3 makefiles/vars.inc.mk: export FLASH_OFFSET 2017-07-17 14:48:29 +02:00
kYc0o
76ae1a9c50 makefiles: add multislot support for mcuboot 2017-07-17 14:47:57 +02:00
Martine Lenders
d9bb94eff8 Merge pull request #7183 from miri64/gnrc_pktbuf/enh/fix-common-module
gnrc_pktbuf: move common auxiliary functions to common module
2017-07-15 17:07:26 +02:00
Hauke Petersen
2811adc092 cflags: add -fdiagnostics-color if supported 2017-07-10 16:32:23 +02:00
0ccc264538 drivers: initial implementation of sx127x radio (LoRa mode only) 2017-06-30 19:00:40 +02:00
Neil Jones
af70c0844c mips: Clean-up makefiles 2017-06-28 12:56:54 +01:00
Neil Jones
6c54360bae makefiles: Don't link libnosys for mips and put back -fdata-sections 2017-06-28 12:55:54 +01:00
Pieter Willemsen
29e8bd1351 sys: cbor: makefiles can enable cbor functionality
new cbor pseudomodules:
- cbor_ctime
- cbor_float
- cbor_semantic_tagging
2017-06-27 17:45:42 +02:00
067231936f Merge pull request #5793 from OTAkeys/pr/can_stack
can: add a CAN stack for RIOT
2017-06-26 16:02:35 +02:00
Martine Lenders
9d3f9f2589 Merge pull request #6402 from OTAkeys/pr/adcxx1c
drivers/adcxx1c: add ADC081C/ADC101C/ADC121C i2c adc support
2017-06-26 10:39:02 +02:00
smlng
f1f80c0098 drivers/adcxx1c: use pseudomodules for device variants 2017-06-26 09:46:09 +02:00
07b141e360 Merge pull request #7232 from aabadie/fix_bossa_options
makefiles/tools/bossa: remove duplicate info option and add erase option
2017-06-23 14:36:31 +02:00
Loïc Dauphin
220ed6558e makefiles: make -Werror flags dependent of WERROR 2017-06-23 14:11:08 +02:00
808bf10686 makefiles/tools/bossa: replace duplicate info option with erase 2017-06-23 11:55:40 +02:00
Vincent Dupont
ab5f8548f2 can: add conn_can top layer interface
This module provide support for raw can and isotp
socket-like user interface.
2017-06-19 15:36:20 +02:00
Vincent Dupont
5469ba1d49 can: add CAN stack
The CAN stack support only raw CAN at this time.
It contains a device interface (drivers/include/can/candev.h) and the data link
layer, build around can/device.c can/pkt.c and can/router.c. can/dll.c contains
the upper level and lower level interface to send and receive CAN frames.
Upper layer interface is located in include/can/raw.h
2017-06-19 15:35:26 +02:00
d69352a237 dist/tools: add dlcache.sh 2017-06-17 17:00:55 +02:00
Martine Lenders
d8336c38b6
gnrc_pktbuf: move common auxiliary functions to common module
The packet buffer was originally designed to have a replaceable
back-end. This is why the actual module is called `gnrc_pktbuf_static`.
However, since than some auxiliary functions snuck into the static
back-end, which should go into the common module (which is a
pseudo-module at the moment).

This fix makes the `gnrc_pktbuf` pseudo-module an actual module and
moves the auxiliary functions to that module.
2017-06-14 12:24:56 +02:00
biboc
ff235803f4 Sam0: fix edbg flash with serial number 2017-06-07 14:16:55 +02:00
4a852abd03 drivers/bmx280: factorize bme280 and bmp280 implementation 2017-06-02 14:54:17 +02:00
Joakim Nohlgård
91d930c574 cpu/mips32r2_common: ifdef __attribute__((optimize))
Causes compilation error on Clang
2017-06-02 10:24:44 +01:00
Joakim Nohlgård
b59a9cb667 cpu/mips32r2_common: Use GCC for assembler files if TOOLCHAIN=llvm
Some headers in the tool chain cause compilation errors with Clang in
assembly mode.
2017-06-02 10:24:43 +01:00
Joakim Nohlgård
14ec5237a1 cpu/mips: Integrate better with RIOT newlib layer
- Copied the relevant parts of mipshal.mk from the toolchain
 - Cleaned up CFLAGS and more in Makefile.include
 - Added empty syscalls implementation which can be used to interface
   with the UHI system
 - Added a note on why -std=gnu99 is necessary for this CPU presently
2017-06-02 10:24:43 +01:00
1a2097e97e Merge pull request #7082 from jia200x/openthread_core
pkg/openthread:  core and tests
2017-06-01 20:20:37 +02:00
José Ignacio Alamos
017280db13 pkg/openthread: add OpenThread core 2017-06-01 13:44:05 -04:00
Martine Lenders
b28a61d61c Merge pull request #6670 from gebart/pr/newlib-split-syscalls
newlib: Split newlib into one generic part and one default syscalls part
2017-06-01 12:02:01 +02:00
Hauke Petersen
c57d67fab8 Merge pull request #7073 from kaspar030/add_edbg_support
tools: add edbg support
2017-05-24 17:35:42 +02:00
d7d796b80d makefiles: add edbg tool support 2017-05-24 14:52:44 +02:00
6a9175944c dist: tools: add edbg 2017-05-24 14:52:44 +02:00
Hauke Petersen
2739354bab make/serial.inc.mk: set TERMFLAGS only if not set 2017-05-23 14:25:11 +02:00
8d3b7a28fc makefiles: openocd.inc.mk: make FLASHER overridable 2017-05-23 10:17:18 +02:00
0b918db35c Merge pull request #7068 from haukepetersen/add_tool_bossa
tools: introduce shared tooling for using BOSSA
2017-05-23 07:17:13 +02:00
Hauke Petersen
0d9ba806bc make/tools: added shared script+mk for using BOSSA 2017-05-22 11:42:01 +02:00
ee1e2af232 makefiles: add shared sam0 board makefile include 2017-05-19 00:50:40 +02:00
Hauke Petersen
fdadfe279c net: added link layer address filter module 2017-05-18 15:24:25 +02:00
Martine Lenders
13770361bb
net: remove conn API
conn was deprecated in 38217347. 3 Releases later and now that no module
is using it RIOT-internally anymore, I think it is time to say goodbye.
2017-04-28 15:23:54 +02:00
Victor Arino
173c1d504c make: export features 2017-04-10 09:06:47 +02:00
Joakim Nohlgård
b81b66672e newlib: Split newlib into one generic part and one default syscalls part 2017-04-05 13:55:38 +02:00
Martine Lenders
1caa024038 posix: remove fd subsystem
Fixes #637.

This only provides a subset of vfs while being incompatible with it.
Since POSIX sockets don't use this module anymore it can be removed.
2017-04-04 19:53:12 +02:00
Joakim Nohlgård
339a4da9dc Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00