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

Wold, Saul saul.wold at intel.com
Fri Aug 11 09:19:24 PDT 2017


On Thu, 2017-08-10 at 13:21 +0800, Syed Mohamad Fauzi, Syed Johan Arif
wrote:
> From: Syed Johan Arif Bin Syed Mohamad Fauzi <syed.johan.arif.syed.mo
> hamad.fauzi at intel.com>
> 
Almost there!  There are a few more tweaks needed.

> Signed-off-by: Syed Mohamad Fauzi, Syed Johan Arif
> <syed.johan.arif.syed.mohamad.fauzi at intel.com>
> ---
>  .../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 0000000..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/serve
> r_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%20sta
> ble/${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"

The "/etc" references should really be ${sysconfdir} here and above


> 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 0000000..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" <wen.sen.goh at intel.com>
> +Date: Sun, 26 Jun 2016 12:01:36 +0800
> +Subject: [PATCH] ixgbevf patch
> +
Please add a Signed-off-by and Upstream-Status to the 0002-
ixbgevf_common.patch file.


> +---
> + 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 0000000..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/serve
> r_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%20s
> table/${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"
> +KERNEL_MODULE_AUTOLOAD_append_intel-corei7-64 = " ixgbevf"
> +
> +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"

Same for the "/etc" reference should be ${sysconfdir}
> -- 
> 1.9.1
> 


More information about the meta-intel mailing list