First git repo commit for the libreCMC project
[librecmc/librecmc.git] / package / utils / usbreset / Makefile
1 #
2 # Copyright (C) 2011-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=usbreset
11 PKG_RELEASE:=4
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/usbreset
16   SECTION:=utils
17   CATEGORY:=Utilities
18   TITLE:=Utility to send a USB port reset to a USB device
19   MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
20 endef
21
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
26  devices.
27 endef
28
29 define Build/Compile
30         $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
31                 -o $(PKG_BUILD_DIR)/usbreset $(PKG_BUILD_DIR)/usbreset.c
32 endef
33
34 define Package/usbreset/install
35         $(INSTALL_DIR) $(1)/usr/bin
36         $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/
37 endef
38
39 $(eval $(call BuildPackage,usbreset))