2012-06-15 17:26:51 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 xiangfu liu <xiangfu@openmobilefree.net>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=urjtag
|
|
|
|
PKG_VERSION:=20120715
|
|
|
|
PKG_REV:=2f2c7920242addf60b3f498528741812d3c9beda
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
|
|
|
|
PKG_SOURCE_URL:=git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
|
|
|
|
define Package/urjtag
|
2012-06-18 18:54:40 +03:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@openmobilefree.net>
|
2012-06-15 17:26:51 +03:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Urjtag
|
|
|
|
URL:=http://urjtag.org/
|
2012-06-18 15:25:54 +03:00
|
|
|
DEPENDS:=+libusb +libusb-1.0 +libftdi $(INTL_DEPENDS) +libreadline +libncurses
|
2012-06-15 17:26:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(INTL_CFLAGS)
|
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(INTL_LDFLAGS)
|
|
|
|
MAKE_FLAGS += -C urjtag
|
|
|
|
|
|
|
|
CONFIGURE_PATH = ./urjtag
|
|
|
|
CONFIGURE_CMD = ./autogen.sh
|
|
|
|
CONFIGURE_ARGS += --with-libusb --with-libftdi --without-ftd2xx \
|
2012-06-18 07:09:03 +03:00
|
|
|
--disable-svf --disable-bsdl --disable-python
|
2012-06-15 17:26:51 +03:00
|
|
|
|
2012-06-18 18:54:40 +03:00
|
|
|
define Package/urjtag/description
|
|
|
|
Universal JTAG library, server and tools
|
|
|
|
endef
|
|
|
|
|
2012-06-15 17:26:51 +03:00
|
|
|
define Package/urjtag/install
|
|
|
|
$(INSTALL_DIR) \
|
|
|
|
$(1)/usr/bin/ \
|
2012-06-20 06:40:23 +03:00
|
|
|
$(1)/usr/share/urjtag/ \
|
|
|
|
$(1)/usr/lib/
|
2012-06-18 15:25:54 +03:00
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jtag $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/urjtag/* $(1)/usr/share/urjtag/
|
2012-06-18 18:27:00 +03:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liburjtag.so.* $(1)/usr/lib/
|
2012-06-15 17:26:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,urjtag))
|