mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
igb: add vendor driver from Intel
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
ee0e1a3da4
commit
4987ac2cea
45
package/kernel/igb/Makefile
Normal file
45
package/kernel/igb/Makefile
Normal file
@ -0,0 +1,45 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Copyright (C) 2022 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=igb
|
||||
PKG_VERSION:=5.13.7
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@IMMORTALWRT
|
||||
PKG_HASH:=4ccae73110f3c871a17b7cc6df7dbdf6295fc90f4941e8b2978a471c2fec83cb
|
||||
|
||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||
PKG_LICENSE:=GPL-2.0-only
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define KernelPackage/igb-vendor
|
||||
SUBMENU:=Network Devices
|
||||
TITLE:=Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support (vendor driver)
|
||||
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||
DEPENDS:=@PCI_SUPPORT +kmod-i2c-core +kmod-i2c-algo-bit +kmod-ptp +kmod-hwmon-core
|
||||
CONFLICTS:=kmod-igb
|
||||
FILES:=$(PKG_BUILD_DIR)/src/igb.ko
|
||||
AUTOLOAD:=$(call AutoProbe,igb)
|
||||
endef
|
||||
|
||||
define KernelPackage/igb-vendor/description
|
||||
Kernel modules for Intel(R) 82575/82576 PCI-Express Gigabit Ethernet adapters.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
||||
M=$(PKG_BUILD_DIR)/src \
|
||||
CONFIG_IGB=m \
|
||||
modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,igb-vendor))
|
10
package/kernel/igb/patches/100-headers.patch
Normal file
10
package/kernel/igb/patches/100-headers.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/src/igb_main.c
|
||||
+++ b/src/igb_main.c
|
||||
@@ -25,6 +25,7 @@
|
||||
#ifdef CONFIG_PM_RUNTIME
|
||||
#include <linux/pm_runtime.h>
|
||||
#endif /* CONFIG_PM_RUNTIME */
|
||||
+#include <linux/ctype.h>
|
||||
|
||||
#include <linux/if_bridge.h>
|
||||
#include "igb.h"
|
Loading…
x
Reference in New Issue
Block a user