1
0

Makefile 946 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=usbreset
  9. PKG_RELEASE:=5
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/usbreset
  12. SECTION:=utils
  13. CATEGORY:=Utilities
  14. TITLE:=Utility to send a USB port reset to a USB device
  15. MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
  16. endef
  17. define Package/usbreset/description
  18. This package contains the small usbreset utility which
  19. can be used to send a USB port reset to a USB device -
  20. useful for debugging or to force re-detection of particular
  21. devices.
  22. endef
  23. define Build/Compile
  24. $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
  25. -o $(PKG_BUILD_DIR)/usbreset $(PKG_BUILD_DIR)/usbreset.c
  26. endef
  27. define Package/usbreset/install
  28. $(INSTALL_DIR) $(1)/usr/bin
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/
  30. endef
  31. $(eval $(call BuildPackage,usbreset))