2 # Copyright (C) 2011-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 include $(INCLUDE_DIR)/package.mk
15 define Package/usbreset
18 TITLE:=Utility to send a USB port reset to a USB device
19 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
22 define Package/usbreset/description
23 This package contains the small usbreset utility which
24 can be used to send a USB port reset to a USB device -
25 useful for debugging or to force re-detection of particular
30 $(INSTALL_DIR) $(PKG_BUILD_DIR)
31 $(INSTALL_DATA) ./src/usbreset.c $(PKG_BUILD_DIR)/
35 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
36 -o $(PKG_BUILD_DIR)/usbreset $(PKG_BUILD_DIR)/usbreset.c
39 define Package/usbreset/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/
44 $(eval $(call BuildPackage,usbreset))