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

227 Commits

Author SHA1 Message Date
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
Hauke Petersen
9acce40aad net: added full RD endpoint implementation 2018-10-12 14:41:40 +02:00
Vincent Dupont
515d3a658b cpu/mips: use gnu99 by default 2018-10-04 08:48:43 +02:00
Vincent Dupont
192e79b175 cpu/msp430: use gnu99 by default 2018-10-04 08:48:43 +02:00
PeterKietzmann
b7615e9e1b sys/ecc: remove separate hamming256 folder 2018-09-28 08:53:25 +02:00
Toon Stegen
bd77f9822d make: fix info-objsize column name position 2018-09-27 14:10:33 +02:00
Sören Tempel
e523e8f5ec sys/cbor: remove module
Fixes #7707
Fixes #7800
2018-09-25 21:07:29 +02:00
cladmi
8a78355482
edbg.inc.mk: handle IMAGE_OFFSET being defined with a space
Handle that `IMAGE_OFFSET` can be set to something that contain spaces.

With 'IMAGE_OFFSET=$$((0x1000 + 0x1000))' we had in the command line when doing
'flash'

    --offset $((0x1000 --offset + --offset 0x1000))

With the change we correctly have

    --offset $((0x1000 + 0x1000))
2018-09-18 18:28:19 +02:00
Gaëtan Harter
eab9757d62
makefiles/docker.inc.mk: export RIOT_CI_BUILD to docker
The variable was not given to docker before and as it is setting
'RIOT_VERSION_OVERRIDE=buildtest' it helps testing in docker more
consistently.
2018-09-06 16:52:43 +02:00
de64a85b74 makefiles: app_dirs.inc.mk initial commit
This helper Makefile is supposed to unify finding folders with
applications that can be built.
2018-09-05 12:03:09 +02:00
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