diff options
author | Elvis Dowson <elvis.dowson@gmail.com> | 2013-03-29 12:23:09 +0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-22 14:45:04 +0100 |
commit | fd566d20b76c0c9febcd7a13cfd4b062d2d14424 (patch) | |
tree | 9f95a07483a7172587742ff69ba50b70a67df926 /meta/recipes-devtools/gcc/gcc-4.8/0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | |
parent | c3cc4bfc83e53acdb2e7ef6ac139598a5ebd8a7f (diff) | |
download | poky-fd566d20b76c0c9febcd7a13cfd4b062d2d14424.tar.gz |
gcc-4.8: Refactor gcc-4.8.0 patch files.
(From OE-Core rev: 16ab55220c4b602a8406c7a4405c737caae5907b)
Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.8/0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.8/0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch b/meta/recipes-devtools/gcc/gcc-4.8/0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch new file mode 100644 index 0000000000..9e4435cf59 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8/0023-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch | |||
@@ -0,0 +1,88 @@ | |||
1 | From 46d52439052f0876a92dcf8a0ab9c60d75c8030b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 29 Mar 2013 09:17:25 +0400 | ||
4 | Subject: [PATCH 23/35] Use the defaults.h in ${B} instead of ${S}, and t-oe | ||
5 | in ${B} | ||
6 | |||
7 | Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}, so that | ||
8 | the source can be shared between gcc-cross-initial, | ||
9 | gcc-cross-intermediate, gcc-cross, gcc-runtime, and also the sdk build. | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | --- | ||
15 | gcc/Makefile.in | 2 +- | ||
16 | gcc/configure | 4 ++-- | ||
17 | gcc/configure.ac | 4 ++-- | ||
18 | gcc/mkconfig.sh | 4 ++-- | ||
19 | 4 files changed, 7 insertions(+), 7 deletions(-) | ||
20 | |||
21 | diff --git a/gcc/Makefile.in b/gcc/Makefile.in | ||
22 | index 90a2bba..2320497 100644 | ||
23 | --- a/gcc/Makefile.in | ||
24 | +++ b/gcc/Makefile.in | ||
25 | @@ -469,7 +469,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ | ||
26 | TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@ | ||
27 | |||
28 | xmake_file=@xmake_file@ | ||
29 | -tmake_file=@tmake_file@ | ||
30 | +tmake_file=@tmake_file@ ./t-oe | ||
31 | TM_ENDIAN_CONFIG=@TM_ENDIAN_CONFIG@ | ||
32 | TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ | ||
33 | TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ | ||
34 | diff --git a/gcc/configure b/gcc/configure | ||
35 | index bdab45a..d587993 100755 | ||
36 | --- a/gcc/configure | ||
37 | +++ b/gcc/configure | ||
38 | @@ -11539,8 +11539,8 @@ for f in $tm_file; do | ||
39 | tm_include_list="${tm_include_list} $f" | ||
40 | ;; | ||
41 | defaults.h ) | ||
42 | - tm_file_list="${tm_file_list} \$(srcdir)/$f" | ||
43 | - tm_include_list="${tm_include_list} $f" | ||
44 | + tm_file_list="${tm_file_list} ./$f" | ||
45 | + tm_include_list="${tm_include_list} ./$f" | ||
46 | ;; | ||
47 | * ) | ||
48 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | ||
49 | diff --git a/gcc/configure.ac b/gcc/configure.ac | ||
50 | index 5f5c909..5e5e84f 100644 | ||
51 | --- a/gcc/configure.ac | ||
52 | +++ b/gcc/configure.ac | ||
53 | @@ -1720,8 +1720,8 @@ for f in $tm_file; do | ||
54 | tm_include_list="${tm_include_list} $f" | ||
55 | ;; | ||
56 | defaults.h ) | ||
57 | - tm_file_list="${tm_file_list} \$(srcdir)/$f" | ||
58 | - tm_include_list="${tm_include_list} $f" | ||
59 | + tm_file_list="${tm_file_list} ./$f" | ||
60 | + tm_include_list="${tm_include_list} ./$f" | ||
61 | ;; | ||
62 | * ) | ||
63 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | ||
64 | diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh | ||
65 | index 29fdfc7..e048dce 100644 | ||
66 | --- a/gcc/mkconfig.sh | ||
67 | +++ b/gcc/mkconfig.sh | ||
68 | @@ -77,7 +77,7 @@ if [ -n "$HEADERS" ]; then | ||
69 | if [ $# -ge 1 ]; then | ||
70 | echo '#ifdef IN_GCC' >> ${output}T | ||
71 | for file in "$@"; do | ||
72 | - if test x"$file" = x"defaults.h"; then | ||
73 | + if test x"$file" = x"./defaults.h"; then | ||
74 | postpone_defaults_h="yes" | ||
75 | else | ||
76 | echo "# include \"$file\"" >> ${output}T | ||
77 | @@ -103,7 +103,7 @@ esac | ||
78 | |||
79 | # If we postponed including defaults.h, add the #include now. | ||
80 | if test x"$postpone_defaults_h" = x"yes"; then | ||
81 | - echo "# include \"defaults.h\"" >> ${output}T | ||
82 | + echo "# include \"./defaults.h\"" >> ${output}T | ||
83 | fi | ||
84 | |||
85 | # Add multiple inclusion protection guard, part two. | ||
86 | -- | ||
87 | 1.7.10.4 | ||
88 | |||