mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/sam0.inc.mk: fix detection of JLinkExe
`command -v` doesn't work for me, but `which` finds the correct JLinkExe.
This commit is contained in:
parent
a055a6c579
commit
e8d248648f
@ -28,7 +28,7 @@ ifeq ($(DEBUG_ADAPTER),dap)
|
||||
PROGRAMMER ?= edbg
|
||||
else ifeq ($(DEBUG_ADAPTER),jlink)
|
||||
# only use JLinkExe if it's installed
|
||||
ifneq (,$(shell command -v JLinkExe))
|
||||
ifneq (,$(shell which JLinkExe))
|
||||
PROGRAMMER ?= jlink
|
||||
else
|
||||
PROGRAMMER ?= openocd
|
||||
|
Loading…
Reference in New Issue
Block a user