mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 11:08:27 +02:00
fpgatools: split to 2 packages
This commit is contained in:
parent
25b0a63d4d
commit
fe93706df4
@ -22,13 +22,12 @@ PKG_SOURCE_VERSION:=$(PKG_REV)
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/fpgatools
|
define Package/fpgatools/Default
|
||||||
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=fpgatools
|
TITLE:=fpgatools
|
||||||
URL:=https://github.com/ckolivas/fpgatools
|
URL:=https://github.com/ckolivas/fpgatools
|
||||||
DEPENDS:=+libusb +libftdi
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/fpgatools/description
|
define Package/fpgatools/description
|
||||||
@ -36,7 +35,6 @@ fpgatools is a toolchain to program field-programmable gate arrays (FPGAs)
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_LDFLAGS += -lusb -lftdi
|
TARGET_LDFLAGS += -lusb -lftdi
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default, fp2bit, bit2fp)
|
$(call Build/Compile/Default, fp2bit, bit2fp)
|
||||||
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/mini-jtag \
|
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/mini-jtag \
|
||||||
@ -45,11 +43,15 @@ define Build/Compile
|
|||||||
all install
|
all install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/fpgatools
|
||||||
|
$(call Package/fpgatools/Default)
|
||||||
|
TITLE+=(fpgatools)
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/fpgatools/install
|
define Package/fpgatools/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(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/fp2bit $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/bit2fp $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/bit2fp $(1)/usr/bin
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
@ -57,4 +59,16 @@ define Package/fpgatools/install
|
|||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
endef
|
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,fpgatools))
|
||||||
|
$(eval $(call BuildPackage,mini-jtag))
|
||||||
|
Loading…
Reference in New Issue
Block a user