Disabling PIE during ixgbevf compilation for AWS +

enhanced network instances Stretch upwards.
* For GCC >=6 in Debian PIE (Position Independent Executable) has being activated
  it is causing enhanced network driver for AWS images to fail at
  compilation time due to incompatibility with PIE options for the kernel
* To learn what PIE is read docs at
  https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
This commit is contained in:
Marcin Kulisz 2016-10-28 15:16:38 +01:00
parent d99f345fa9
commit 0d95674c36

View file

@ -106,7 +106,7 @@ class InstallEnhancedNetworking(Task):
with open(os.path.join(module_path, 'dkms.conf'), 'w') as dkms_conf:
dkms_conf.write("""PACKAGE_NAME="ixgbevf"
PACKAGE_VERSION="%s"
CLEAN="cd src/; make clean"
CLEAN="cd src/; sed -i '1s/^/EXTRA_CFLAGS := -fno-pie/' Makefile && make clean"
MAKE="cd src/; make BUILD_KERNEL=${kernelver}"
BUILT_MODULE_LOCATION[0]="src/"
BUILT_MODULE_NAME[0]="ixgbevf"