1
0
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:
Benjamin Valentin 2020-02-14 12:07:16 +01:00
parent a055a6c579
commit e8d248648f

View File

@ -28,7 +28,7 @@ ifeq ($(DEBUG_ADAPTER),dap)
PROGRAMMER ?= edbg PROGRAMMER ?= edbg
else ifeq ($(DEBUG_ADAPTER),jlink) else ifeq ($(DEBUG_ADAPTER),jlink)
# only use JLinkExe if it's installed # only use JLinkExe if it's installed
ifneq (,$(shell command -v JLinkExe)) ifneq (,$(shell which JLinkExe))
PROGRAMMER ?= jlink PROGRAMMER ?= jlink
else else
PROGRAMMER ?= openocd PROGRAMMER ?= openocd