56fa737d83
boards: makefiles indentation cleanup
2017-09-22 14:53:01 +02: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
smlng
291c1a54eb
native: correcting linker LTO flags for OSX
...
- corrects and enhances changes introduced in #5742
2016-09-12 15:41:38 +02:00
Joakim Nohlgård
5fcb09f6b9
boards/native/Makefile.include: Add -Wl,--gc-sections to linker options
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
0e5522950a
boards/native: Use gcc-ar when building with LTO
2016-08-10 16:18:29 +02:00
Toon Stegen
cf431e696c
make debug: start gdb quietly
2016-04-22 12:00:10 +02:00
2a69cf2af5
make: native: allow overriding of TERMPROG
2016-03-23 23:56:18 +01:00
Oleg Hahm
0530bc9c6c
make: export VALGRIND_PID only for debug-valgrind
2016-03-15 13:53:55 +01:00
Joakim Nohlgård
e9d7087a05
boards/native: Use another module name for drivers subdirectory
2016-03-08 14:19:52 +01:00
Oleg Hahm
2b949fcce1
native: add debug-valgrind target
...
debug-valgrind-server: Starts valgrind as gdb-server (vgdb)
debug-valgrind: Connects to vgdb
2016-03-03 11:26:17 +01:00
ef972735dc
sys: net: replace dev_eth with netdev2, adapt native tap driver
2015-09-04 15:39:04 +02:00
Thomas Eichinger
9c4b511e7d
native: don't warn for deprecated code
...
As native uses the `ucontext` API this change is needed on OS X
as this API is marked as deprecated.
2015-09-02 17:34:47 +02:00
Hauke Petersen
ca8c27a753
boards/native: fixed PORT selection for dev_eth_tap
2015-08-11 19:04:26 +02:00
Thomas Eichinger
3aaa431262
Merge pull request #3297 from gebart/pr/native-linker-sections
...
native: Add -ffunction-sections -fdata-sections to CFLAGS
2015-07-15 11:26:42 +02:00
Thomas Eichinger
238dda4423
board/native: fix CFLAGS and LINKFLAGS for FreeBSD
2015-07-13 12:49:27 +02:00
Martine Lenders
8a33a62914
native: add address sanitizer make target
2015-07-09 15:00:19 +02:00
Joakim Gebart
30dee9c561
native: Add -ffunction-sections -fdata-sections to CFLAGS
2015-07-02 05:58:51 +02:00
Oleg Hahm
e2764e7464
native: append tap parameter for ng_nativenet, too
2015-05-27 21:49:29 +02:00
Martine Lenders
449d2735c5
native: fix termflags
2015-02-21 16:14:36 +01:00
Ludwig Ortmann
093085b4ff
native: workaround for missing __builtin_bswap16
...
Implements a workaround for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52624
This is present in current versions of ubuntu 12.04 and debian 7.7 (stable).
2014-12-15 09:27:40 +01:00
Ludwig Ortmann
07da49de40
native/make/osx: circumvent unavailable gobjcopy
...
It's not used anyways, so just create an empty hex file if gobjcopy is
not found.
2014-11-28 17:28:27 +01:00
Thomas Eichinger
2382a4d320
native: fix Makefiles for OSX
2014-11-13 16:00:52 +01:00
Ludwig Ortmann
2c9c8bf2e0
make: remove dependency from flash to all
...
* print message when no hex file is found instead
* add objcopy for native so that flash can succeed
2014-10-31 10:31:47 +01:00
Martine Lenders
b3f59eec65
make: initialize debugger with TERMFLAGS
2014-10-21 19:49:00 +02:00
René Kijewski
866c713a7e
native: -DNATIVE_INCLUDES if using NATIVEINCLUDES
...
It can be useful to know if the current compilation builds the native
board module, because e.g. then we must not include `sys/types.h`.
This diff adds `-DNATIVE_INCLUDES` to the make variable
`NATIVEINCLUDES`.
2014-09-26 13:59:37 +02:00
Ludwig Ortmann
3d29a9e3d3
native: add support for Linux on ARM
2014-09-04 16:39:33 +02:00
Ludwig Ortmann
502fd23558
Merge pull request #1570 from LudwigOrtmann/native-ssp
...
native: add stack smashing protection
2014-08-23 17:39:57 +02:00
Ludwig Ortmann
db6d6ae95e
native: add stack smashing protection
...
When `DEVELHELP` is defined, add `-fstack-protector-all`.
2014-08-23 10:56:39 +02:00
Ludwig Ortmann
ba59ecdaae
native: fix and improve term-valgrind flags
2014-08-22 20:05:43 +02:00
Martine Lenders
248a8531a5
make: Fix TERMFLAGS
...
Sometimes boards/*/Makefile.include (e. g. in case of the msba2) gets included
twice somehow, leading the TERMFLAG to be set twice and faulty. This
fixes that.
2014-08-22 01:09:55 +02:00
Pham Huu Dang Nhat
f7398f61ff
Changed RIOT/Makefile.include, Makefile.base, Makefile.cflags, and native/Makefile.include to compile C and C++ files.
2014-06-25 22:26:10 +07:00
Thomas Eichinger
1e983c9670
s/PROJECT/APPLICATION/g
...
fixes #548
2014-05-26 13:21:09 +02:00
Ludwig Ortmann
e4e3ef4daf
make/native: remove -gc flag
...
Yields warning on OSX.
Uncertain why it was there in the first place.
Fixes #1125
2014-05-09 12:23:34 +02:00
René Kijewski
4c66f72ba3
Merge pull request #1022 from LudwigOrtmann/issue_505
...
native: update support for FreeBSD
2014-04-26 15:51:54 +02:00
Ludwig Ortmann
b089798bf9
native/make: add missing target
2014-04-22 16:53:08 +02:00
Ludwig Ortmann
42aa3d9f5b
native: update support for FreeBSD
...
works with FreeBSD 10.0 amd64/i386
fixes : #505
2014-04-20 07:31:40 +02:00
Ludwig Ortmann
b22f0e6a09
native/make: set all binutils with ?= instead of =
2014-04-20 07:28:21 +02:00
René Kijewski
3f59eefbaf
Use subfolders in bin dir
...
Creating all object files in one directory is bound to produce name
clashes. RIOT developers may take care to use unique file names, but
external packages surely don't.
With this change all the objects of a module (e.g. `shell`) will be
created in `bin/$(BOARD)/$(MODULE)`.
I compared the final linker command before and after the change. The
`.o` files (e.g. `startup.o`, `syscall.o` ...) are included in the same
order. Neglecting the changed path name where the `.o` files reside, the
linker command stays exactly the same.
A major problem could be third party boards, because the location of the
`startup.o` needs to the specified now in
`boards/$(BOARD)/Makefile.include`, e.g.
```Makefile
export UNDEF += $(BINDIR)msp430_common/startup.o
```
2014-04-09 00:28:14 +02:00