1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 09:46:28 +02:00

fpgatools: split to 2 packages

This commit is contained in:
Xiangfu 2013-02-03 16:55:22 +08:00
parent 25b0a63d4d
commit fe93706df4

View File

@ -22,13 +22,12 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
include $(INCLUDE_DIR)/package.mk
define Package/fpgatools
define Package/fpgatools/Default
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
SECTION:=utils
CATEGORY:=Utilities
TITLE:=fpgatools
URL:=https://github.com/ckolivas/fpgatools
DEPENDS:=+libusb +libftdi
endef
define Package/fpgatools/description
@ -36,7 +35,6 @@ fpgatools is a toolchain to program field-programmable gate arrays (FPGAs)
endef
TARGET_LDFLAGS += -lusb -lftdi
define Build/Compile
$(call Build/Compile/Default, fp2bit, bit2fp)
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/mini-jtag \
@ -45,11 +43,15 @@ define Build/Compile
all install
endef
define Package/fpgatools
$(call Package/fpgatools/Default)
TITLE+=(fpgatools)
endef
define Package/fpgatools/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/mini-jtag $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/fp2bit $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/bit2fp $(1)/usr/bin
$(INSTALL_DATA) \
@ -57,4 +59,16 @@ define Package/fpgatools/install
$(1)/usr/lib/
endef
define Package/mini-jtag
$(call Package/fpgatools/Default)
DEPENDS:=+libusb +libftdi
TITLE+=(mini-jtag)
endef
define Package/mini-jtag/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/mini-jtag $(1)/usr/bin
endef
$(eval $(call BuildPackage,fpgatools))
$(eval $(call BuildPackage,mini-jtag))