Add more license tags with SPDX identifiers
[openwrt/staging/yousong.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 PKG_LICENSE:=GPL-2.0
14 PKG_LICENSE_FILES:=
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/usbreset
19 SECTION:=utils
20 CATEGORY:=Utilities
21 TITLE:=Utility to send a USB port reset to a USB device
22 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
23 endef
24
25 define Package/usbreset/description
26 This package contains the small usbreset utility which
27 can be used to send a USB port reset to a USB device -
28 useful for debugging or to force re-detection of particular
29 devices.
30 endef
31
32 define Build/Prepare
33 $(INSTALL_DIR) $(PKG_BUILD_DIR)
34 $(INSTALL_DATA) ./src/usbreset.c $(PKG_BUILD_DIR)/
35 endef
36
37 define Build/Compile
38 $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
39 -o $(PKG_BUILD_DIR)/usbreset $(PKG_BUILD_DIR)/usbreset.c
40 endef
41
42 define Package/usbreset/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,usbreset))