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

339 Commits

Author SHA1 Message Date
Gaëtan Harter
9cccc30262
Makefile.features: declare FEATURES_USED and make use of it
Put the definition of `FEATURES_USED` in common and use the variable
instead of duplicating code.

This required defining 'FEATURES_OPTIONAL_ONLY|USED' to not overwrite
the value of 'FEATURES_OPTIONAL' as was done before.

Also add 'FEATURES_OPTIONAL_MISSING' to list optional features that were
not included as not provided.

This removes the need to print FEATURES_MISSING with the optional
features too.
2019-05-28 19:22:02 +02:00
Gaëtan Harter
e1c60ead36
Makefile.features: declare FEATURES_MISSING and make use of it
Put the definition of `FEATURES_MISSING` in common and use the variable
instead of duplicating code.
2019-05-28 19:21:53 +02:00
Gaëtan Harter
700b5fb835
makefiles: Update FEATURES_OPTIONAL meaning
Update the FEATURES_OPTIONAL meaning to be more in line since
FEATURES_USED is defined. Handle FEATURES_OPTIONAL as a configuration from
the BSP/build that should not be changed anymore after.

`FEATURES_OPTIONAL` are by definition optional so are not supposed to
cause a build to fail.
Only the 'REQUIRED' ones that are not 'PROVIDED' are 'MISSING'.

* Do not change FEATURES_OPTIONAL to remove REQUIRED features
  * Prepare for having a different variable for the previous value
* Update dependency resolution/info-build as FEATURES_OPTIONAL cannot be missing
2019-05-28 19:21:53 +02:00
e80fccaf50
Merge pull request #11511 from gdoffe/scanf_float
sys: add pseudomodule scanf_float
2019-05-28 18:23:43 +02:00
Gaëtan Harter
dedbe9c737
Merge pull request #11554 from cladmi/pr/make/exports/remove_flash_debug_reset
make: remove exports for flash debug reset
2019-05-28 18:15:03 +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
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
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
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
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
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
Thomas Perrot
b63121c588
board: add support for arduino-leonardo 2019-05-24 15:12:47 +02:00
Juan I Carrano
cbc08edcd1
Merge pull request #11358 from fjmolinas/riot-cortexm-address-check
cpu/cortexm_common: function to check address validity
2019-05-13 11:50:48 +02:00
Oleg Artamonov
a5ce6deb02 cpu/cortexm_common: function to check address validity 2019-05-13 09:35:34 +02:00
a9f1a85f10
Merge pull request #11310 from OTAkeys/make_uart_stdio_rx_optional
sys: make uart_stdio RX optional (attempt #2)
2019-05-09 13:32:05 +02:00
Martine Lenders
c50eebe8d3
Merge pull request #11385 from kaspar030/docker_export_boards
makefiles/docker: export BOARDS
2019-05-06 13:48:50 +02:00
Gaëtan Harter
7d326e663b
Makefile.features: add a common file for the features parsing
This will allow sharing it between Makefile.include and
makefiles/info-global.inc.mk.

Also some common variables definition can also be moved to here.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-05-02 17:45:51 +02:00
2c1091da54
makefiles: add bootloaders to the list of applications 2019-04-23 14:29:50 +02:00
ca12999e2d makefiles/docker: export BOARDS
This enables "BUILD_IN_DOCKER=1 BOARDS='foo bar' make buildtest".
Without this line, when executed with BUILD_IN_DOCKER, "make buildtest"
would always build all boards.
2019-04-12 09:19:17 +02:00
002057f918 sys: make uart_stdio RX optional 2019-04-11 14:26:45 +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