OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # This is free software, licensed under the GNU General Public License v2. |
| 3 | # See /LICENSE for more information. |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=ben-wpan |
| 8 | PKG_VERSION:=git |
| 9 | PKG_REV:=ac76df901d347c1cdb414644ad33120fd262729f |
| 10 | PKG_RELEASE:=2 |
| 11 | |
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz |
| 13 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/ben-wpan.git |
| 14 | PKG_SOURCE_PROTO:=git |
| 15 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 16 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 17 | |
| 18 | PKG_BUILD_DEPENDS:=lowpan-tools |
| 19 | |
| 20 | include $(INCLUDE_DIR)/package.mk |
| 21 | |
| 22 | define Package/ben-wpan/Default |
| 23 | SECTION:=network |
| 24 | CATEGORY:=Network |
| 25 | SUBMENU:=ben-wpan |
| 26 | URL:=http://en.qi-hardware.com/wiki/Ben_WPAN |
| 27 | endef |
| 28 | |
| 29 | define Build/Compile |
| 30 | $(MAKE) -C $(PKG_BUILD_DIR)/tools TARGET=ben_openwrt; \ |
| 31 | $(MAKE) -C $(PKG_BUILD_DIR)/tools/dirtpan TARGET=ben_openwrt CFLAGS+="-I$(STAGING_DIR)/usr/include -I../include" |
| 32 | endef |
| 33 | |
| 34 | define Package/ben-wpan-doc |
| 35 | $(call Package/ben-wpan/Default) |
| 36 | TITLE:=Documents about ben-wpan |
| 37 | endef |
| 38 | |
| 39 | define Package/ben-wpan-doc/install |
| 40 | $(INSTALL_DIR) $(1)/usr/share/ben-wpan |
| 41 | $(CP) $(PKG_BUILD_DIR)/install/INSTALL* $(1)/usr/share/ben-wpan |
| 42 | $(CP) $(PKG_BUILD_DIR)/install/USAGE $(1)/usr/share/ben-wpan |
| 43 | endef |
| 44 | |
| 45 | define Package/atrf-gpio |
| 46 | $(call Package/ben-wpan/Default) |
| 47 | TITLE:=GPIO test utility |
| 48 | endef |
| 49 | |
| 50 | define Package/atrf-gpio/install |
| 51 | $(INSTALL_DIR) $(1)/usr/sbin |
| 52 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-gpio/atrf-gpio $(1)/usr/sbin/ |
| 53 | endef |
| 54 | |
| 55 | define Package/atrf-id |
| 56 | $(call Package/ben-wpan/Default) |
| 57 | TITLE:=ATRF identification utility |
| 58 | endef |
| 59 | |
| 60 | define Package/atrf-id/install |
| 61 | $(INSTALL_DIR) $(1)/usr/sbin |
| 62 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-id/atrf-id $(1)/usr/sbin/ |
| 63 | endef |
| 64 | |
| 65 | define Package/atrf-path |
| 66 | $(call Package/ben-wpan/Default) |
| 67 | TITLE:=Measure path characteristics |
| 68 | endef |
| 69 | |
| 70 | define Package/atrf-path/install |
| 71 | $(INSTALL_DIR) $(1)/usr/sbin |
| 72 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-path/atrf-path $(1)/usr/sbin/ |
| 73 | endef |
| 74 | |
| 75 | define Package/atrf-proxy |
| 76 | $(call Package/ben-wpan/Default) |
| 77 | TITLE:=ATRF network proxy |
| 78 | endef |
| 79 | |
| 80 | define Package/atrf-proxy/install |
| 81 | $(INSTALL_DIR) $(1)/usr/sbin |
| 82 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-proxy/atrf-proxy $(1)/usr/sbin/ |
| 83 | endef |
| 84 | |
| 85 | define Package/atrf-reset |
| 86 | $(call Package/ben-wpan/Default) |
| 87 | TITLE:=Reset the transceiver or the whole board |
| 88 | endef |
| 89 | |
| 90 | define Package/atrf-reset/install |
| 91 | $(INSTALL_DIR) $(1)/usr/sbin |
| 92 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-reset/atrf-reset $(1)/usr/sbin/ |
| 93 | endef |
| 94 | |
| 95 | define Package/atrf-rssi |
| 96 | $(call Package/ben-wpan/Default) |
| 97 | TITLE:=Spectrum scan utility |
| 98 | endef |
| 99 | |
| 100 | define Package/atrf-rssi/install |
| 101 | $(INSTALL_DIR) $(1)/usr/sbin |
| 102 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-rssi/atrf-rssi $(1)/usr/sbin/ |
| 103 | endef |
| 104 | |
| 105 | define Package/atrf-trim |
| 106 | $(call Package/ben-wpan/Default) |
| 107 | TITLE:=Oscillator trim utility |
| 108 | endef |
| 109 | |
| 110 | define Package/atrf-trim/install |
| 111 | $(INSTALL_DIR) $(1)/usr/sbin |
| 112 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-trim/atrf-trim $(1)/usr/sbin/ |
| 113 | endef |
| 114 | |
| 115 | define Package/atrf-txrx |
| 116 | $(call Package/ben-wpan/Default) |
| 117 | TITLE:=TX/RX test utility |
| 118 | endef |
| 119 | |
| 120 | define Package/atrf-txrx/install |
| 121 | $(INSTALL_DIR) $(1)/usr/sbin |
| 122 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-txrx/atrf-txrx $(1)/usr/sbin/ |
| 123 | endef |
| 124 | |
| 125 | define Package/atrf-xmit |
| 126 | $(call Package/ben-wpan/Default) |
| 127 | TITLE:=Fast transmission test |
| 128 | endef |
| 129 | |
| 130 | define Package/atrf-xmit/install |
| 131 | $(INSTALL_DIR) $(1)/usr/sbin |
| 132 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-xmit/atrf-xmit $(1)/usr/sbin/ |
| 133 | endef |
| 134 | |
| 135 | define Package/atrf-xtal |
| 136 | $(call Package/ben-wpan/Default) |
| 137 | TITLE:=Crystal diagnostic utility |
| 138 | endef |
| 139 | |
| 140 | define Package/atrf-xtal/install |
| 141 | $(INSTALL_DIR) $(1)/usr/sbin |
| 142 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/atrf-xtal/atrf-xtal $(1)/usr/sbin/ |
| 143 | endef |
| 144 | |
| 145 | define Package/dirtpan |
| 146 | $(call Package/ben-wpan/Default) |
| 147 | TITLE:=Quick and dirty IPv4 over 802.15.4 tunnel |
| 148 | endef |
| 149 | |
| 150 | define Package/dirtpan/install |
| 151 | $(INSTALL_DIR) $(1)/usr/sbin |
| 152 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/dirtpan/dirtpan $(1)/usr/sbin/ |
| 153 | endef |
| 154 | |
| 155 | $(eval $(call BuildPackage,dirtpan)) |
| 156 | $(eval $(call BuildPackage,atrf-gpio)) |
| 157 | $(eval $(call BuildPackage,atrf-id)) |
| 158 | $(eval $(call BuildPackage,atrf-path)) |
| 159 | $(eval $(call BuildPackage,atrf-proxy)) |
| 160 | $(eval $(call BuildPackage,atrf-reset)) |
| 161 | $(eval $(call BuildPackage,atrf-rssi)) |
| 162 | $(eval $(call BuildPackage,atrf-trim)) |
| 163 | $(eval $(call BuildPackage,atrf-txrx)) |
| 164 | $(eval $(call BuildPackage,atrf-xmit)) |
| 165 | $(eval $(call BuildPackage,atrf-xtal)) |
| 166 | $(eval $(call BuildPackage,ben-wpan-doc)) |
| 167 |
