Added DKMS build support
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2021-10-25 20:09:44 +02:00
parent 94b90f2cba
commit aa71bfd93b
5 changed files with 19 additions and 6 deletions

9
dkms.conf Normal file
View file

@ -0,0 +1,9 @@
MAKE="make -C src/ BUILD_KERNEL=${kernelver} KSRC=${kernel_source_dir} CONFIG_UIO=1"
CLEAN="make -C src/ clean"
BUILT_MODULE_NAME=fm10k
BUILT_MODULE_LOCATION=src/
PACKAGE_NAME=fm10k
PACKAGE_VERSION=0.27.1-gs-patched
DEST_MODULE_NAME=fm10k
DEST_MODULE_LOCATION=/updates/drivers/net/ethernet/intel
AUTOINSTALL=yes

View file

@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright(c) 2013 - 2019 Intel Corporation.
ifneq ($(KERNELRELEASE),)
ifneq ($(DO_ACTUAL_BUILD),)
# kbuild part of makefile
#
# Makefile for the Intel(R) Ethernet Switch Host Interface Driver
@ -29,7 +29,7 @@ fm10k-y += fm10k_uio.o
endif
fm10k-y += kcompat.o
else # ifneq($(KERNELRELEASE),)
else # ifneq($(DO_ACTUAL_BUILD),)
# normal makefile
DRIVER := fm10k
@ -170,4 +170,4 @@ help:
.PHONY: default noisy clean manfile silent sparse ccc install uninstall help
endif # ifneq($(KERNELRELEASE),)
endif # ifneq($(DO_ACTUAL_BUILD),)

View file

@ -300,5 +300,6 @@ kernelbuild = ${MAKE} $(if ${GCC_I_SYS},CC="${GCC_I_SYS}") \
${CCFLAGS_VAR}="${EXTRA_CFLAGS}" \
-C "${KSRC}" \
CONFIG_${DRIVER_UPPERCASE}=m \
DO_ACTUAL_BUILD=y \
M="${CURDIR}" \
${2} ${1}

View file

@ -13,10 +13,10 @@
#include "fm10k.h"
#define DRV_VERSION "0.27.1-gs-patched"
#define DRV_SUMMARY "Intel(R) Ethernet Switch Host Interface Driver"
#include "version.h"
const char fm10k_driver_version[] = DRV_VERSION;
char fm10k_driver_name[] = "fm10k";
char fm10k_driver_name[] = DRV_NAME;
static const char fm10k_driver_string[] = DRV_SUMMARY;
static const char fm10k_copyright[] =
"Copyright(c) 2013 - 2019 Intel Corporation.";

3
src/version.h Normal file
View file

@ -0,0 +1,3 @@
#define DRV_NAME "fm10k"
#define DRV_VERSION "0.27.1-gs-patched"
#define DRV_SUMMARY "Intel(R) Ethernet Switch Host Interface Driver"