mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 12:59:03 +02:00
ixgbevf: cleanup recipe
* Remove unnecessary code and include version info in recipe. * Better description of the package and project page * Change do_install to use S instead of WORKDIR. Using S would fail when used with devtool that relies on externalsrc class. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
This commit is contained in:
parent
d5699efd24
commit
632399bb6f
|
@ -1,46 +0,0 @@
|
|||
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"
|
||||
|
||||
PV = "4.3.4"
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = "https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/${PV}/ixgbevf-${PV}.tar.gz \
|
||||
file://0001-ixgbevf-src-Makefile-change-make-install-to-make.patch \
|
||||
file://0002-ixgbevf_common.patch \
|
||||
file://0001-ixgbevf-skip-host-depmod.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "9459bf9ac4b2b827bee2ff147d192622"
|
||||
SRC_URI[sha256sum] = "63a6568be16347e19bae74238d739cd7ffa83a6236c6d8e25d2539d46cb25f88"
|
||||
|
||||
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
|
||||
|
||||
do_install_append () {
|
||||
# Install scripts/set_irq_affinity
|
||||
install -d ${D}/etc/network
|
||||
install -m 0755 ${SCRIPT_DIR}/set_irq_affinity ${D}/etc/network
|
||||
}
|
||||
|
||||
#SSTATE_DUPWHITELIST += "${STAGING_DIR_HOST}/lib/modules/${KERNEL_VERSION}/"
|
||||
|
||||
PACKAGES += "${PN}-script"
|
||||
|
||||
FILES_${PN}-script += "/etc/network/set_irq_affinity"
|
||||
|
||||
#Ignore "ERROR: QA Issue: ixgbe: Files/directories were installed but not shipped"
|
||||
INSANE_SKIP_${PN} = "installed-vs-shipped"
|
|
@ -0,0 +1,27 @@
|
|||
From b1d7f46442e50458311573443a5c78637874f62b Mon Sep 17 00:00:00 2001
|
||||
From: Anuj Mittal <anuj.mittal@intel.com>
|
||||
Date: Thu, 12 Apr 2018 11:46:15 +0800
|
||||
Subject: [PATCH] Makefile: check for CONFIG_IXGBEVF instead
|
||||
|
||||
Check for the correct config, otherwise it won't build with kbuild.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
|
||||
---
|
||||
src/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 968ef5e..e3cb81b 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -28,7 +28,7 @@ ifneq ($(KERNELRELEASE),)
|
||||
# Makefile for the Intel(R) 10GbE PCI Express Virtual Function Driver
|
||||
#
|
||||
|
||||
-obj-$(CONFIG_IXGBE) += ixgbevf.o
|
||||
+obj-$(CONFIG_IXGBEVF) += ixgbevf.o
|
||||
|
||||
define ixgbevf-y
|
||||
ixgbevf_main.o
|
|
@ -1,32 +0,0 @@
|
|||
From 511ee0d8d40a3e76b3e9875a96228ff370dbdfc6 Mon Sep 17 00:00:00 2001
|
||||
From: "Goh, Wen Sen" <wen.sen.goh@intel.com>
|
||||
Date: Wed, 22 Jun 2016 11:25:41 +0800
|
||||
Subject: [PATCH] ixgbevf_patch
|
||||
|
||||
---
|
||||
Makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 8df134a..8d5660e 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -100,7 +100,7 @@ clean:
|
||||
@-rm -rf *.${MANSECTION}.gz *.ko
|
||||
|
||||
# Install the modules and manpage
|
||||
-install: default manfile
|
||||
+modules_install: default manfile
|
||||
@echo "Copying manpages..."
|
||||
@install -D -m 644 ${DRIVER}.${MANSECTION}.gz ${INSTALL_MOD_PATH}${MANDIR}/man${MANSECTION}/${DRIVER}.${MANSECTION}.gz
|
||||
@echo "Installing modules..."
|
||||
@@ -145,6 +145,6 @@ help:
|
||||
@echo ' Other variables may be available for tuning make process, see'
|
||||
@echo ' Kernel Kbuild documentation for more information'
|
||||
|
||||
-.PHONY: default noisy clean manfile silent sparse ccc install uninstall help
|
||||
+.PHONY: default noisy clean manfile silent sparse ccc modules_install uninstall help
|
||||
|
||||
endif # ifneq($(KERNELRELEASE),)
|
||||
--
|
||||
2.8.3
|
|
@ -1,23 +0,0 @@
|
|||
From f74fbcd821a394dec58263fd2c2ea62eae298b2f Mon Sep 17 00:00:00 2001
|
||||
From: "Goh, Wen Sen" <wen.sen.goh@intel.com>
|
||||
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
|
41
recipes-kernel/intel-ethernet/ixgbevf_4.3.4.bb
Normal file
41
recipes-kernel/intel-ethernet/ixgbevf_4.3.4.bb
Normal file
|
@ -0,0 +1,41 @@
|
|||
SUMMARY="ixgbevf kernel driver for Intel Magnolia Park 10GbE"
|
||||
DESCRIPTION="This virtual function driver supports kernel versions 2.6.x and newer \
|
||||
This driver supports 82599, X540, X550, and X552-based virtual function devices \
|
||||
that can only be activated on kernels that support SR-IOV. \
|
||||
SR-IOV requires the correct platform and OS support. \
|
||||
The guest OS loading this driver must support MSI-X interrupts."
|
||||
|
||||
HOMEPAGE = "https://sourceforge.net/projects/e1000/"
|
||||
SECTION = "kernel/network"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/${BP}/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/${PV}/${BP}.tar.gz \
|
||||
file://0001-ixgbevf-skip-host-depmod.patch \
|
||||
file://0001-Makefile-check-for-CONFIG_IXGBEVF-instead.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "9459bf9ac4b2b827bee2ff147d192622"
|
||||
SRC_URI[sha256sum] = "63a6568be16347e19bae74238d739cd7ffa83a6236c6d8e25d2539d46cb25f88"
|
||||
|
||||
S = "${WORKDIR}/${BP}/src"
|
||||
MODULES_INSTALL_TARGET = "install"
|
||||
|
||||
EXTRA_OEMAKE='KSRC="${STAGING_KERNEL_BUILDDIR}" KVER="${KERNEL_VERSION}" INSTALL_MOD_PATH="${D}"'
|
||||
|
||||
KERNEL_MODULE_AUTOLOAD_append_intel-core2-32 = " ixgbevf"
|
||||
KERNEL_MODULE_AUTOLOAD_append_intel-corei7-64 = " ixgbevf"
|
||||
|
||||
inherit module
|
||||
|
||||
do_install_append () {
|
||||
# Install scripts/set_irq_affinity
|
||||
install -d ${D}${sysconfdir}/network
|
||||
install -m 0755 ${S}/../scripts/set_irq_affinity ${D}${sysconfdir}/network
|
||||
|
||||
rm -rf ${D}${prefix}/man
|
||||
}
|
||||
|
||||
PACKAGES += "${PN}-script"
|
||||
|
||||
FILES_${PN}-script += "${sysconfdir}/network/set_irq_affinity"
|
Loading…
Reference in New Issue
Block a user