diff options
author | Anuj Mittal <anujx.mittal@intel.com> | 2015-09-18 15:40:05 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2015-09-21 09:14:53 -0700 |
commit | 1201a576c9bcdab3bfcf87efeb2184f0025ae53e (patch) | |
tree | 50f32b8f7353c97ddbe6be22b2871a7d6f593fec /meta-isg/common/recipes-extended/qat/qat16.inc | |
parent | 10a7d933f18c3796c431436b028cca844be12180 (diff) | |
download | meta-intel-1201a576c9bcdab3bfcf87efeb2184f0025ae53e.tar.gz |
meta-isg: qat: fix inline build errors for gcc5
gcc5 has changed its default standard to gnu11 from gnu89.
These two standards have different inline semantics. This
results in errors like:
undefined reference to `icp_adf_getQueueNext'
undefined reference to `icp_adf_updateQueueTail'
undefined reference to `icp_adf_pollQueue'
undefined reference to `icp_adf_queueDataToSend'
undefined reference to `icp_adf_getQueueMemory'
Use the -fgnu89-inline command line option as suggested in [1].
Also, make sure that all the CFLAGS values are being picked up
by the compiler.
[1] https://gcc.gnu.org/gcc-5/porting_to.html
Signed-off-by: Anuj Mittal <anujx.mittal@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-isg/common/recipes-extended/qat/qat16.inc')
-rw-r--r-- | meta-isg/common/recipes-extended/qat/qat16.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-isg/common/recipes-extended/qat/qat16.inc b/meta-isg/common/recipes-extended/qat/qat16.inc index e602dbd8..822db5d8 100644 --- a/meta-isg/common/recipes-extended/qat/qat16.inc +++ b/meta-isg/common/recipes-extended/qat/qat16.inc | |||
@@ -14,6 +14,7 @@ PROVIDES += "virtual/qat" | |||
14 | SRC_URI="https://01.org/sites/default/files/page/qatmux.l.${PV}.tgz;name=qat \ | 14 | SRC_URI="https://01.org/sites/default/files/page/qatmux.l.${PV}.tgz;name=qat \ |
15 | file://qat16_2.3.0-34-qat-fix-for-cross-compilation-issue.patch \ | 15 | file://qat16_2.3.0-34-qat-fix-for-cross-compilation-issue.patch \ |
16 | file://qat16_2.3.0-34-qat-remove-local-path-from-makefile.patch \ | 16 | file://qat16_2.3.0-34-qat-remove-local-path-from-makefile.patch \ |
17 | file://qat16_2.3.0-34-make-sure-CFLAGS-are-correct.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | COMPATIBLE_MACHINE = "crystalforest" | 20 | COMPATIBLE_MACHINE = "crystalforest" |
@@ -46,6 +47,8 @@ PARALLEL_MAKE = "" | |||
46 | #To get around the double slashes in paths in QAT makefiles | 47 | #To get around the double slashes in paths in QAT makefiles |
47 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | 48 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" |
48 | 49 | ||
50 | EXTRA_OEMAKE_append = " CFLAGS+=-fgnu89-inline" | ||
51 | |||
49 | do_unpack2() { | 52 | do_unpack2() { |
50 | cd ${S}/ | 53 | cd ${S}/ |
51 | tar xzvf ${ICP_DRIVER_TYPE}.L.${PV}.tar.gz | 54 | tar xzvf ${ICP_DRIVER_TYPE}.L.${PV}.tar.gz |