From c9d4d01a3163cb88115bbb958761f7a809b63f13 Mon Sep 17 00:00:00 2001 From: Nuno Goncalves Date: Thu, 21 Dec 2017 17:01:11 +0100 Subject: [PATCH] usbip: fix usb.ids download (closes #4994) Used the same solution as in utils/usbutils/Makefile Signed-off-by: Nuno Goncalves --- net/usbip/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/net/usbip/Makefile b/net/usbip/Makefile index bfb819057..b64423386 100644 --- a/net/usbip/Makefile +++ b/net/usbip/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2015 OpenWrt.org +# Copyright (C) 2010-2017 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=usbip -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_LICENSE:=GPL-2.0 # Since kernel 2.6.39.1 userspace tools are inside the kernel tree @@ -79,11 +79,13 @@ endef CFLAGS+="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" -define Download/usb.ids - URL:=http://www.linux-usb.org/ - HASH:=47dc941dca801b89f1529e09f0d338755d8fbb0ce75f526e1dcccc4fbf8fc66c - FILE:=usb.ids - MD5SUM:= +USB_IDS_REV:=0a6be488b4c1485d30c9efee1cc895af5d4a1383 +USB_IDS_FILE:=usb.ids.$(USB_IDS_REV) +define Download/usb_ids + FILE:=$(USB_IDS_FILE) + URL_FILE:=usb.ids + URL:=@GITHUB/gentoo/hwids/$(USB_IDS_REV) + HASH:=2d0403ffccc0ff7150e32c0bf8e2878816b76ba08d2c3bb1059f33627a3da30f endef define Package/usbip/install