Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:=4
  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/Prepare
  24. $(INSTALL_DIR) $(PKG_BUILD_DIR)
  25. $(INSTALL_DATA) ./src/usbreset.c $(PKG_BUILD_DIR)/
  26. endef
  27. define Build/Compile
  28. $(TARGET_CC) $(TARGET_CFLAGS) -Wall \
  29. -o $(PKG_BUILD_DIR)/usbreset $(PKG_BUILD_DIR)/usbreset.c
  30. endef
  31. define Package/usbreset/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/
  34. endef
  35. $(eval $(call BuildPackage,usbreset))