Benjamin Valentin
d765098d72
sys/auto_init: allow delayed initialisation of gnrc_netif
...
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
6dd79366bb
sys: add ztimer subsystem
...
Co-authored-by: Joakim Nohlgård <joakim.nohlgard@eistec.se>
2020-03-04 12:44:02 +01:00
95d607b54d
Merge pull request #13480 from aabadie/pr/tools/openocd_export_variables
...
tools/openocd: export configuration variables only to required targets
2020-03-03 18:16:05 +01:00
b7f5b18991
boards: don't export ROM_OFFSET variable
2020-03-03 14:18:03 +01:00
1df314d25e
makefiles/openocd-adapters: don't export OPENOCD_ADAPTER_INIT
2020-03-03 11:42:20 +01:00
54dbb5fce0
makefiles/openocd: export OPENOCD_ADAPTER_INIT to required target
2020-03-03 11:42:20 +01:00
f1ba22534a
boards: don't export globally OPENOCD_RESET_USE...
2020-03-03 11:42:19 +01:00
5ba95ed857
makefiles/openocd: export OPENOCD_RESET_USE... to required targets
2020-03-03 11:42:19 +01:00
ef8daaf7be
suit: remove moran-v4 version of the parser
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-02-26 14:54:16 +01:00
benpicco
aa1c23d4bd
Merge pull request #11929 from fabian18/driver-at24cxxx-eeprom
...
Driver for AT24CXXX EEPROM
2020-02-25 18:16:45 +01:00
f451eb692c
Merge pull request #13452 from aabadie/pr/tools/openocd_config_export
...
tools/openocd: only export OPENOCD_CONFIG to required targets
2020-02-25 15:11:38 +01:00
785052e410
Merge pull request #13468 from aabadie/pr/tools/bossa_rework
...
tools/bossa: split between 1.8 and 1.9 versions
2020-02-25 13:32:38 +01:00
698d371140
makefiles/bossa: adapt Makefiles for bossa version
2020-02-25 11:49:10 +01:00
c7a3219ddb
make: remove useless export of TARGET_ARCH
2020-02-25 09:42:12 +01:00
fabian18
2c77ee4cab
drivers/at24cxxx: at24cxxx EEPROM driver
2020-02-24 14:00:25 +01:00
9363f077d6
boards: don't export globally OPENOCD_CONFIG
...
The variable is already exported to required target in openocd.inc.mk
2020-02-24 10:04:11 +01:00
03f4d383db
makefiles/openocd: export OPENOCD_CONFIG to required targets
2020-02-24 10:04:11 +01:00
Francisco Molina
ab9551840e
makefiles/pseudomodules.inc.mk: declare all auto_init_%
...
Declaring all auto_init_% modules as pseudomodules will allow
using auto_init_% modules as modules that can be disabled. This
will give a higher lever of granularity allowing users to not
disable the complete auto_init module but only some of them.
2020-02-12 16:51:18 +01:00
benpicco
bc6fb241a0
Merge pull request #13139 from francois-berder/mips-cflags
...
makefiles: arch: mips: Allow CFLAGS_DBG and CFLAGS_OPT to be overridden
2020-02-12 00:02:20 +01:00
986ff50b75
Merge pull request #13200 from fjmolinas/pr_buildtests_boardsdir
...
makefiles/info-global.inc.mk: reset BOARDSDIR
2020-02-11 16:51:03 +01:00
Francisco Molina
dd8e9ae627
makefiles/info-global.inc.mk: reset BOARDSDIR
2020-02-11 15:26:04 +01:00
c30df3cac9
Merge pull request #7572 from kaspar030/zptr
...
core: add pointer compression header
2020-02-11 15:25:24 +01:00
5dc32b14cc
sys: zptr: initial commit
...
Provides functionality to compress pointers from 32bit to 16bit if
possible.
2020-02-11 13:59:59 +01:00
Martine Lenders
ebb20f2d44
Merge pull request #13305 from miri64/gnrc_ipv6_ext_frag_stats/feat/initial
...
gnrc_ipv6_ext_frag: initial import of statistics module
2020-02-10 20:23:13 +01:00
Cenk Gündoğan
7459adda79
Merge pull request #13292 from leandrolanzieri/pr/makefile_base/module_simple_exp
...
makefiles: Use simple expansion for widely used variables
2020-02-07 12:02:04 +01:00
Martine S. Lenders
cf69e61289
gnrc_ipv6_ext_frag: initial import of statistics module
2020-02-06 13:48:42 +01:00
d6264f56c8
Merge pull request #13168 from fjmolinas/pr_iotlab_openocd
...
boards/iotlab: add DEBUG_ADAPTER_ID openocd
2020-02-05 11:30:11 +01:00
Leandro Lanzieri
fdff969695
makefiles/llvm.inc.mk: Use simple expansion for OBJCOPY and OBJDUMP
2020-02-04 15:22:07 +01:00
Leandro Lanzieri
a262ae4c57
makefiles/gnu.inc.mk: Use simple expansion for OBJCOPY and OBJDUMP
2020-02-04 15:21:24 +01:00
c2534ad8f3
core: turn panic.c into a submodule
2020-01-31 13:55:26 +01:00
b6703f41dc
core: turn kernel_init.c into core_init submodule
2020-01-31 13:52:13 +01:00
Benjamin Valentin
bd19a55804
boards: remove EDBG_DEVICE_TYPE
...
EDBG_DEVICE_TYPE is a property of the CPU, is should not be set
by every board individually.
2020-01-31 09:35:27 +01:00
Benjamin Valentin
baea542532
tools/edbg: update to latest upstream version
...
This version has changed the target names, so add a edbg-devices.inc.mk
to automatically select the right target.
2020-01-31 09:35:27 +01:00
Leandro Lanzieri
f716cb1d39
makefiles/kconfig: Allow to override SHOULD_RUN_KCONFIG
2020-01-30 17:42:42 +01:00
Gunar Schorcht
ddd7cb0a7d
Merge pull request #12898 from aabadie/pr/cpu/dependencies_cleanup
...
cpu: move cpu level dependencies in dedicated Makefile.dep files
2020-01-28 17:57:02 +01:00
e969b2fcd5
cpu/atmega_common: move common dependencies
2020-01-28 13:20:53 +01:00
Francisco Molina
8b9afc3fed
makefiles/dependencies_debug.inc.mk: add DEPENDENCY_DEBUG_SORT_VARS
...
Define DEPENDENCY_DEBUG_SORT_VARS that can be set as 1 so that
DEPS_DEBUG_VARS are sorted before saving to file.
2020-01-28 13:02:15 +01:00
Leandro Lanzieri
c5dfc7d16c
Merge pull request #13198 from fjmolinas/pr_fix_info_board_RIOTBASE
...
makefiles/boards.inc.mk: set RIOTBOARD
2020-01-27 09:57:45 +01:00
Francisco Molina
ff70ad377a
makefiles/boards.inc.mk: simply expand ALLBOARDS
...
We can't use memoized here since if we don't expand immediatly
the value for BOARDSDIR might change.
2020-01-24 17:59:48 +01:00
Francisco Molina
1f844fb99a
makefiles/boards.inc.mk: set RIOTBOARD
2020-01-24 14:45:24 +01:00
benpicco
231fb0ae7b
Merge pull request #13081 from aabadie/pr/make/mips_inc_cleanup
...
make/mips: cleanup include makefile
2020-01-24 14:19:47 +01:00
Jean Pierre Dudey
894a868851
uniflash.inc.mk: add CCS_PATH
variable.
...
This is used now to set the `DEBUGSSERVER` as the `gdb_agent_console`
file was removed from UniFlash.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-01-20 08:14:52 -05:00
Jean Pierre Dudey
727dd05840
uniflash.inc.mk: remove export
from UNIFLASH_PATH
...
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
2020-01-20 08:11:46 -05:00
Francisco Molina
8cba8bdb16
makefiles/tools/openocd-adapters: add iotlab-usb
2020-01-19 20:24:55 +01:00
Sebastian Meiling
48fbd446fe
Merge pull request #8796 from miri64/dhcpv6c-pd/feat/initial
...
dhcpv6: Initial implementation of a client (with IA_PD support)
2020-01-16 13:32:51 +01:00
Martine Lenders
15c828cf92
gnrc_dhcpv6_client: provide GNRC-specific DHCPv6 parts
2020-01-16 12:36:10 +01:00
Martine Lenders
1048d67c76
dhcpv6: provide initial client implementation
...
This implements a client for DHCPv6 IA_PD (Identity Association for
Prefix Delegation). Goal was to have a IETF-compliant alternative to
UHCP. The implementation was based on RFC 8415.
2020-01-16 12:36:03 +01:00
Francois Berder
10939f2a57
makefiles: arch: mips: Allow CFLAGS_DBG and CFLAGS_OPT to be overridden
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2020-01-15 22:00:58 +00:00
Hauke Petersen
8b408fc828
Merge pull request #12724 from aabadie/pr/stdio_rtt_blacklist
...
make: improve handling of the stdio_rtt module, improve dependency management at application level
2020-01-15 10:12:13 +01:00
Francisco
330d9dffc6
Merge pull request #12977 from leandrolanzieri/pr/makefiles/kconfig_only_when_needed
...
makefiles/kconfig: Only run Kconfig if it could generate configurations
2020-01-14 11:28:34 +01:00
57d5a1db1c
boards: provide stdio_rtt as default module where required
...
For the moment, hamilton, ruuvitag and thingy52 use stdio_rtt by default.
2020-01-14 07:48:08 +01:00
e5992e2fcf
Merge pull request #12307 from fjmolinas/pr_riotboot_booloader
...
riotboot: add RIOTBOOT_BUILD make var
2020-01-13 14:19:03 +01:00
9de6047097
dist/tools: add support for flatc compiler
2020-01-13 09:41:22 +01:00
benpicco
1c148ba2f2
Merge pull request #10092 from gschorcht/drivers_itg320x
...
drivers: add driver for InvenSense ITG-320X 3-axis gyroscope
2020-01-11 17:37:48 +01:00
Schorcht
71772cc3b3
drivers: add driver for ITG320X 3-axis gyroscope
2020-01-11 08:02:34 +01:00
b56827323c
make/mips: cleanup include makefile
...
Remove a useless export of the ABI variable, fix indentation
2020-01-10 15:08:12 +01:00
Francisco Molina
aa5c6173eb
makefiles/boot/riotboot.mk: exclude if RIOTBOOT_BUILD is set
...
- riotboot targets should not be needed for riotboot application
so dont include it.
- also fixes #12003 by not setting FLASHFILE = $(RIOTBOOT_EXTENDED_BIN)
when compiling riotboot application
2020-01-10 11:44:04 +01:00
Francisco Molina
4b8d776576
makefiles/cflags.inc.mk: set unless deactivated
...
`fdiagnostics-color` defaults to on only on a color capable terminal,
so it can be activated unles CC_NOCOLOR=1.
2020-01-10 08:58:54 +01:00
Francisco Molina
b1ca4597ef
makefiles/color.inc.mk: don't set CC_NOCOLOR
...
If CC_NOCOLOR was not set by the user it was set according to the
terminal support of colored output.
But since CC_NOCOLOR is also used to set `-fdiagnostics-color` flags
this means changing `CFLAGS` according to terminal support of colored
output.
This is not needed for `-fdiagnostics-color` since this option is by
default `auto` if the compiler supports colored output, and `auto`
means it will only use color when standard error is a terminal.
2020-01-10 08:58:54 +01:00
Francisco
421d174f60
Merge pull request #13023 from leandrolanzieri/pr/makefiles/kconfig/fix_autoheader_win
...
makefiles/kconfig: Change autoconf.h comment style
2020-01-07 09:11:05 +01:00
Leandro Lanzieri
e88254e52a
makefiles/kconfig: Escape comment in autoconf.h for Windows
...
In Windows setups using MSYS environment variables which start with a
slash get the 'root path' added. This adds a second slash to the content
of KCONFIG_AUTOHEADER_HEADER, so the first one is escaped when building
on those platforms.
2020-01-05 20:45:14 +01:00
ff00097992
cpu/cortexm: cleanup cortexm.inc.mk
...
- fix indent
- remove unnecessary exports
2020-01-03 14:19:48 +01:00
Francisco
d4c3476669
Merge pull request #12944 from leandrolanzieri/pr/kconfig_migrate/net/sock_util
...
Kconfig: Expose net/sock/util configurations
2020-01-03 11:41:20 +01:00
Francisco
45b2cca14f
Merge pull request #13018 from aabadie/pr/make/linkflags_remove_exports
...
make: remove use of export with LINKFLAGS variable
2020-01-02 16:37:04 +01:00
df376aeef7
make/cortexm: fix mfpu flag for CortexM7
...
Use single precision, like with M4 instead of double precision
2020-01-02 14:40:50 +01:00
857019769f
make/newlib: remove use of export for LINKFLAGS
2020-01-02 09:51:40 +01:00
7c121000ce
make/riscv: remove use of export for LINKFLAGS
2020-01-02 09:51:20 +01:00
b664de5593
make/msp430: remove use of export for LINKFLAGS
2020-01-02 09:50:55 +01:00
1e8528d6e8
cpu/mips: remove use of export for LINKFLAGS
2020-01-02 09:48:46 +01:00
68210feb54
Merge pull request #12972 from fjmolinas/pr_boardsdir_riotboard
...
Makefile.include: default to RIOTBOARD when BOARD not in BOARDSDIR
2019-12-31 10:51:27 +01:00
Francisco Molina
cacdd56348
makefiles/info-global.inc.mk: RIOTBOAR as BOARDSDIR fallback
2019-12-30 17:15:08 +01:00
Francisco Molina
18444ac99a
makefiles/boards.inc.mk: include BOARDSDIR and RIOTBOARD
2019-12-30 17:14:20 +01:00
Cenk Gündoğan
0d9d496618
Merge pull request #12913 from leandrolanzieri/pr/kconfig_include_config
...
makefiles/kconfig: Include configuration symbols to build system
2019-12-19 16:04:05 +01:00
Leandro Lanzieri
707ad8d083
makefiles/kconfig: Include configuration symbols
...
If the generated configuration file is present include it. That way one
can check if certain symbols are being configured using Kconfig.
2019-12-19 15:35:21 +01:00
Martine S. Lenders
e1ae44b536
gnrc_sixlowpan_frag_stats: actualize pseudo-module
...
Having the definitions sit in the `net/gnrc/sixlowpan/frag.h` header
does not make much sense, when using Selective Fragment Forwarding
(and the fragmentation buffer already includes a
`net/gnrc/sixlowpan/frag/stats.h` header), so they are moved to their
own header. Since with this change it makes more sense to have the
statistics stored in their own sub-module, the pseudo-module is also
actualized.
2019-12-18 15:45:03 +01:00
Sebastian Meiling
737635573a
makefiles: add export for OS variable
...
Export the OS variable for proper multi-OS support.
Currently only needed by 'pkg/jerryscript')
2019-12-18 10:07:55 +01:00
Sebastian Meiling
5eee821f6e
makefiles: move exports to vars.inc.mk
2019-12-18 10:07:50 +01:00
Leandro Lanzieri
9c8b7a064b
makefiles/kconfig: Only run Kconfig if could generate configurations
...
This adds a check to decide if Kconfig should run on a build. It will
run if any of the following conditions is true:
- A file with '.config' extension is present in the application folder
- A 'Kconfig' file is present in the application folder
- A previous configuration file is present (e.g. from a previous call to
menuconfig)
- menuconfig is being called
This assumes that Kconfig will not generate any default configurations
just from the Kconfig files outside the application folder (i.e. module
configuration via Kconfig is disabled by default). Should this change,
the check would not longer be valid, and Kconfig would have to run on
every build.
2019-12-18 09:46:43 +01:00
Gaëtan Harter
418bcfb95d
makefiles: deprecate 'RIOTBOARD' for 'BOARDSDIR'
...
Replace using 'RIOTBOARD' by 'BOARDSDIR' to define external boards.
2019-12-16 15:35:05 +01:00
Gaëtan Harter
1427ef998f
makefiles/vars.inc.mk: document BOARDSDIR as external boards directory
...
Replace using 'RIOTBOARD' by 'BOARDSDIR' to define external boards.
2019-12-16 15:35:05 +01:00
Gaëtan Harter
c26710ac7e
makefiles/docker: handle mounting 'BOARDSDIR'
...
Handle setting 'BOARDSDIR' when building in docker.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
41a891f284
tools: use 'BOARDSDIR' for the boards directory
...
Replace uses of 'RIOTBOARD' by 'BOARDSDIR' for tools.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
90692ac92b
makefiles: use 'BOARDSDIR' for the boards directory in compilation
...
Replace uses of 'RIOTBOARD' by 'BOARDSDIR' during the compilation.
2019-12-16 15:35:04 +01:00
Gaëtan Harter
f76a2d201e
Makefile.include: introduce 'BOARDSDIR' for boards directory
...
Introduce a new variable 'BOARDSDIR' to use when referencing the base
boards directory.
This is a transition to allow defining external boards while still using
the `RIOT/boards` directory for like `boards/common` for example through
'RIOTBOARD'.
2019-12-16 15:35:04 +01:00
Leandro Lanzieri
b674710ae5
makefiles/kconfig: Add symbols for used packages
2019-12-13 15:21:16 +01:00
Leandro Lanzieri
c74fa5367c
net/sock/util: Move configuration macros to 'CONFIG_' namespace
...
Macros that changed:
SOCK_SCHEME_MAXLEN -> CONFIG_SOCK_SCHEME_MAXLEN
SOCK_HOSTPORT_MAXLEN -> CONFIG_SOCK_HOSTPORT_MAXLEN
SOCK_URLPATH_MAXLEN -> CONFIG_SOCK_URLPATH_MAXLEN
2019-12-13 12:04:54 +01:00
Martine Lenders
7b13781cd2
Merge pull request #12625 from miri64/gnrc_sock/enh/async-support
...
gnrc_sock: provide asynchronous event implementation
2019-12-09 12:39:58 +01:00
Sebastian Meiling
6e53e28a3a
Merge pull request #11943 from pokgak/sock_dtls_impl
...
pkg/tinydtls: add DTLS sock API implementation
2019-12-05 15:47:49 +01:00
Sebastian Meiling
f08fba1563
makefiles/suit: replace GNU cp -t with UNIX cp
...
UNIX `cp` command does not have the `-t` option like its GNU variant.
Hence, it usage breaks building RIOT e.g. on FreeBSD.
2019-12-05 09:13:20 +01:00
Leandro Lanzieri
1655001d85
makefiles: Add Kconfig related targets and dependencies
...
- The autoconf.h header file, generated with the current Kconfig
configurations, is added as a build dependency.
- autoconf.h depends on the proper tool (genconfig) and a Kconfig.dep
which contains the dependencies for the given application and board,
this is generated from $(USEMODULE).
- The menuconfig target is added, to allow the configuration of modules
using the Kconfig system.
2019-12-04 15:23:51 +01:00
96d90201ad
Merge pull request #11843 from fjmolinas/pr_tests_riotboot_py
...
tests/riotboot: migrate to full python test script
2019-12-02 18:28:14 +01:00
Francisco Molina
12761934bc
tests/riotboot: migrate to full python test script
2019-12-02 17:27:35 +01:00
Cenk Gündoğan
07c84a4fc3
Merge pull request #12840 from leandrolanzieri/pr/makefiles_remove_ccache_basedir
...
makefiles: Generate proper dependency files when using ccache
2019-12-02 11:40:36 +01:00
Ken Bannister
353c0e91d0
Merge pull request #11036 from leandrolanzieri/pr/pkg/wakaama_rework
...
pkg/wakaama: Add basic LWM2M client implementation
2019-11-29 16:21:05 -05:00
Leandro Lanzieri
c52ad2df9e
pkg/wakaama: Add LwM2M Client implementation
2019-11-29 20:31:41 +01:00
Francisco Molina
b14b5f3e67
makefiles/suit.v4.inc.mk: avoid basename in notify recipe
2019-11-29 15:03:14 +01:00
Leandro Lanzieri
d868c9c5c3
makefiles: Do not set CCACHE_BASEDIR environmental variable
...
When CCACHE_BASEDIR variable is set, ccache rewrites absolute paths into
relative paths before computing the hash that identifies the compilation
for all the paths under that directory.
The problem is that those paths are also used when the compiler is
called, so the generated dependency files (*.d) will have a relative
path to the object files, and thus, it will not match our rule for
compiling (we use absolute paths). As dependency files define the
targets this way, any change on its dependencies (e.g. an included
header file) will not re-trigger a build.
2019-11-28 15:40:22 +01:00
pokgak
0eaf0b23df
pseudomodules: add sock_dtls
2019-11-28 13:54:06 +01:00
ea716e69e0
Merge pull request #12806 from maribu/atmega-fix-reset
...
tools/avrdude: Fix `make reset` with bootloader
2019-11-25 16:44:52 +01:00
benpicco
7f40b13d05
Merge pull request #12697 from maribu/stm32-programmer
...
boards: Common STM32 programmer/debugger/serial config
2019-11-25 15:27:22 +01:00