OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2012 Xiangfu Liu <xiangfu@openmobilefree.net> |
| 3 | # bitcoin: 12h6gdGnThW385JaX1LRMA8cXKmbYRTP8Q |
| 4 | # |
| 5 | # This is free software, licensed under the GNU General Public License v2. |
| 6 | # See /LICENSE for more information. |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=mini-jtag |
| 12 | PKG_VERSION:=$(shell date +%Y%m%d) |
| 13 | PKG_REV:=HEAD |
| 14 | PKG_RELEASE:=1 |
| 15 | PKG_INSTALL:=1 |
| 16 | |
| 17 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
| 18 | PKG_SOURCE_URL:=git://github.com/xiangfu/mini-jtag.git |
| 19 | PKG_SOURCE_PROTO:=git |
| 20 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 21 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 22 | |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | |
| 25 | define Package/mini-jtag |
| 26 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
| 27 | SECTION:=utils |
| 28 | CATEGORY:=Utilities |
| 29 | TITLE:=mini-jtag |
| 30 | URL:=https://github.com/ckolivas/mini-jtag |
| 31 | DEPENDS:=+libusb +libftdi |
| 32 | endef |
| 33 | |
| 34 | define Package/mini-jtag/description |
| 35 | Mini-jtag is a minimal jtag for communicate with fpga chip |
| 36 | endef |
| 37 | |
| 38 | TARGET_LDFLAGS += -lusb -lftdi |
| 39 | |
| 40 | define Package/mini-jtag/install |
| 41 | $(INSTALL_DIR) $(1)/usr/bin |
| 42 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/mini-jtag $(1)/usr/bin |
| 43 | endef |
| 44 | |
| 45 | $(eval $(call BuildPackage,mini-jtag)) |
| 46 |
