+if [ ${OOCD_EN} != 0 ]; then
+if [ ! -e ${STAMPS}/openocd-${OOCD}.build ]; then
+ unpack openocd-${OOCD}
+ cd build
+ log "Configuring openocd-${OOCD}"
+ CFLAGS="${CFLAGS} ${OOCD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${OOCD_LDFLAGS}" \
+ ../openocd-${OOCD}/configure --enable-maintainer-mode \
+ --prefix=${PREFIX} \
+ --enable-dummy \
+ --enable-parport \
+ --enable-ft2232_libftdi \
+ --enable-usb_blaster_libftdi \
+ --enable-amtjtagaccel \
+ --enable-zy1000 \
+ --enable-ep93xx \
+ --enable-at91rm9200 \
+ --enable-gw16012 \
+ --enable-presto_libftdi \
+ --enable-usbprog \
+ --enable-jlink \
+ --enable-vsllink \
+ --enable-rlink \
+ --enable-arm-jtag-ew \
+ --enable-buspirate
+ log "Building openocd-${OOCD}"
+ make ${MAKEFLAGS}
+ install openocd-${OOCD} install
+ cd ..
+ log "Cleaning up openocd-${OOCD}"
+ touch ${STAMPS}/openocd-${OOCD}.build
+ rm -rf build/* ${OOCD}
+fi
+fi
+