2c8317bc8d
boards/native: remove deprecated all-debug target
2020-10-28 22:07:36 +01:00
benpicco
29bdc602e2
Merge pull request #15284 from benpicco/boards/native-doc
...
boards/native: Improve Documentation
2020-10-26 00:07:18 +01:00
Benjamin Valentin
c11e54830d
boards/native: document native GPIO
2020-10-23 14:17:24 +02:00
Benjamin Valentin
25b626ec6b
boards/native: document required packages
2020-10-23 14:16:54 +02:00
Francisco Molina
178c1264e3
board/native: include can_linux based on periph_can
2020-10-08 09:09:04 +02:00
Leandro Lanzieri
81cb769cad
makefiles: avoid building archives when compiling
2020-09-04 15:01:10 +02:00
Leandro Lanzieri
7efe7224ee
boards/native: Add Kconfig symbols
...
Also add the board to the whitelist of tests/kconfig_features
2020-07-16 13:54:28 +02:00
Gunar Schorcht
028c0d4b3c
Merge pull request #14353 from fjmolinas/pr_reorder_makefiles_cleanup
...
Makefile: use normal conditionals
2020-06-30 09:59:02 +02:00
Francisco Molina
e98341da93
Makefile: use normal conditionals
2020-06-29 22:40:29 +02:00
Benjamin Valentin
18bbf1ae2c
boards/native: don't check for gnrc_netdev_default
...
`gnrc_netdev_default` will pull in `netdev_default`, so no need to
check for both here.
2020-06-27 16:46:59 +02:00
Benjamin Valentin
dc58ef59ae
boards: remove duplicate gnrc_netdev_default from Makefile.dep
...
`gnrc_netdev_default` will pull in `netdev_default`, so no need to
check for both in `Makefile.dep`
2020-05-05 09:58:45 +02:00
5a9f01d91a
native: pass eeprom file path via command line
2020-04-29 08:56:33 +02:00
Sören Tempel
d7104e4992
makefiles/toolchain: add support for afl
2020-04-07 14:24:10 +02:00
0bb3304df3
native: don't export NATIVEINCLUDES
2020-03-26 10:25:49 +01:00
Gunar Schorcht
2bbfd96804
boards/native: fix broken links
2020-03-24 10:38:40 +01:00
a2c0823063
boards/native: add ztimer configuration
2020-03-04 12:44:03 +01:00
fe8c242a30
boards/native: remove exports of UNDEF vars
2020-02-25 09:40:34 +01:00
Martine Lenders
4be4f5ad0a
boards/native: add deprecation warnings for make all-debug
2020-02-21 12:51:41 +01:00
Martine Lenders
1786a8353a
boards/native: remove now unnecessary -g3
CFLAGS
...
dbd865413c
made `-g3` default for
`make all` so all targets dependent on `make all` do not require it any
longer.
2020-02-21 12:50:02 +01:00
dbd865413c
native: turn on creation of debug symbols (CFLAGS += -g)
2020-02-20 17:06:56 +01:00
713fead00a
boards: move some USEMODULE to Makefile.dep
2020-02-07 13:21:22 +01:00
Martine Lenders
7430ea98ed
Merge pull request #13096 from nmeum/pr/fix_asan_target
...
boards/native: fix all-asan Makefile target
2020-01-14 13:43:22 +01:00
Francisco Molina
5a8f996111
boards: replace use of $(BOARD) by explicit name
...
With the introduction of BOARDSDIR external boards can re-use common
code of BOARDS present in RIOTBASE. To be able to do this file
references may not use $(BOARD) since BOARD will be set by the
external BOARD.
2020-01-13 11:53:48 +01:00
Sören Tempel
e2b8231796
boards/native: fix crash with all-asan
...
Without this change a RIOT application compiled with all-asan will
segfault as RIOT provides its own malloc by default. Add a define for
disabling custom malloc, calloc and realloc implementations and use it
when compiling with all-asan.
2020-01-12 16:17:48 +01:00
c71e931d77
boards/native: remove use of export for LINKFLAGS
2020-01-02 09:47:33 +01:00
Hauke Petersen
d0375ea119
boards/native: fix default value of PORT
2019-12-13 11:36:57 +01:00
Martine Lenders
2f74d9d644
Merge pull request #12517 from miri64/native/enh/reset-command
...
native: allow for native to be resetable via SIGUSR1
2019-12-03 10:56:11 +01:00
Martine Lenders
d670f77d91
native: add and use reset script to reset certain PID
2019-12-03 09:51:52 +01:00
Marian Buschsieweke
ef97b874bf
boards/native: Default to C11 instead of C99
2019-10-24 21:57:02 +02:00
Francisco Molina
45c8eafd42
Makefile.include: remove repeated OS declaration
2019-10-18 10:36:43 +02:00
Francisco Molina
f3482de277
REMOVEME: add OS and OS_ARCH variable
2019-10-18 08:46:51 +02:00
Frank Hessel
40fe3154b4
boards/native Add SPI feature to doc.txt
2019-10-16 14:33:07 +02:00
Francisco
2d890db6af
Merge pull request #10440 from jcarrano/no-export-ports
...
makefiles: remove exports so that PORT is not evaluated if it's not needed.
2019-09-12 13:50:24 +02:00
Gaëtan Harter
ef542ef92c
boards: do not locally export compilation variables
...
These are already exported by `makefiles/vars.inc.mk`.
It is a prerequisite to allow handling compilation without global exports.
2019-08-29 10:35:44 +02:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
...
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included
Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Benjamin Valentin
8af04cd939
boards: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
d8746add06
native: don't use NATIVEINCLUDES in board and board/drivers
2019-08-06 09:44:19 +02:00
3f25c43204
Merge pull request #11733 from nmeum/fix-native-build
...
boards/native: fix undefinied reference to qdecs_value
2019-07-16 16:42:52 +02:00
Sören Tempel
7c49cbb4a1
boards/native: make compilation of qdec mock conditional
...
Previously this code was compiled unconditionally which might result in
a linking error since qdecs_value is not defined if the periph_qdec
module isn't enabled.
2019-07-01 14:23:15 +02:00
Gaëtan Harter
47ff0198d5
boards/native: define FLASHFILE
...
Even if native does not require flashing, it is the file used for running.
2019-06-27 14:27:10 +02:00
a68f78bb10
boards/*: remove unused FEATURES_MCU_GROUP variable
2019-06-14 11:32:15 +02:00
Gaëtan Harter
9c5688ea27
boards/native: remove toolchain variables duplication
...
The toolchain variables were overwritten anyway in
`makefiles/toolchain/gnu|llvm.inc.mk` as they use `=` affectation,
except for `OBJCOPY`.
On my Linux ubuntu bionic machine, the only difference for `info-build`
with both gnu/llvm and also with LTO=1
is that it now uses an absolute path for `objcopy`
-OBJCOPY: objcopy
+OBJCOPY: /usr/bin/objcopy
On the OSX 17.7.0 I tested, there was no difference.
2019-06-04 16:00:24 +02:00
Gaëtan Harter
c103b3f6ba
serial: Do not export PORT.
...
This variable is only used for the term recipe (and maybe for flashing). They
should not be evaluated if they are not needed and the user should not see a
warning that the port is not set if he does not use port (for example in make
all.)
2019-06-03 16:31:21 +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
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
Martine Lenders
790f763d3d
native: use -g3 instead of -g
2019-03-26 18:53:27 +01:00
Gilles DOFFE
3fd3eea5bc
boards/native: add two factice motors with qdec simulation
...
Configure 2 factice motors in one motor_driver.
native_motor_driver_qdec_simulation() is provided to simulate QDEC encoders
virtually linked to the motors.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
Gilles DOFFE
ffad5048fc
boards/native: update doc.txt
...
Add PWM and QDEC peripheral description.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
Gilles DOFFE
d04c21bb8b
boards/native: add qdec simulation callback
...
native_motor_driver_qdec_simulation() callback is called each time
motor_set() from motor_driver driver is called.
It set associated qdec value to the PWM duty cycle.
QDEC values are stored in qdecs_value[] array in the order motors
are described in board.h.
Then it is needed to configure in first motors that needs the QDEC in
board.h.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
Gilles DOFFE
37981b5bc2
boards/native: add periph_pwm to FEATURES_PROVIDED
...
Add periph_pwm to FEATURES_PROVIDED as PWM is now implemented into native
cpu.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
Gaëtan Harter
3b119cc5ba
boards/native: unexport TERM* variables
...
TERMPROG and TERMFLAGS variables do not need to be exported as they are
used directly by a make receipe.
2019-02-25 17:26:03 +01:00
cladmi
b450141d4d
boards: unconditionally include CPU/Makefile.features
...
The file always exist so no need to do '-include'.
Replaced using:
sed -i 's|-\(include $(RIOTCPU)/.*/Makefile.features\)|\1|' \
$(git grep -l '$(RIOTCPU)/.*/Makefile.features' boards)
2018-10-11 17:13:40 +02:00
Vincent Dupont
0cbef09575
native: use gnu99 by default
2018-10-04 08:48:43 +02:00
Hauke Petersen
0298cda5d4
boards/native: remove feature periph_gpio_irq
...
As it is not implemented in the first place.
2018-09-20 14:51:19 +02:00
Joakim Nohlgård
8996cbe313
make: Introduce new feature flag periph_gpio_irq
2018-08-29 08:53:20 +02:00
5eb3cb0120
boards/native: cleanup documentation
...
Display brief description instead of link to the wiki
2018-08-10 13:54:17 +02:00
Jose Alamos
7b28fbf110
boards: fix Doxygen group directives
2018-08-01 15:24:55 +02:00
Jose Alamos
a1e17ab5af
doc: add wiki documentation to Doxygen files
2018-08-01 15:24:54 +02:00
6bc494b928
boards: fix doxygen grouping
2018-06-11 19:12:02 +02:00
Gaëtan Harter
40c28d78c0
Revert "native: remove non required NATIVEINCLUDES"
...
This reverts commit 93a521c501
.
2018-04-12 17:48:07 +02:00
cladmi
3f145413f5
boards/makefiles: Remove '-Otype' from OFLAGS
...
* Remove '-Oihex' and '-Obinary' from OFLAGS for all boards
It is now provided by the Makefile.include rule.
2018-04-09 17:32:46 +02:00
cladmi
70c5079b16
Makefile.include: add %.hex and %.bin rules
...
Replace HEXFILE rule by a rule for each type.
HACK: Adding '-Oformat' after OFLAGS overwrite the value in flags.
2018-04-09 17:32:46 +02:00
Gaëtan Harter
21a9958323
Merge pull request #8822 from aabadie/pr/make_curly
...
make: replace curly braces with parenthesis
2018-03-27 15:44:36 +02:00
61f1b941ce
make: replace curly braces with parenthesis
2018-03-22 20:43:15 +01:00
Gaëtan Harter
93a521c501
native: remove non required NATIVEINCLUDES
...
Some modules used a 'NATIVEINCLUDES' with different include path and no other
included directories.
It was defining basic 'include' in a different order and not using other things
defined in INCLUDES.
After doing some checks with the given include path and possible conflicting
files, there should be no conflict when using the default one.
* No common headers between all the NATIVEINCLUDES directories
* No common headers files between board/native/include, cpu/native/include and
other files in the repository (except other boards/cpus of course).
2018-03-20 17:51:03 +01:00
Bas Stottelaar
a05d1b1004
cpu/board: native: use common peripheral initialization
2018-03-15 23:26:01 +01:00
23b414b732
drivers: net: adapt to iolist-using netdev
2018-03-06 14:00:31 +01:00
Gilles DOFFE
d5488d108e
boards/native: add qdec
...
Add periph_qdec to native native board features.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2018-02-23 23:17:38 +01:00
Vincent Dupont
368818aa23
Merge pull request #8272 from OTAkeys/pr/clean-up-mtd-native
...
boards/native: clean-up MTD and SPIFFS default config
2018-02-09 14:49:54 +01:00
Pieter Willemsen
f2f6801987
board/native: use ELFFILE for 'make term'
2018-01-31 11:59:07 +01:00
smlng
d94edad1bd
board/native: add periph_hwrng and init
2018-01-27 08:42:31 +01:00
Martine Lenders
81ef15287a
native: provide socket-based ZEP device
2018-01-18 09:15:37 +01:00
Vincent Dupont
632bccb636
boards/native: call rtc_init from board_init
2018-01-09 19:01:09 +01:00
Vincent Dupont
0905a99905
native: clean up SPIFFS default config
2017-12-18 13:24:46 +01:00
Pieter Willemsen
ff0d19b686
native: move MTD defines to board.h
2017-12-18 13:14:51 +01:00
ae51dc55d0
boards: adapt to reorganized CPU Makefile.features
2017-11-02 12:59:46 +01:00
56fa737d83
boards: makefiles indentation cleanup
2017-09-22 14:53:01 +02:00
02e055fc81
make: include cpu Makefile.features from board Makefile.features
2017-09-14 13:15:52 +02:00
3df5e12e10
boards: fix Makefile.dep indentation
2017-09-06 16:09:38 +02:00
Vincent Dupont
68f1ea8fd0
native: add a CAN device using socketCAN
2017-06-19 15:36:20 +02:00
882bcff048
boards: replace @brief with @name when necessary
2017-04-13 12:10:30 +02:00
Vincent Dupont
4cb3232a42
native: add spiffs options in board.h
2017-03-31 17:17:42 +02:00
Joakim Nohlgård
d1ea50a600
mtd: Redefine MTD_0 as a mtd_dev_t *
2017-03-28 17:00:39 +02:00
Vincent Dupont
1b2b5d9df9
Merge pull request #5624 from OTAkeys/pr/mtdi_flash
...
mtd: add a generic low level flash interface
2017-03-17 17:18:13 +01:00
Vincent Dupont
9e8cb3d135
native: add mtd-compliant flash emulation
2017-03-16 11:24:22 +01:00
Martine Lenders
29842bb5e4
netdev2: rename to netdev and remove gnrc_netdev
...
With some minor hand-edits I used the following chain of commands:
```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
-e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
-e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
grep "netdev2" | while read dir; do
new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
git mv -f "$dir" "$new_dir"
done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | while read file; do
new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
git mv -f "$file" "$new_file"
done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Oleg Hahm
ccb9179c23
Merge pull request #5824 from kaspar030/change_default_c_dialect
...
make: use -std=c99 as default
2016-12-08 13:44:34 -05:00
Martine Lenders
235375f664
native: always assert() verbosely
2016-11-29 19:28:23 +01:00
517efe4ccc
cpu: native: use gnu99 C dialect
2016-11-15 14:59:36 +01:00
Martine Lenders
2d89169d00
Merge pull request #5991 from Yonezawa-T2/use_lldb
...
make: use LLDB if GDB is not available on native platform
2016-10-31 15:43:39 +01:00
Takuo Yonezawa
f2ea42c043
NEED SQUASHING make: use LLDB on Darwin
2016-10-27 14:50:16 +09:00
Cenk Gündoğan
41011184a5
Merge pull request #5988 from cgundogan/pr/native/term
...
boards/native: set PORT to tap0
2016-10-25 19:40:44 +02:00
Takuo Yonezawa
160ef548f8
make: use LLDB if GDB is not available
2016-10-25 16:31:40 +09:00
Martine Lenders
3225f020e5
Merge pull request #5964 from kaspar030/make_fix_appdir_bindir
...
make: remove trailing slash from BINDIR and APPDIR variables
2016-10-24 14:33:40 +02:00
Cenk Gündoğan
50a77aa7e6
boards/native: set PORT to tap0
...
`PORT` is unset if `netdev2_tap` is not in `USEMODULES`.
But unfortunately, `netdev2_tap` is set by boards/native/Makefile.dep
*after* `PORT` is set, so that `PORT` remains empty.
This commit breaks this circular dependency by checking for
`netdev_default` and `gnrc_netdev_default` instead.
Without this commit, `make term` throws an error for examples that
require a tap interface, when `PORT` is not explicitely given.
2016-10-24 12:05:10 +02:00
560a509036
make: remove trailing slash from BINDIR variable
2016-10-18 23:27:59 +02:00
10e9336c78
boards: adapt to automatically included boards/$board/Makefile.dep
2016-09-29 15:41:12 +02:00
Martine Lenders
fc1e974102
Merge pull request #5493 from OlegHahm/silent_valgrind
...
native: let valgrind print the leak summary at the end
2016-09-29 08:41:35 +02:00
Oleg Hahm
7767d5a101
native: enable valgrind's leak summary
2016-09-29 00:37:33 +02:00