Martine Lenders
13cc189a8a
Revert "Remove which
from shell invocations"
2021-09-03 11:27:03 +02:00
chrysn
6b50033766
makefiles: Replace which
with command -v
...
As the POSIX documentation[1] of `command -v` guarantees that on error
there will be no output (and there will be output in the other cases),
the tests in Makefiles were simplified to test for output equality to
the empty string.
Redirects swallowing error outputs were removed, as the command produces
no error output there (as recommended at [2]).
Existing uses of `command` are simplified as well.
[1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
[2]: https://salsa.debian.org/debian/debianutils/-/blob/master/debian/NEWS
2021-09-02 16:30:46 +02:00
32cbbe05f2
makefiles/sam0.inc.mk: define list of supported programmers
2021-02-24 13:28:01 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable
2021-02-23 21:22:52 +01:00
f8822b5f8f
boards: remove not need PORT_LINUX/PORT_DARWIN
...
They defined the same in serial.inc.mk. Some Darwin default are changed because they are probably wrong
2020-12-02 09:20:57 +01:00
4c290e1f92
boards: remove include of serial.inc.mk
2020-12-02 09:20:57 +01:00
3bafb6e2bc
makefiles/edbg: include openocd.inc.mk to define debug vars
2020-11-25 22:31:13 +01:00
c6ad85a7b0
boards: don't include programmer logic at board level
2020-11-25 22:31:13 +01:00
c7189cfe99
makefiles/sam0: only fail on missing device with explicit targets
2020-07-03 10:24:40 +02:00
Benjamin Valentin
a653667172
makefiles/boards/sam0.inc.mk: dap: use OpenOCD for debugging
...
ebdg can only be used for flashing, we still have to use OpenOCD for
debugging.
fixes #14328
2020-06-24 16:06:12 +02:00
Marian Buschsieweke
98824df68b
makefiles/boards/sam0.inc.mk: Allow other programmers
...
Modified to allow including sam0.inc.mk even if none of the programmers handled
their is used. This is useful for boards that by default are programmed via a
bootloader. Still including sam0.inc.mk allows users to specify the `PROGRAMMER`
to use jlink, openocd, or edgb instead of the bootloader.
2020-06-04 21:28:17 +02:00
Benjamin Valentin
e8d248648f
makefiles/sam0.inc.mk: fix detection of JLinkExe
...
`command -v` doesn't work for me, but `which` finds the correct JLinkExe.
2020-02-14 12:07:16 +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
756cab9385
makefiles/sam0: fix debugging with edbg
...
OpenOCD should *always* be included for debugging if JLinkExe is not used.
fixes #12652
2019-11-06 15:43:15 +01:00
Benjamin Valentin
81fe1b9c9c
makefiles/sam0: fix typo
...
Somehow an additional parenthesis sneaked in. Remove it to fix the Makefile.
2019-10-21 11:04:13 +02:00
Benjamin Valentin
b617e40950
sam0: allow flashing with JLinkExe
...
Currently sam0 will always use OpenOCD, even when the JLink programmer is selected.
Instead, use JLinkExe when it's availiable and a J-Link programmer is used.
2019-06-24 18:44:36 +02:00
79a2db89e0
makefiles/tools: remove useless export when setting DEBUG_ADAPTER_ID
2019-06-03 10:32:08 +02:00
6ecc16dd5d
makefiles/sam0: remove useless export when setting DEBUG_ADAPTER
2019-06-03 10:32:08 +02:00
Gaëtan Harter
5e053bffe9
boards: use RIOTTOOLS variable
2018-06-28 14:05:33 +02:00
Joakim Nohlgård
697f0b00f3
edbg: Use DEBUG_ADAPTER_ID to select which USB programmer to use
2017-11-17 10:03:05 +01:00
biboc
ff235803f4
Sam0: fix edbg flash with serial number
2017-06-07 14:16:55 +02:00
d7d796b80d
makefiles: add edbg tool support
2017-05-24 14:52:44 +02:00
ee1e2af232
makefiles: add shared sam0 board makefile include
2017-05-19 00:50:40 +02:00