[meta-intel] [PATCH 3/3] linux-intel: remove ixgbe and ixgbevf

2017-08-09 Thread Syed Mohamad Fauzi, Syed Johan Arif
removing in-tree ixgbe and ixgbevf kernel modules to enable out-of-tree ixgbe 
and ixgbevf modules from linux-intel

Signed-off-by: Syed Mohamad Fauzi, Syed Johan Arif 

---
 common/recipes-kernel/linux/linux-intel.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/recipes-kernel/linux/linux-intel.inc 
b/common/recipes-kernel/linux/linux-intel.inc
index 20f01f0..d23751c 100644
--- a/common/recipes-kernel/linux/linux-intel.inc
+++ b/common/recipes-kernel/linux/linux-intel.inc
@@ -38,6 +38,9 @@ do_compile_kernelmodules_append() {
rm -rf ${B}/drivers/net/wireless/intel/iwlwifi
rm -rf ${B}/net/mac80211
rm -rf ${B}/net/wireless
+   rm -rf ${B}/drivers/net/ethernet/intel/ixgbe
+   rm -rf ${B}/drivers/net/ethernet/intel/ixgbevf
+   rm -rf ${B}/net/ethernet
 }
 
 RDEPENDS_kernel-modules += "iwlwifi"
-- 
1.9.1

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 1/3] intel-ethernet: IXGBE upgrade to version 5.1.3

2017-08-09 Thread Syed Mohamad Fauzi, Syed Johan Arif
From: Syed Johan Arif Bin Syed Mohamad Fauzi 


Signed-off-by: Syed Mohamad Fauzi, Syed Johan Arif 

---
 .../recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb   | 40 +
 .../ixgbevf/0002-ixgbevf_common.patch  | 23 
 .../recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb | 41 ++
 3 files changed, 104 insertions(+)
 create mode 100644 common/recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb
 create mode 100644 
common/recipes-kernel/intel-ethernet/ixgbevf/0002-ixgbevf_common.patch
 create mode 100644 common/recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb

diff --git a/common/recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb 
b/common/recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb
new file mode 100644
index 000..bc1feef
--- /dev/null
+++ b/common/recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb
@@ -0,0 +1,40 @@
+SUMMARY="ixgbe kernel driver for Intel Magnolia Park 10GbE"
+DESCRIPTION="Intel 10-Gbps Ethernet driver for Magnolia Park"
+AUTHOR = "Ong Boon Leong"
+HOMEPAGE = 
"http://www.intel.com/network/connectivity/products/server_adapters.htm;
+SECTION = "kernel/network"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = 
"file://${WORKDIR}/${PN}-${PV}/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI  = 
"https://sourceforge.net/projects/e1000/files/ixgbe%20stable/${PV}/${PN}-${PV}.tar.gz;
+
+SRC_URI[md5sum] = "ae35ed547aa6a5087672c3f70ce1e676"
+SRC_URI[sha256sum] = 
"9f537d79bddf0a087a17af632d57812d26d26bcfebbd4bdcf10df656ff055bb4"
+
+S = "${WORKDIR}/${PN}-${PV}/src"
+SCRIPT_DIR = "${WORKDIR}/${PN}-${PV}/scripts"
+
+EXTRA_OEMAKE='KSRC="${STAGING_KERNEL_BUILDDIR}" KVER="${KERNEL_VERSION}" \
+  BUILD_ARCH="${TARGET_ARCH}" PREFIX="${D}" \
+  
SYSTEM_MAP_FILE="${STAGING_KERNEL_BUILDDIR}/System.map-${KERNEL_VERSION}" 
INSTALL_MOD_PATH="${D}"'
+
+KERNEL_MODULE_AUTOLOAD_append_intel-core2-32 = " ixgbe"
+KERNEL_MODULE_AUTOLOAD_append_intel-corei7-64 = " ixgbe"
+
+inherit module
+
+MODULES_INSTALL_TARGET = "install"
+
+do_install_append () {
+   # Remove man and additional module info
+   rm -rf ${D}${prefix}/man
+   rm -rf ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.*
+
+# Install scripts/set_irq_affinity
+install -d  ${D}/etc/network
+install -m 0755 ${SCRIPT_DIR}/set_irq_affinity  ${D}/etc/network
+}
+
+PACKAGES += "${PN}-script"
+
+FILES_${PN}-script += "/etc/network/set_irq_affinity"
diff --git 
a/common/recipes-kernel/intel-ethernet/ixgbevf/0002-ixgbevf_common.patch 
b/common/recipes-kernel/intel-ethernet/ixgbevf/0002-ixgbevf_common.patch
new file mode 100644
index 000..d442e24
--- /dev/null
+++ b/common/recipes-kernel/intel-ethernet/ixgbevf/0002-ixgbevf_common.patch
@@ -0,0 +1,23 @@
+From f74fbcd821a394dec58263fd2c2ea62eae298b2f Mon Sep 17 00:00:00 2001
+From: "Goh, Wen Sen" 
+Date: Sun, 26 Jun 2016 12:01:36 +0800
+Subject: [PATCH] ixgbevf patch
+
+---
+ common.mk | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/common.mk b/common.mk
+index b9b01c7..228a926 100644
+--- a/common.mk
 b/common.mk
