Advertisement
Guest User

Makefile for OpenOCD OpenWRT

a guest
Mar 24th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #
  2. # See /LICENSE for more information.
  3. #
  4. # $Id: Makefile 7742 2007-06-27 05:26:20Z nbd $
  5.  
  6. include $(TOPDIR)/rules.mk
  7.  
  8. PKG_NAME:=openocd
  9. PKG_VERSION:=0.5.0
  10. PKG_RELEASE:=1
  11.  
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  13.  
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=@SF/openocd
  16. PKG_MD5SUM:=42999a8950b669780f27ec7484c86458
  17.  
  18. include $(INCLUDE_DIR)/package.mk
  19.  
  20. define Package/openocd
  21. SECTION:=openocd
  22. CATEGORY:=Utilities
  23. TITLE:=openocd
  24. endef
  25.  
  26. define Package/openocd/description
  27. openocd desc
  28. endef
  29.  
  30. define Build/Configure
  31. (cd $(PKG_BUILD_DIR); \
  32. ./configure --build=i686-pc-linux-gnu --host=mips-openwrt-linux-uclibc --enable-parport --enable-parport_ppdev --disable-doxygen-html\
  33. );
  34. endef
  35.  
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR)
  38. endef
  39.  
  40. define Package/openocd/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/openocd $(1)/usr/bin/
  43. $(INSTALL_DIR) $(1)/etc/openocd
  44. $(CP) -r $(PKG_BUILD_DIR)/tcl $(1)/etc/openocd
  45. endef
  46.  
  47. $(eval $(call BuildPackage,openocd))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement