diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-12-01 14:54:02 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-12 21:50:17 +0000 |
commit | cd044f6adb25005313497c5f47f07ac7d13ac6c8 (patch) | |
tree | 1412e112cab1805476717334664d2a4461084c74 /meta/recipes-extended/mdadm/files | |
parent | 3c96a5386355969428163ddb60216cc989e00b3d (diff) | |
download | poky-cd044f6adb25005313497c5f47f07ac7d13ac6c8.tar.gz |
mdadm: Make custom CC definition conditional
By hardcoding CC's definition in the Makefile, all the gcc parameters
set by tune settings are lost. Causing compile failure with x32 toolchain
As the bitbake defined CC is good, there is no need to redfine CC in the
make file, hence making the CC definition in the Makefile conditional.
This fixes bug: [YOCTO #1414]
(From OE-Core rev: c877ec8ff1dfbf0123f94711f44cea043815a9c1)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/mdadm/files')
-rw-r--r-- | meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch b/meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch new file mode 100644 index 0000000000..79ba2cf9e9 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | UpstreamStatus: pending | ||
2 | |||
3 | By hardcoding CC's definition in the Makefile, all the gcc parameters | ||
4 | set by tune settings are lost. Causing compile failure with x32 toolchain | ||
5 | |||
6 | As the bitbake defined CC is good, there is no need to redfine CC in the | ||
7 | make file, hence making the CC definition in the Makefile conditional. | ||
8 | |||
9 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/07 | ||
10 | |||
11 | Index: mdadm-3.2.2/Makefile | ||
12 | =================================================================== | ||
13 | --- mdadm-3.2.2.orig/Makefile | ||
14 | +++ mdadm-3.2.2/Makefile | ||
15 | @@ -40,7 +40,8 @@ KLIBC=/home/src/klibc/klibc-0.77 | ||
16 | |||
17 | KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32 | ||
18 | |||
19 | -CC = $(CROSS_COMPILE)gcc | ||
20 | +CC ?= $(CROSS_COMPILE)gcc | ||
21 | + | ||
22 | CXFLAGS = -ggdb | ||
23 | CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter | ||
24 | ifdef WARN_UNUSED | ||