2 # Copyright (C) 2007 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 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)
14 PKG_BUILD_DEPENDS
:= libpthread
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/testusb
21 DEPENDS
:=@LINUX_2_6 @DEVEL
+libpthread
22 TITLE
:=USB testing utility
23 URL
:=http
://www.linux-usb.org
/usbtest
/testusb.c
26 define Package
/testusb
/description
27 This tool can be used to perform various tests with use of the usbtest driver.
31 mkdir
-p
$(PKG_BUILD_DIR
)
32 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 $(TARGET_CC
) $(TARGET_CFLAGS
) -Os
-lpthread
$(PKG_BUILD_DIR
)/testusb.c
-o
$(PKG_BUILD_DIR
)/$(PKG_NAME
)
39 define Package
/testusb
/install
40 $(INSTALL_DIR
) $(1)/usr
/sbin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/testusb
$(1)/usr
/sbin
/
44 $(eval
$(call BuildPackage
,testusb
))