From ed83aa388366ff9f30c52df6e8c43fef683591bd Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 3 Jun 2022 21:44:19 +0200 Subject: [PATCH] boards/common/cc26xx_cc13xx: improve default PROGRAMMER setting Only default to uniflash as default programmer if UNIFLASH_PATH is set. If this isn't the case, `make flash` fails complaining about missing `UNIFLASH_PATH` anyway. --- boards/common/cc26xx_cc13xx/Makefile.include | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boards/common/cc26xx_cc13xx/Makefile.include b/boards/common/cc26xx_cc13xx/Makefile.include index 30f6b7f7eb..c5cfaf15be 100644 --- a/boards/common/cc26xx_cc13xx/Makefile.include +++ b/boards/common/cc26xx_cc13xx/Makefile.include @@ -1,5 +1,9 @@ # configure the flash tool -PROGRAMMER ?= uniflash +ifneq (,$(UNIFLASH_PATH)) + PROGRAMMER ?= uniflash +else + PROGRAMMER ?= openocd +endif # uniflash and openocd programmers are supported PROGRAMMERS_SUPPORTED += openocd uniflash