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

239 Commits

Author SHA1 Message Date
Gaëtan Harter
61452669b9
Merge pull request #10038 from smlng/pr/make/buildoutdir
make: introduce common BUILD_DIR
2019-01-16 14:18:48 +01:00
Emmanuel Baccelli
209d90bc00
Merge pull request #10215 from kYc0o/pr/riotboot_multislot
riotboot: add multislot support
2019-01-15 19:04:28 +01:00
Gaëtan Harter
89d7e2ec33
cortexm.inc.mk: detect 'arm-none-eabi-gcc' from ubuntu bionic
arm-gcc version from ubuntu bionic repository is not supported in RIOT.
Both when building with `gnu` and `llvm`.

    arm-none-eabi-gcc --version
    arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620

So detect this version and print an error if found.

The check is done on the building machine and not on the host when building in
docker.

The error can be disabled when building with WERROR=0.
2019-01-10 13:27:22 +01:00
cladmi
ed1798634b makefiles/docker.inc.mk: handle 'build' directory
The 'build' directory should be created before starting docker.
If not it will be created as root.

Also add mapping for the directory in docker.

Currently create the directory in the target until there is a directory
creation target.
2019-01-07 21:16:36 +01:00
smlng
5b3d26453a make: introduce BUILDOUT_DIR
This introduces a new environment variable for a common directory
that holds all output of the build process, such as application or
package binaries. This would also allow to easily redirect output
to any other location, e.g. for out-of-source builds.
2019-01-07 21:16:36 +01:00
Martine Lenders
fcc57ddd04 gnrc_sixloenc: introduce pseudo-module 2019-01-04 13:29:47 +01:00
Vincent Dupont
06f0c14460 cortexm_common: enable FPU on cortex-m4f 2019-01-03 15:24:20 +01:00
Francisco Acosta
8a0a0be426 riotboot: allow to overwrite slot 1
By erasing slot 1 header the slot gets invalidated.
This is very useful while debugging, since we can
force the bootloader to ignore anything on that
slot.
2019-01-02 17:56:11 +01:00
Francisco Acosta
ec24ea49b1 riotboot: add support for multislot
riotboot looks for valid, available slots and compares its
version. The slot with the highest version is booted, otherwise
if no valid slot is found it loops on `while(1);`
2019-01-02 17:56:11 +01:00
f5170bb82c dist/tools/pyocd: provide support for PyOCD programmer 2018-12-21 14:56:26 +01:00
Schorcht
74e1ab220c drivers: add driver for CCS811 gas sensor 2018-12-20 12:42:44 +01:00
Francisco Acosta
281d8084bf riotboot: add riot-based minimal bootloader
riotboot is introduced here and makes use of riotboot_hdr,
which indentifies the images encapsulated as slots.
The slot size and offset is configurable, which makes
slots extendable if needed, e.g. 2 or more slots can be
transparently added.

Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Gaëtan Harter <gaetan.harter@fu-berlin.de>
2018-12-18 19:31:35 +01:00
Gaëtan Harter
5a2609c573
Merge pull request #10439 from jcarrano/ensure-value
makefile/utils: Add a function for checking that a string is not empty.
2018-12-07 19:17:37 +01:00
Juan Carrano
f466171053 makefiles/utils: add tests for checks.mk.
make -f test-checks.mk test-ensure_value should succeed, while
make -f test-checks.mk test-ensure_value-negative should fail.
2018-12-07 18:19:38 +01:00
Juan Carrano
547d9f0802 makefiles/utils: Add a function for checking that a string is not empty.
A call to `$(ensure_value x,y)` will fail with message y if x is empty, and
otherwise return x. This can be useto write more compact makefiles, while still
producing friendly error messages.
2018-12-07 18:19:34 +01:00
Juan I Carrano
d505b01d71
Merge pull request #10568 from smlng/pr/make/docker
makefiles/docker: fix mounting localtime on OSX
2018-12-07 15:52:17 +01:00
Sebastian Meiling
cae865e71e make/docker: adapt mount of localtime
Mounting `/etc/localtime` directly does not work on macOS (anymore).
However, by resolving the symlink to its real path docker can handle
the mount.
2018-12-07 14:00:19 +01:00
Juan I Carrano
25e165ef5b
Merge pull request #10550 from smlng/pr/docker/riot_submodule
make: fix BUILD_IN_DOCKER when RIOT is submodule
2018-12-06 11:52:40 +01:00
49aa583ab1
Merge pull request #10539 from cladmi/pr/make/openocd/flashfile_from_cli
openocd: get flash and debug files from cli
2018-12-05 20:32:54 +01:00
smlng
ae5608ab7f make: use abspath for worktree mount in docker 2018-12-05 20:28:12 +01:00
Gaëtan Harter
fb65d37b02
Merge pull request #10492 from jcarrano/mcuboot-builddeps-fix
mcuboot.mk: Add mcuboot targets to BUILDDEPS.
2018-12-05 17:35:39 +01:00
Juan Carrano
46da35ecff mcuboot.mk: make mcuboot targets depend on clean.
When doing `make -j clean all' the directories can be cleaned after
files are made. To ensure files are created after clean, those targets
are made conditionally dependent on the clean target.

This copies the handling done in Makefile.include.
2018-12-05 16:49:59 +01:00
Gaëtan Harter
a0b97ad737
openocd: get flash and debug files from cli
Get FLASH_FILE and ELFFILE from command line instead of environment variable.

The documentation was claiming ELFFILE was given as a command line argument
already, but is was not.
2018-12-05 16:21:03 +01:00
Juan Carrano
e666c3864c eclipse.inc.mk: Split eclipse support into it's own file.
To keep Makefile.include clean and to be consistent with other tools,
the Eclipse IDE support is put in a separate file.
2018-12-05 15:22:42 +01:00
90db0bf253
Merge pull request #10253 from kYc0o/pr/riot_hdr
sys: add riotboot_hdr module
2018-12-04 09:44:45 +01:00
Francisco Acosta
00adbd69f6 sys: add riotboot_hdr submodule
riotboot_hdr enables to partition the internal flash memory
into "slots", each one with a header providing information
about the partition. The concept for now is limited to
firmware partitions, which are recognised by the riotboot
bootloader. In the future the concept might be extended to
represent other content.

Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2018-12-03 23:58:45 +01:00
cladmi
5fcc1210d9
jlink: get flash and debug files from cli
Get BINFILE and ELFFILE from command line instead of environment variable.

Rename 'HEXFILE' to 'BINFILE' in the script as the binary file is used.
The documentation was already talking about 'BINFILE' but 'BINFILE'
was never exported by the build system and it was using 'HEXFILE' in the
implementation.
2018-11-27 15:28:49 +01:00
Gaëtan Harter
79b0a5500e
Merge pull request #10391 from cladmi/pr/make/scan_build_integration
makefiles/scan-build: separate scan-build-analyze and make it produce an error
2018-11-22 15:22:36 +01:00
Juan Carrano
3393dafe82 sys/crypto: configure AES via pseudomodules.
USEMODULE += crypto_aes_precalculated enables the precalculated T tables (the old
code).
USEMODULE += crypto_aes_unroll causes loops to be unrolled.
2018-11-15 18:25:26 +01:00
Gaëtan Harter
50f58bfb07
makefiles/scan-build: Produce an error when doing 'scan-build-analyze'
This makes doing 'scan-build-analyze' produce an error at execution if
WERROR=1.

When used from `scan-build` it will not procude an error to display the result
webpage.
2018-11-14 14:18:31 +01:00
Gaëtan Harter
ea3c1661f3
makefiles/scan-build: Fix 'scan-build-analyze' target
This correctly defines a `scan-build-analyze` target that does not display the
result webpage.

`scan-build-view` has now been moved to a private target as should not
be used directly.

The handling of displaying the page on the host system and implementing
'scan-build-analyze' are now explicitely done with separate targets and
not double implemented target when in docker or on the host that were executed
twice with different implementations.
2018-11-14 14:16:35 +01:00
Gaëtan Harter
bcf292b3d4
makefiles/scan-build: Remove un-necessary ';' 2018-11-14 13:06:16 +01:00
Gaëtan Harter
e3b50a6bf8
makefiles/scan-build: Provide a per board scan-build output
Update the SCANBUILD_OUTPUTDIR to be per board.
Also remove un-necessary export and 'CURDIR'.
2018-11-14 13:02:06 +01:00
Gaëtan Harter
bba88065ac
makefiles/scan-build: make RIOT_CI_BUILD visible to scan-build
This is required to have reference builds context using the right
RIOT_VERSION_OVERRIDE=buildtest.
2018-11-14 13:01:09 +01:00
Martine Lenders
30dc2d91e1
Merge pull request #10203 from haukepetersen/opt_nimble_versioning
pkg/nimble: bump version to current master
2018-11-08 14:07:45 +01:00
Hauke Petersen
af57afe3ac pkg/nimble: bump version to current master 2018-11-08 12:40:48 +01:00
Gaëtan Harter
61a3e5d685
makefiles/docker.inc.mk: handle building in git worktree
When building from a worktree, the common git directory was not mounted
in docker.

This lead to the version not being set and issues with git-cache in
ubuntu bionic that could not execute the 'git hash-object' command.
2018-10-30 19:21:12 +01:00
danpetry
99ae495226
Merge pull request #10011 from leandrolanzieri/pr/drivers/ds18
drivers/ds18: Add Maxim Integrated 1-Wire temperature sensor driver
2018-10-25 17:26:10 +02:00
Frits Kuipers
8b8790c18f drivers/ds18: Add Maxim Integrated ds18 driver
tests/driver_ds18: Add test application for DS18B20 sensor.

tests/driver_ds18: Add whitelist of boards
2018-10-24 16:02:05 +02:00
cladmi
e9557a6242
makefiles/buildtests.inc.mk: fix 'clean-intermediates' not cleaning
`clean-intermediates` should be done per board. Without this it only
tries to clean the default board.
2018-10-24 11:38:10 +02:00
Gaëtan Harter
c60324744c
docker: Use system GIT_CACHE_DIR if available
If GIT_CACHE_DIR is a directory make it available to docker.
This will allow using the system git_cache also in the docker container.
2018-10-23 15:01:43 +02:00
Gaëtan Harter
357a4a0db9
makefiles: make the build system aware of GIT_CACHE_DIR
Currently the default value was set by `dist/tools/git/git-cache`.
This moves/duplicates the default value in the build system.
2018-10-23 15:00:47 +02:00
Hauke Petersen
18cc7ee3ed net/rdcli: rename to cord_ep 2018-10-17 15:21:49 +02:00
Hauke Petersen
226b9fa383 net/rdcli_simple: rename to cord_epsim 2018-10-17 15:21:49 +02:00
9f390f19c6
Merge pull request #10059 from miri64/pkg/enh/lwIP-2.1
lwip: Bump version to v2.1.0
2018-10-16 17:10:26 +02:00
cladmi
1802e775ad
llvm.inc.mk: completely replace detection of GCC includes
This completely removes the hardcoded/os specific path setting for includes.
It directly queries gcc include directories.

It takes what was already done by `makefiles/libc/llvm.inc.mk`.

I replaced the `GCC_MULTI_DIR` handling by givining `CFLAGS_CPU` when
searching for include directories.
`CFLAGS` cannot be used as it will crash when `-target $(CPU_ARCH)` is
added.
It currently requires using deferred variables as `CFLAGS_CPU` can be
overwritten later in the build process.
2018-10-16 12:50:01 +02:00
Martine Lenders
620befe9ea lwip: move lwIP PSEUDOMODULES to pkg's Makefile.include 2018-10-15 21:40:31 +02:00
cladmi
089265f4aa
makefiles/vars.inc.mk: export CXXINCLUDES
It is used by Makefile.base so should be exported globally even if only
defined by `llvm.inc.mk` for the moment.
2018-10-15 21:00:20 +02:00
83be0314be makefiles/pseudomodules: define vcnl40x0 sensor types 2018-10-15 11:44:04 +02:00
Sebastian Meiling
41c8c1e863
Merge pull request #10054 from toonst/fix/make_column_position
make: fix info-objsize column name position
2018-10-15 09:28:00 +02:00