lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2115B)


      1 #
      2 # Copyright (C) 2015 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=openocd
     11 PKG_VERSION:=v0.10.0
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE_PROTO:=git
     15 PKG_SOURCE_URL:=git://git.code.sf.net/p/openocd/code
     16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     17 PKG_SOURCE_VERSION:=$(PKG_VERSION)
     18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
     19 PKG_LICENSE:=GPL-2.0
     20 PKG_LICENSE_FILES:=COPYING
     21 
     22 PKG_MAINTAINER:=Paul Fertser <fercerpav@gmail.com>
     23 
     24 PKG_BUILD_PARALLEL:=1
     25 PKG_INSTALL:=1
     26 PKG_FIXUP:=autoreconf
     27 
     28 include $(INCLUDE_DIR)/package.mk
     29 include $(INCLUDE_DIR)/nls.mk
     30 
     31 define Package/openocd
     32   SECTION:=utils
     33   CATEGORY:=Utilities
     34   TITLE:=OpenOCD Utility
     35   URL:=http://openocd.sf.net/
     36   DEPENDS:=+libusb-1.0 +libusb-compat +libftdi1 +hidapi
     37 endef
     38 
     39 define Package/openocd/description
     40 OpenOCD provides on-chip programming and debugging support with a
     41 layered architecture of JTAG interface and TAP support including:
     42 
     43 - (X)SVF playback to facilitate automated boundary scan and FPGA/CPLD
     44   programming;
     45 - debug target support (e.g. ARM, MIPS): single-stepping,
     46   breakpoints/watchpoints, gprof profiling, etc;
     47 - flash chip drivers (e.g. CFI, NAND, internal flash);
     48 - embedded TCL interpreter for easy scripting.
     49 
     50 Several network interfaces are available for interacting with OpenOCD:
     51 telnet, TCL, and GDB. The GDB server enables OpenOCD to function as a
     52 "remote target" for source-level debugging of embedded systems using
     53 the GNU GDB program (and the others who talk GDB protocol, e.g. IDA
     54 Pro).
     55 endef
     56 
     57 CONFIGURE_ARGS += \
     58 	--prefix="/usr" \
     59 	--disable-werror \
     60 	MAKEINFO=true \
     61 	--enable-dummy \
     62 	--enable-sysfsgpio
     63 
     64 define Build/Compile
     65         +$(MAKE_VARS) \
     66         $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
     67 endef
     68 
     69 define Package/openocd/install
     70 	$(INSTALL_DIR) $(1)/usr/bin
     71 	$(INSTALL_DIR) $(1)/usr/share/openocd
     72 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openocd $(1)/usr/bin/
     73 	$(CP) $(PKG_INSTALL_DIR)/usr/share/openocd/scripts $(1)/usr/share/openocd
     74 endef
     75 
     76 $(eval $(call BuildPackage,openocd))