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

319 Commits

Author SHA1 Message Date
2c1091da54
makefiles: add bootloaders to the list of applications 2019-04-23 14:29:50 +02:00
14f47bf220
Merge pull request #10695 from aabadie/pr/drivers/lpsxxx
drivers/lpsxxx: refactor lps331ap and add support for lps25hb + lps22hb
2019-03-29 10:54:08 +01:00
Gaëtan Harter
29ada72a9e
Merge pull request #11254 from cladmi/pr/make/openocd/flashfile
makefiles/openocd.inc.mk: use FLASHFILE
2019-03-28 11:56:59 +01:00
Hauke Petersen
840c8aeba2 cord/epsim: remove standalone submodule 2019-03-27 18:26:37 +01:00
Gaëtan Harter
ff13208751
riotboot: remove compatibility for ELFFILE as file to flash
Openocd boards are now updated.
2019-03-26 19:26:42 +01:00
Gaëtan Harter
0be610558d
boards/openocd: use FLASHFILE for boards using openocd
Update to use FLASHFILE as file to be flashed on the board.
2019-03-26 19:26:42 +01:00
Gaëtan Harter
6e7982bf08
makefiles/boot/riotboot.mk: fix unrelated introduced change
This change was introduced by mistake by the `edbg` refactoring. This
restores the original value for openocd.
2019-03-26 16:36:16 +01:00
Gaëtan Harter
d4775ccf96
riotboot: remove compatibility for HEXFILE as file to flash
It is now the case for `edbg`.
Openocd support still needs special handling.
2019-03-26 13:35:04 +01:00
Gaëtan Harter
72bc21c0de
makefiles/edbg.inc.mk: use FLASHFILE
Update to use FLASHFILE as file to be flashed on the board.
2019-03-26 13:35:04 +01:00
Marian Buschsieweke
6b0082bb3f
shell: Add command i2c_scan
Add a trivial shell program that scans for all slaves on an I2C bus by iterating
all of the possible 127 I2C addresses and checking for the ACK of the device.
2019-03-25 14:10:04 +01:00
7c285eb186
drivers/lpsxxx: add support for lps22hb 2019-03-20 14:43:37 +01:00
1f4dee90a1
drivers/lpsxxx: unify lps331ap and lps25h drivers 2019-03-20 14:43:36 +01:00
Martine Lenders
4ee4625f39
Merge pull request #10357 from jcarrano/posix_headers-module
sys/posix: make posix module provide only headers.
2019-03-20 14:07:12 +01:00
Juan Carrano
6b766c3cd3 sys/posix: make posix module provide only headers.
The build system contains several instances of
 INCLUDES += -I$(RIOTBASE)/sys/posix/include

This is bypassing the module management system, by directly accesing
headers without depending on a module. The module is the posix module.

That line is also added when one of the posix_* modules is requested.

According to the docs, the posix module provides headers only, but in
reality there is also inet.c.

This patch:

- Moves `inet.c` into `posix_inet`, leaving `posix` as a headers-only
  module.
- Rename `posix` as `posix_headers` to make it clear the module only
  includes headers.
- Makes `posix_*` modules depend on `posix_headers`, thus removing the
  explicit `INCLUDES+=...` in `sys/Makefile.include`.
- Ocurrences of `INCLUDES+=...` are replaced by an explicit dependency
  on `posix_headers`.
2019-03-20 12:57:13 +01:00
Sebastian Meiling
29f7cd2840
Merge pull request #11198 from cladmi/pr/make/uniflash/updates
makefiles/tools/uniflash.inc.mk: add a common configuration for using UniFlash
2019-03-18 14:25:52 +01:00
fb2c7eaec4
Merge pull request #11181 from kaspar030/add_riotboot_flashwrite
riotboot: add riotboot_flashwrite module
2019-03-18 11:15:25 +01:00
Gaëtan Harter
239d8a959d
makefiles/uniflash.inc.mk: update FFLAGS to use FLASHFILE
Update to use FLASHFILE as file to be flashed on the board.
2019-03-15 16:24:32 +01:00
Gaëtan Harter
6b904f5f3e
makefiles/uniflash.inc.mk: update xds110reset path
In UniFlash 4.4.0 the directory where 'xds110reset' is changed.
Try to use the newest one available. If none is found in UNIFLASH_PATH,
try to use one from the PATH to be sure to have a value.

./uniflash_4.1/simplelink/gen2/bin/xds110reset
./uniflash_4.3.0/simplelink/gen2/bin/xds110reset
./uniflash_4.4.0/simplelink/imagecreator/bin/xds110reset
./uniflash_4.5.0/simplelink/imagecreator/bin/xds110reset
2019-03-15 16:12:34 +01:00
Gaëtan Harter
f7ec4b7c8a
makefiles/uniflash.inc.mk: add common uniflash flasher
Put the uniflash flasher in common.
2019-03-15 15:53:58 +01:00
a15f07b04b riotboot: move slot variables to sys/riotboot/Makefile.include 2019-03-15 12:32:50 +01:00
Gaëtan Harter
78fcad5bf3
Merge pull request #11190 from cladmi/pr/make/flashfile/avrdude
tools/avrdude.inc.mk: use FLASHFILE variable
2019-03-15 11:37:01 +01:00
Gaëtan Harter
9bf7d5bb1a
tools/avrdude.inc.mk: use FLASHFILE variable
Update to use FLASHFILE as file to be flashed on the board.
2019-03-14 18:16:43 +01:00
bee2f0bcc7
Merge pull request #11180 from kaspar030/riotboot_use_epoch_as_default_version
riotboot: use epoch as APP_VER default
2019-03-14 16:01:00 +01:00
09a40fb6fc riotboot: use epoch as APP_VER default 2019-03-14 12:04:56 +01:00
Francisco Acosta
0f4e51d543
Merge pull request #11130 from cladmi/pr/make/flashfile/jlink
makefiles/tools/jlink.inc.mk: use FLASHFILE
2019-03-14 12:01:02 +01:00
Francisco Acosta
de720730f6
Merge pull request #11127 from bergzand/pr/nrf52/ref_ldscripts
nrf52: use cortexm.ld script when applicable
2019-03-13 19:41:13 +01:00
Emmanuel Baccelli
8969fd32e9
Merge pull request #11080 from kaspar030/add_pyboard
boards: add pyboard v1.1 support
2019-03-13 17:07:40 +01:00
Gaëtan Harter
a3df00ca17
makefiles/mcuboot.mk: remove compatibility with old ldscript
Linkerscript for `nrf52dk` has been updated to use `cortexm.ld` so does
not need the configuration anymore for the removed
`cpu/nrf52/ldscripts/nrf52832xxaa.ld`.
2019-03-13 11:57:45 +01:00
Gaëtan Harter
1e1611c50a
makefiles/mcuboot.mk: prepare for using cortexm.ld
Prepare mcuboot for changing `nrf52` to use `cortexm.ld`. It sets the
offset for linking the image.
2019-03-13 11:57:40 +01:00
Juan I Carrano
f7cdbdaab0
Merge pull request #11145 from kaspar030/test_newlib_nano_path_empty
make: newlib: check if newlib nano folder was found
2019-03-11 14:55:10 +01:00
Juan I Carrano
265a118841
Merge pull request #11109 from cladmi/pr/make/refactor/modules.inc.mk
makefiles/modules.inc.mk: refactoring
2019-03-11 13:10:18 +01:00
891580aba7
sys/auto_init: add support for periph_temperature 2019-03-08 21:14:22 +01:00
87326c7b77 make: newlib: check if newlib nano folder was found 2019-03-08 18:47:23 +01:00
Kevin "Bear Puncher" Weiss
e33e7bf159
Merge pull request #9646 from cladmi/pr/make/docker/fix_relative_build_directory
makefiles/docker.inc.mk: Use directories in RIOT when possible
2019-03-08 09:48:13 +01:00
Gaëtan Harter
4c860f3218
makefiles/mcuboot: remove compatibility for HEXFILE to flash
JLink flasher used by the only supported board `nrf52dk` has been updated.