+@@ -289,6 +289,7 @@ export INSTALL_MOD_DIR ?= 
updates/drivers/net/ethernet/intel/${DRIVER}
+ kernelbuild = ${MAKE} $(if ${GCC_I_SYS},CC="${GCC_I_SYS}") \
+   ${CCFLAGS_VAR}="${EXTRA_CFLAGS}" \
+   -C "${KSRC}" \
++  CONFIG_IXGBE=m \
+   CONFIG_${DRIVER_UPPERCASE}=m \
+   M="${CURDIR}" \
+   ${2} ${1};
+--
+2.8.3
diff --git a/common/recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb 
b/common/recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb
new file mode 100644
index 000..1a92677
--- /dev/null
+++ b/common/recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb
@@ -0,0 +1,41 @@
+SUMMARY="ixgbevf kernel driver for Intel Magnolia Park 10GbE"
+DESCRIPTION="Intel 10-Gbps Ethernet driver for Magnolia Park"
+AUTHOR = "Ong Boon Leong"
+HOMEPAGE = 
"http://www.intel.com/network/connectivity/products/server_adapters.htm;
+SECTION = "kernel/network"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = 
"file://${WORKDIR}/${PN}-${PV}/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI  = 
"https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/${PV}/${PN}-${PV}.tar.gz;
+SRC_URI += "file://0002-ixgbevf_common.patch"
+
+SRC_URI[md5sum] = "f02ec46369d1ca949a1e9d2e0eb74d5f"
+SRC_URI[sha256sum] = 
"ab2824541f8a2d8f7b7d26ccbb46359ef551c5d4625fb333014e2b8023ac3ab6"
+
+S = "${WORKDIR}/${PN}-${PV}/src"
+SCRIPT_DIR = "${WORKDIR}/${PN}-${PV}/scripts"
+
+EXTRA_OEMAKE='KSRC="${STAGING_KERNEL_BUILDDIR}" KVER="${KERNEL_VERSION}" \
+  BUILD_ARCH="${TARGET_ARCH}" PREFIX="${D}" \
+  
SYSTEM_MAP_FILE="${STAGING_KERNEL_BUILDDIR}/System.map-${KERNEL_VERSION}" 
INSTALL_MOD_PATH="${D}"'
+
+KERNEL_MODULE_AUTOLOAD_append_intel-core2-32 = " ixgbevf"

[meta-intel] [PATCH 0/3] Upgrade ixgbe and remove in-tree ixgbe and ixgbevf modules

2017-08-09 Thread Syed Mohamad Fauzi, Syed Johan Arif
Dear maintainer,

Theses patches upgrade ixgbe to version 5.1.3 and remove the in-tree ixgbe and 
igbevf modules. 
One patch removes the in-tree modules from linux-intel and another from 
linux-yocto 4.4 

Syed Johan Arif Bin Syed Mohamad Fauzi (1):
  ixgbe upgrade to version 5.1.3

Syed Mohamad Fauzi, Syed Johan Arif (2):
  linux-yocto: remove ixgbe and ixgbevf
  linux-intel: remove ixgbe and ixgbevf

 .../recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb   | 40 +
 .../ixgbevf/0002-ixgbevf_common.patch  | 23 
 .../recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb | 41 ++
 common/recipes-kernel/linux/linux-intel.inc|  3 ++
 .../recipes-kernel/linux/linux-yocto_4.4.bbappend  |  7 +++-
 5 files changed, 113 insertions(+), 1 deletion(-)
 create mode 100644 common/recipes-kernel/intel-ethernet/ixgbe_5.1.3.bb
 create mode 100644 
common/recipes-kernel/intel-ethernet/ixgbevf/0002-ixgbevf_common.patch
 create mode 100644 common/recipes-kernel/intel-ethernet/ixgbevf_4.1.2.bb

-- 
1.9.1

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [PATCH 2/3] linux-yocto: remove ixgbe and ixgbevf

2017-08-09 Thread Syed Mohamad Fauzi, Syed Johan Arif
removing in-tree ixgbe and ixgbevf kernel module to enable out-of-tree ixgbe 
and ixgbevf module from linux-yocto 4.4

Signed-off-by: Syed Mohamad Fauzi, Syed Johan Arif 

---
 common/recipes-kernel/linux/linux-yocto_4.4.bbappend | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/common/recipes-kernel/linux/linux-yocto_4.4.bbappend 
b/common/recipes-kernel/linux/linux-yocto_4.4.bbappend
index c20f748..92233b0 100644
--- a/common/recipes-kernel/linux/linux-yocto_4.4.bbappend
+++ b/common/recipes-kernel/linux/linux-yocto_4.4.bbappend
@@ -33,7 +33,6 @@ SRCREV_meta_i586-nlp-32-intel-common ?= 
"${SRCREV_META_INTEL_COMMON}"
 SRCREV_machine_i586-nlp-32-intel-common ?= "${SRCREV_MACHINE_INTEL_COMMON}"
 KERNEL_FEATURES_append_i586-nlp-32-intel-common = ""
 
-
 # For Crystalforest and Romley
 KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio"
 KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio"
@@ -41,3 +40,9 @@ KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio"
 # For FRI2, NUC
 KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " iwlwifi"
 KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " iwlwifi"
+
+do_compile_kernelmodules_append() {
+   rm -rf ${B}/drivers/net/ethernet/intel/ixgbe
+   rm -rf ${B}/drivers/net/ethernet/intel/ixgbevf
+   rm -rf ${B}/net/ethernet
+}
-- 
1.9.1

-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel