From 8366c945925a223dfb38786d4336394e5efc7114 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 26 Oct 2017 22:10:03 +0000 Subject: common openocd: use -s to find files from test dirs. The sourcing of the common.cfg and the optional local files was failing when invoked from a test directory. Use -s and properly use [find ...] to search paths nicely. --- rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 2cb7248..7f9b393 100644 --- a/rules.mk +++ b/rules.mk @@ -157,7 +157,7 @@ ifeq (,$(OOCD_FILE)) $(NULL) else $(Q)(echo "halt; program $(realpath $(*).elf) verify reset" | nc -4 localhost 4444 2>/dev/null) || \ - $(OOCD) -f $(OOCD_FILE) \ + $(OOCD) -s ../../openocd/ -f $(OOCD_FILE) \ -c "program $(*).elf verify reset exit" \ $(NULL) endif -- cgit