FLASHFILE must now be defined by the board to use this in case a new one
wants to be supported.
2019-03-07 16:18:40 +01:00
Gaëtan Harter
034e4ff32c
makefiles/jlink.inc.mk: use FLASHFILE
Update to use FLASHFILE as file to be flashed on the board.
2019-03-07 16:18:38 +01:00
Gaëtan Harter
0514de233d
makefiles/mcuboot: prepare for when FLASHFILE is used
Prepare to keep working when `FLASHFILE` is used for the FLASHER.
2019-03-06 17:07:35 +01:00
Gaëtan Harter
411e98e55e
Merge pull request #11110 from jcarrano/flash_canned_recipe_conversion
riotboot,mcuboot: Use canned recipe for flashing.
2019-03-06 16:50:43 +01:00
Gaëtan Harter
8d58e3bf91
makefiles/modules.inc.mk: refactor, do not overwrite NO_PSEUDOMODULES
Refactor to define REALMODULES incrementally without overwriting
'NO_PSEUDOMODULES'.

This also allows an external makefile to maybe add something there if it really
needs to.
2019-03-05 16:04:20 +01:00
Gaëtan Harter
5453523933
makefiles/modules.inc.mk: group CFLAGS handling
Put all lines related to CFLAGS handling together.
2019-03-05 15:57:18 +01:00
Gaëtan Harter
c2b1995af7
makefiles/modules.inc.mk: factorize in _ALLMODULES
Factorize the reused value in a private variable.

I define it private as somehow 'USEPKG' is supposed to be removed so the
variables can be removed later.
2019-03-05 15:54:05 +01:00
Gaëtan Harter
b6645b531b
makefiles/modules.inc.mk: do not export BASELIBS
BASELIBS is used only in the main Makefile.include or included files.
As it is not used in sub make executions or scripts it does not need to
be exported.
2019-03-05 15:52:38 +01:00
Gaëtan Harter
670a836863
makefiles/modules.inc.mk: do not export USEMODULE
USEMODULE is already exported by `makefiles/vars.inc.mk`.
2019-03-05 15:45:08 +01:00
Juan Carrano
420b2c9220 makefiles/mcuboot: use canned recipe for flashing.
The canned recipe is preferred to using $(FLASHER) $(FFLAGS) as it
allows to specify additional action actions (like what preflash is
currently doing.)
2019-03-05 14:45:48 +01:00
Juan Carrano
748bc6deee makefiles/riotboot: use canned recipe for flashing.
A canned recipe had previously been defined to perform the flashing
procedure. The canned recipe is preferred to calling $(FLASHER) $(FFLAGS)
as there might be additional steps involved in flashing (this is handled by
preflash currently but with the canned recipe we will be able to fix it.)
2019-03-05 14:39:57 +01:00
Benjamin Valentin
6e7414e220 makefiles/tools: Automatically detect gdb-multiarch
Modern versions of GDB support multiple targets with the same gdb binary.
At least Ubuntu and Debian have dropped the gdb-arm-none-eabi package in favour
of gdb-multiarch.
Here, no $(PREFIX)-gdb binary is availiable, instead gdb-multiarch should be used.

This patch tries to automatically detect the presense of gdb-multiarch and uses it
instead of arm-none-eabi-gdb.
2019-03-05 14:31:22 +01:00
Gaëtan Harter
7a88bb4c1f
riotboot: prepare for when FLASHFILE is used
This currently does nothing but setting FLASHFILE when flashing.
This will allow passing the variable when flasher will use the FLASHFILE
variable.
2019-03-05 12:04:15 +01:00
Gaëtan Harter
240e4a3fe2
makefiles/riotboot.mk: slots only need to depend on BASELIBS
Using 'link' was working too but will introduce a circular dependency
when FLASHFILE is one of the slot files.

This trims down to the minimal required dependency to work. It is now
the same as `ELFFILE` dependencies.
2019-03-05 11:22:11 +01:00
5355f6a7be
Merge pull request #11062 from jcarrano/picocom-no-echo
serial.inc.mk: disable local echo in picocom.
2019-03-05 09:58:59 +01:00
Gaëtan Harter
7467d1be75
makefiles/murdock.inc.mk: do not overwrite FLASHFILE if set
If FLASHFILE is set keep the original value.

It changes the variable from an immediate to a deferred variable but if
murdocks keeps working there is no issue.
2019-03-04 15:52:35 +01:00