mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
iavf: add intel vendor driver
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
33d2539582
commit
5c237602f0
58
package/kernel/iavf/Makefile
Normal file
58
package/kernel/iavf/Makefile
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
#
|
||||||
|
# Copyright (C) 2023 ImmortalWrt.org
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
|
PKG_NAME:=iavf
|
||||||
|
PKG_VERSION:=4.8.2
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=@SF/e1000/iavf%20stable/$(PKG_VERSION)/
|
||||||
|
PKG_HASH:=78d986de9667f260e806a3d0962dfee32ac35a686a672c15c209a29252d42d48
|
||||||
|
|
||||||
|
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/iavf-vendor
|
||||||
|
SUBMENU:=Network Devices
|
||||||
|
TITLE:=Intel(R) Ethernet Adaptive Virtual Function support (vendor driver)
|
||||||
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
|
DEPENDS:=@PCI_SUPPORT +kmod-i40e-vendor
|
||||||
|
CONFLICTS:=kmod-iavf
|
||||||
|
FILES:=$(PKG_BUILD_DIR)/src/iavf.ko
|
||||||
|
AUTOLOAD:=$(call AutoProbe,iavf)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/iavf-vendor/description
|
||||||
|
Kernel modules for Intel XL710,
|
||||||
|
X710, X722, XXV710, and all devices advertising support for
|
||||||
|
Intel Ethernet Adaptive Virtual Function devices.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
( \
|
||||||
|
pushd $(PKG_BUILD_DIR)/src ; \
|
||||||
|
KSRC=$(LINUX_DIR) \
|
||||||
|
OUT=kcompat_generated_defs.h \
|
||||||
|
CONFFILE=$(LINUX_DIR)/include/generated/autoconf.h \
|
||||||
|
bash kcompat-generator.sh ; \
|
||||||
|
popd ; \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
||||||
|
M=$(PKG_BUILD_DIR)/src \
|
||||||
|
NEED_AUX_BUS=2 \
|
||||||
|
modules
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,iavf-vendor))
|
Loading…
x
Reference in New Issue
Block a user