+# include openocd app
+ifeq ($(filter openocd, $(config)), openocd)
+ # add in base jtag code if not already
+ ifneq ($(filter apps/jtag/jtag.o, $(apps)), apps/jtag/jtag.o)
+ apps+= apps/jtag/jtag.o
+ hdrs+= jtag.h
+ endif
+ apps+= apps/jtag/openocd.o
+ hdrs+= openocd.h
+endif
+