diff options
Diffstat (limited to 'common/recipes-extended/qat/qat16/qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch')
-rw-r--r-- | common/recipes-extended/qat/qat16/qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-extended/qat/qat16/qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch b/common/recipes-extended/qat/qat16/qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch new file mode 100644 index 00000000..21cdeaee --- /dev/null +++ b/common/recipes-extended/qat/qat16/qat16_2.6.0-65-qat-override-CC-LD-AR-only-when-it-is-not-define.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From b21929c42aca4bc80f6c48b5ac31bf20165b2f3e Mon Sep 17 00:00:00 2001 | ||
2 | From: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
3 | Date: Fri, 25 Mar 2016 18:02:37 +0800 | ||
4 | Subject: [PATCH] qat: override CC LD AR only when it is not define | ||
5 | |||
6 | Upstream-Status: Inappropriate [Configuration] | ||
7 | |||
8 | To make sure that compiler linker and archiver will override only when | ||
9 | it is not defined by the environment. | ||
10 | |||
11 | Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com> | ||
12 | --- | ||
13 | quickassist/build_system/build_files/Core/ia.mk | 6 +++--- | ||
14 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
15 | |||
16 | diff --git a/quickassist/build_system/build_files/Core/ia.mk b/quickassist/build_system/build_files/Core/ia.mk | ||
17 | index 4a4d123..f9aca23 100755 | ||
18 | --- a/quickassist/build_system/build_files/Core/ia.mk | ||
19 | +++ b/quickassist/build_system/build_files/Core/ia.mk | ||
20 | @@ -67,9 +67,9 @@ | ||
21 | # e.g. setenv CROSS_COMPILE x86_64-linux | ||
22 | ifdef CROSS_COMPILE | ||
23 | ifdef MACHINE | ||
24 | -CC = $(CROSS_COMPILE)gcc | ||
25 | -LD = $(CROSS_COMPILE)ld | ||
26 | -AR = $(CROSS_COMPILE)ar | ||
27 | +CC ?= $(CROSS_COMPILE)gcc | ||
28 | +LD ?= $(CROSS_COMPILE)ld | ||
29 | +AR ?= $(CROSS_COMPILE)ar | ||
30 | else | ||
31 | $(error MACHINE is undefined. Please set your target i.e. x86_64 \ | ||
32 | "-> setenv MACHINE x86_64 or export MACHINE=x86_64") | ||
33 | -- | ||
34 | 1.9.1 | ||
35 | |||