Browse Source

Build libusb without annoying tests, breaking the build

Ulf Samuelsson 18 năm trước cách đây
mục cha
commit
193d987287
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      package/libusb/libusb.mk

+ 3 - 0
package/libusb/libusb.mk

@@ -29,6 +29,9 @@ $(LIBUSB_DIR)/.unpacked: $(DL_DIR)/$(LIBUSB_SOURCE)
 ifneq ($(LIBUSB_PATCH_FILE),)
 	(cd $(LIBUSB_DIR) && $(LIBUSB_CAT) $(LIBUSB_PATCH) | patch -p1)
 endif
+	toolchain/patch-kernel.sh $(LIBUSB_DIR) package/libusb/ libusb-$(LIBUSB_VERSION)\*.patch*
+	$(SED) 's,^all:.*,all:,g' $(LIBUSB_DIR)/tests/Makefile.in
+	$(SED) 's,^install:.*,install:,g' $(LIBUSB_DIR)/tests/Makefile.in
 	touch $@
 
 $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked