From f2aa38c8f9485b58c2dfad1f4c5158d7852b5754 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 26 Mar 2020 09:30:37 +0100 Subject: [PATCH] boards*: don't export OPENOCD_PRE_FLASH_CMDS --- boards/common/nrf52/Makefile.include | 2 +- boards/phynode-kw41z/Makefile.include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/common/nrf52/Makefile.include b/boards/common/nrf52/Makefile.include index 52e0a28c88..b15370286b 100644 --- a/boards/common/nrf52/Makefile.include +++ b/boards/common/nrf52/Makefile.include @@ -40,7 +40,7 @@ else ifeq (openocd,$(PROGRAMMER)) ifneq (,$(filter nordic_softdevice_ble,$(USEPKG))) LINKER_SCRIPT ?= $(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL)_sd.ld - export OPENOCD_PRE_FLASH_CMDS += -c 'flash write_image erase "$(BINDIR)/softdevice.hex"' + OPENOCD_PRE_FLASH_CMDS += -c 'flash write_image erase "$(BINDIR)/softdevice.hex"' OPENOCD_PRE_VERIFY_CMDS += -c 'verify_image "$(BINDIR)/softdevice.hex"' # Cannot use the 'ELFFILE' here diff --git a/boards/phynode-kw41z/Makefile.include b/boards/phynode-kw41z/Makefile.include index 52a9b1bb6e..664a87391d 100644 --- a/boards/phynode-kw41z/Makefile.include +++ b/boards/phynode-kw41z/Makefile.include @@ -7,7 +7,7 @@ ifeq (openocd,$(PROGRAMMER)) endif # Enable direct write to FCF (required for setting FOPT byte). -export OPENOCD_PRE_FLASH_CMDS += "-c kinetis fcf_source write" +OPENOCD_PRE_FLASH_CMDS += "-c kinetis fcf_source write" # Include default FRDM board config include $(RIOTBOARD)/common/kw41z/Makefile.include