Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OTC:Drivers
ixgbevf216
sles15-kbuild.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sles15-kbuild.diff of Package ixgbevf216
Index: ixgbevf-2.16.4/src/Makefile =================================================================== --- ixgbevf-2.16.4.orig/src/Makefile +++ ixgbevf-2.16.4/src/Makefile @@ -166,28 +166,31 @@ ifneq ($(KSRC),$(shell readlink /lib/mod KOBJ=/lib/modules/$(KVER)/build endif endif +# look for SMP in config.h +SMP := $(shell $(CC) $(EXTRA_CFLAGS) -E -dM $(CONFIG_FILE) | \ + grep -w CONFIG_SMP | awk '{ print $$3 }') +ifneq ($(SMP),1) + SMP := 0 +endif + KVER_CODE := $(shell $(CC) $(EXTRA_CFLAGS) -E -dM $(VSP) 2>/dev/null |\ grep -m 1 LINUX_VERSION_CODE | awk '{ print $$3 }' | sed 's/\"//g') # abort the build on kernels older than 2.4.0 ifneq (1,$(shell [ $(KVER_CODE) -ge 132096 ] && echo 1 || echo 0)) - $(error *** Aborting the build. \ + $(warning *** Aborting the build. \ *** This driver is not supported on kernel versions older than 2.4.0) + $(warning *** Assume kernel 4.12 SMP. Failed cmd: $(CC) $(EXTRA_CFLAGS) -E -dM $(VSP) ***) + KVER_CODE := 265216 + SMP := 1 endif # set the install path INSTDIR := /lib/modules/$(KVER)/kernel/drivers/net/$(DRIVER_NAME) -# look for SMP in config.h -SMP := $(shell $(CC) $(EXTRA_CFLAGS) -E -dM $(CONFIG_FILE) | \ - grep -w CONFIG_SMP | awk '{ print $$3 }') -ifneq ($(SMP),1) - SMP := 0 -endif - ifneq ($(SMP),$(shell uname -a | grep SMP > /dev/null 2>&1 && echo 1 || echo 0)) $(warning ***) ifeq ($(SMP),1) $(warning *** Warning: kernel source configuration (SMP))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor