Date:2013-02-03 09:55:22 (7 years 7 months ago)
Author:Xiangfu
Commit:fe93706df4d2ce5eb18205c25f485efa054cf8d2
Message:fpgatools: split to 2 packages

Files: fpgatools/Makefile (4 diffs)

Change Details

fpgatools/Makefile
2222
2323include $(INCLUDE_DIR)/package.mk
2424
25define Package/fpgatools
25define Package/fpgatools/Default
2626    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
2727    SECTION:=utils
2828    CATEGORY:=Utilities
2929    TITLE:=fpgatools
3030    URL:=https://github.com/ckolivas/fpgatools
31    DEPENDS:=+libusb +libftdi
3231endef
3332
3433define Package/fpgatools/description
...... 
3635endef
3736
3837TARGET_LDFLAGS += -lusb -lftdi
39
4038define Build/Compile
4139    $(call Build/Compile/Default, fp2bit, bit2fp)
4240    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/mini-jtag \
...... 
4543        all install
4644endef
4745
46define Package/fpgatools
47    $(call Package/fpgatools/Default)
48    TITLE+=(fpgatools)
49endef
50
4851define Package/fpgatools/install
4952    $(INSTALL_DIR) $(1)/usr/bin
5053    $(INSTALL_DIR) $(1)/usr/lib
5154
52    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/mini-jtag $(1)/usr/bin
5355    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/fp2bit $(1)/usr/bin
5456    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/bit2fp $(1)/usr/bin
5557    $(INSTALL_DATA) \
...... 
5759        $(1)/usr/lib/
5860endef
5961
62define Package/mini-jtag
63    $(call Package/fpgatools/Default)
64    DEPENDS:=+libusb +libftdi
65    TITLE+=(mini-jtag)
66endef
67
68define Package/mini-jtag/install
69    $(INSTALL_DIR) $(1)/usr/bin
70    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/mini-jtag $(1)/usr/bin
71endef
72
6073$(eval $(call BuildPackage,fpgatools))
74$(eval $(call BuildPackage,mini-jtag))

Archive Download the corresponding diff file



interactive