From patchwork Fri Dec 15 15:38:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 849230 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yyvjF5HQBz9sBZ for ; Sat, 16 Dec 2017 02:38:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E5D078816F; Fri, 15 Dec 2017 15:38:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 47VzmNkYo42C; Fri, 15 Dec 2017 15:38:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 53470880D1; Fri, 15 Dec 2017 15:38:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 10FE51C1EDB for ; Fri, 15 Dec 2017 15:38:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0B9D2880D1 for ; Fri, 15 Dec 2017 15:38:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NIYqkyL2qfVN for ; Fri, 15 Dec 2017 15:38:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 49B7B88007 for ; Fri, 15 Dec 2017 15:38:38 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 652AE16D0084; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 54ABD16D0082; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nWxmw9B5tZVG; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) Received: from pedeld202344.datacom.net (pedeld202344.datacom.net [10.0.120.87]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 3343616C31A6; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) From: Carlos Santos To: buildroot@buildroot.org Date: Fri, 15 Dec 2017 13:38:29 -0200 Message-Id: <20171215153830.4864-1-casantos@datacom.ind.br> X-Mailer: git-send-email 2.14.3 Subject: [Buildroot] [PATCH v2 1/2] iqvlinux: bump to version 1.2.0.3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This package is really annoying since the archive name doesn't contain the version. Use a small trick to save it with a better name. Also add hashes for license files. Signed-off-by: Carlos Santos --- Changes v1->v2: - Move comment about the patch, in package/iqvlinux/Config.in, to the next commit. - Use a small trick to save the source file with a better name. --- package/iqvlinux/Config.in | 2 +- package/iqvlinux/iqvlinux.hash | 9 +++++---- package/iqvlinux/iqvlinux.mk | 17 ++++++++++++++--- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/package/iqvlinux/Config.in b/package/iqvlinux/Config.in index 8959955745..09502d141e 100644 --- a/package/iqvlinux/Config.in +++ b/package/iqvlinux/Config.in @@ -12,7 +12,7 @@ config BR2_PACKAGE_IQVLINUX Note: This driver requires PCI support to be enabled (i.e. CONFIG_PCI). - http://sourceforge.net/projects/e1000/files/iqvlinux/ + https://sourceforge.net/projects/e1000/files/iqvlinux/ comment "iqvlinux needs a Linux kernel to be built" depends on !BR2_LINUX_KERNEL diff --git a/package/iqvlinux/iqvlinux.hash b/package/iqvlinux/iqvlinux.hash index ddf57b712c..20d612ddc5 100644 --- a/package/iqvlinux/iqvlinux.hash +++ b/package/iqvlinux/iqvlinux.hash @@ -1,5 +1,6 @@ -# From http://sourceforge.net/projects/e1000/files/iqvlinux/1.1.5.3/ -sha1 bd94416e4364015dbbd78a22e51080bf7ea81fac iqvlinux.tar.gz -md5 fb6a2a4dc122d39070fcb06985c97a05 iqvlinux.tar.gz # locally computed -sha256 8cb19f3bfe040100a13bb2d05cb2b54f2b259e55cef23f8cc5aa6f2f31e98bec iqvlinux.tar.gz +sha256 4020a661940ba6d50f24654b90a41280eb8eccf00061fe6d105c654d3d97d551 iqvlinux-1.2.0.3.tar.gz +sha256 386086e232db4708770f717595d4f83188f776aa6e7313cd12fb039e869f494b COPYING +sha256 beded926a8f18aad5d911daf581759e2b25697588034d2b29033ae1a929506ff src/linux/driver/files.txt +sha256 ecf93b9b739fc82f7b87b34f8c6411dfdd271234af2fe45212293d9df2b654b3 inc/linux/files.txt +sha256 0a309350c1b32be72479e8fe08f7f6bbbad2e8c3d9a1cbcad3d482ea48a236ad inc/files.txt diff --git a/package/iqvlinux/iqvlinux.mk b/package/iqvlinux/iqvlinux.mk index 165c7c4687..a00f85c0bc 100644 --- a/package/iqvlinux/iqvlinux.mk +++ b/package/iqvlinux/iqvlinux.mk @@ -4,9 +4,8 @@ # ################################################################################ -IQVLINUX_VERSION = 1.1.5.3 -IQVLINUX_SITE = http://sourceforge.net/projects/e1000/files/iqvlinux/$(IQVLINUX_VERSION) -IQVLINUX_SOURCE = iqvlinux.tar.gz +IQVLINUX_VERSION = 1.2.0.3 +IQVLINUX_SITE = https://downloads.sourceforge.net/project/e1000/iqvlinux/$(IQVLINUX_VERSION) IQVLINUX_LICENSE = GPL-2.0, BSD-3-Clause IQVLINUX_LICENSE_FILES = \ @@ -17,5 +16,17 @@ IQVLINUX_MODULE_MAKE_OPTS = NALDIR=$(@D) KSRC=$(LINUX_DIR) CC=$(TARGET_CC) IQVLINUX_MODULE_SUBDIRS = src/linux/driver +# This package is really annoying since the archive name doesn't contain the +# version. Use a small trick to save it with a better name. +define IQVLINUX_DOWNLOAD + $(EXTRA_ENV) $(DL_WRAPPER) -b wget \ + -o $(DL_DIR)/$(IQVLINUX_SOURCE) \ + -H $(PKGDIR)/$($(PKG)_RAWNAME).hash \ + -- \ + $(IQVLINUX_SITE)/iqvlinux.tar.gz +endef + +IQVLINUX_PRE_DOWNLOAD_HOOKS = IQVLINUX_DOWNLOAD + $(eval $(kernel-module)) $(eval $(generic-package)) From patchwork Fri Dec 15 15:38:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 849231 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yyvjM2kXHz9s7B for ; Sat, 16 Dec 2017 02:38:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 49FC630210; Fri, 15 Dec 2017 15:38:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dSNm1fbzAqli; Fri, 15 Dec 2017 15:38:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 156493017A; Fri, 15 Dec 2017 15:38:43 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A058C1C1EDB for ; Fri, 15 Dec 2017 15:38:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9C7653017A for ; Fri, 15 Dec 2017 15:38:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gnrt3GIv2bjV for ; Fri, 15 Dec 2017 15:38:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by silver.osuosl.org (Postfix) with ESMTPS id C5C382D2A3 for ; Fri, 15 Dec 2017 15:38:39 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 70B3B16C31A6; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 60C0416D0083; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Jquct0ex8C8c; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) Received: from pedeld202344.datacom.net (pedeld202344.datacom.net [10.0.120.87]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 3A15B16D0080; Fri, 15 Dec 2017 13:38:16 -0200 (BRST) From: Carlos Santos To: buildroot@buildroot.org Date: Fri, 15 Dec 2017 13:38:30 -0200 Message-Id: <20171215153830.4864-2-casantos@datacom.ind.br> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171215153830.4864-1-casantos@datacom.ind.br> References: <20171215153830.4864-1-casantos@datacom.ind.br> Subject: [Buildroot] [PATCH v2 2/2] iqvlinux: add patch to support Linux kernel 4.12 and later X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Tested on machines with four NIC models: - Intel(R) Ethernet Connection X553 10 GbE SFP+ - Intel(R) Ethernet Connection X553 1 GbE - Intel(R) Ethernet Connection I354 - Intel(R) I210 Gigabit Network Connection Signed-off-by: Carlos Santos --- Changes v1->v2 - Move comment about the patch, in package/iqvlinux/Config.in, to the this commit. --- .../0001-Support-Linux-kernel-4.12-and-later.patch | 66 ++++++++++++++++++++++ package/iqvlinux/Config.in | 7 ++- 2 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 package/iqvlinux/0001-Support-Linux-kernel-4.12-and-later.patch diff --git a/package/iqvlinux/0001-Support-Linux-kernel-4.12-and-later.patch b/package/iqvlinux/0001-Support-Linux-kernel-4.12-and-later.patch new file mode 100644 index 0000000000..22ee03cdc9 --- /dev/null +++ b/package/iqvlinux/0001-Support-Linux-kernel-4.12-and-later.patch @@ -0,0 +1,66 @@ +From 517d70780b903caa41ee93adbbb9bb985da23a29 Mon Sep 17 00:00:00 2001 +From: Carlos Santos +Date: Tue, 12 Dec 2017 13:40:44 -0200 +Subject: [PATCH] Support Linux kernel 4.12 and later + +Signed-off-by: Carlos Santos +--- + src/linux/driver/linuxdrivermemory_i.c | 5 +++++ + src/linux/driver/linuxdriveros_i.c | 5 +++++ + src/linux/driver/linuxnaldriver.c | 5 +++++ + 3 files changed, 15 insertions(+) + +diff --git a/src/linux/driver/linuxdrivermemory_i.c b/src/linux/driver/linuxdrivermemory_i.c +index bdf1d42..53366d7 100644 +--- a/src/linux/driver/linuxdrivermemory_i.c ++++ b/src/linux/driver/linuxdrivermemory_i.c +@@ -49,7 +49,12 @@ + #include + #include + #include ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) ++#include ++#else + #include ++#endif + #include + #include + +diff --git a/src/linux/driver/linuxdriveros_i.c b/src/linux/driver/linuxdriveros_i.c +index 653bec9..43df25e 100644 +--- a/src/linux/driver/linuxdriveros_i.c ++++ b/src/linux/driver/linuxdriveros_i.c +@@ -49,7 +49,12 @@ + #include + #include + #include ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) ++#include ++#else + #include ++#endif + #include + #include + +diff --git a/src/linux/driver/linuxnaldriver.c b/src/linux/driver/linuxnaldriver.c +index 93c2f80..c1ddbcf 100644 +--- a/src/linux/driver/linuxnaldriver.c ++++ b/src/linux/driver/linuxnaldriver.c +@@ -39,7 +39,12 @@ + #include + #include + #include ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) ++#include ++#else + #include ++#endif + #include "naltypes.h" + #include "nalioctl.h" + #include "linuxnaldriver.h" +-- +2.14.3 + diff --git a/package/iqvlinux/Config.in b/package/iqvlinux/Config.in index 09502d141e..73804ac02a 100644 --- a/package/iqvlinux/Config.in +++ b/package/iqvlinux/Config.in @@ -2,8 +2,11 @@ config BR2_PACKAGE_IQVLINUX bool "iqvlinux" depends on BR2_LINUX_KERNEL help - Intel Ethernet Adapter Debug Driver for Linux (iqvlinux), - which supports kernel versions 2.6.x up through 4.0.x. + Intel Ethernet Adapter Debug Driver for Linux (iqvlinux). + + Officially supports kernel versions 2.6.x up through 4.0.x but + the Buildroot package contains a patch to allow it to be built + on newer kernel versions. This debug driver supports all Intel's networking Tools based on the SDK version 2.19.36.0 or higher which support Intel