Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Makefile for OpenOCD by Nicolas Le Falher
- #
- # Contributions by Nathan & Bifferos
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=openocd
- PKG_VERSION:=0.5.0
- PKG_RELEASE:=1
- PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=@SF/openocd
- PKG_MD5SUM:=42999a8950b669780f27ec7484c86458
- include $(INCLUDE_DIR)/package.mk
- define Package/openocd
- SECTION:=openocd
- CATEGORY:=Utilities
- TITLE:=openocd
- endef
- define Package/openocd/description
- The Open On-Chip Debugger (OpenOCD) aims to provide debugging,
- in-system programming and boundary-scan testing for embedded
- target devices.
- endef
- define Build/Configure
- (cd $(PKG_BUILD_DIR); \
- ./bootstrap; \
- $(CP) -rf ./parport.c $(PKG_BUILD_DIR)/src/jtag/drivers/parport.c; \
- ./configure --build=i686-pc-linux-gnu --host=$(OPTIMIZE_FOR_CPU)-openwrt-linux-$(TARGET_SUFFIX) --enable-parport --enable-parport_ppdev --disable-doxygen-html\
- );
- endef
- define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR)
- endef
- define Package/openocd/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/openocd $(1)/usr/bin/
- $(INSTALL_DIR) $(1)/etc/openocd
- $(CP) -r $(PKG_BUILD_DIR)/tcl $(1)/etc/openocd
- $(RM) -r $(1)/etc/openocd/interface
- $(CP) $(PKG_BUILD_DIR)/tcl/interface/parport.cfg $(1)/etc/openocd
- $(INSTALL_CONF) ./openocd.cfg $(1)/etc/openocd/openocd.cfg
- endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement