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
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