when I ran “make” to install i40e driver,I get the error “cc1: error: code model kernel does not support PIC mode”
Then I searched the solution on the Internet, I tried the way as follow that looks like useful,
// adding explicit -fno-PIE to KBUILD_CFLAGS in the kernel headers Makefile.
KBUILD_CFLAGS += -mno-mmx -mno-sse -mno-sse2 -mno-3dnow
KBUILD_CFLAGS += $(call cc-option,-mno-avs,) -fno-PIE // add in this line
But at last, new errors happen, I don’t know how to solve it.
Please help me!!!