From 73d560e4124e783c79c21d9c76b884be705933f9 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 13 Oct 2017 11:00:31 -0400 Subject: [PATCH] fix "scripts: zephyr_flash_debug: flash like openocd.sh" All commands need to have quotation marks stripped. Fixes: bee6f9e73 ("scripts: zephyr_flash_debug: flash like openocd.sh") Signed-off-by: Marti Bolivar --- scripts/support/zephyr_flash_debug.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/support/zephyr_flash_debug.py b/scripts/support/zephyr_flash_debug.py index 55564edea16..691a22064a4 100755 --- a/scripts/support/zephyr_flash_debug.py +++ b/scripts/support/zephyr_flash_debug.py @@ -587,7 +587,11 @@ class OpenOcdBinaryFlasher(ZephyrBinaryFlasher): openocd = os.environ.get('OPENOCD', 'openocd') default_path = os.environ.get('OPENOCD_DEFAULT_PATH', None) pre_cmd = os.environ.get('OPENOCD_PRE_CMD', None) + if pre_cmd is not None: + pre_cmd = pre_cmd.strip('"') post_cmd = os.environ.get('OPENOCD_POST_CMD', None) + if post_cmd is not None: + post_cmd = post_cmd.strip('"') return OpenOcdBinaryFlasher(bin_name, zephyr_base, arch, board_name, load_cmd, verify_cmd, openocd=openocd,