diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-05-06 00:04:57 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-09 22:26:44 +0100 |
commit | 4e5d6c71c86d60efcc7632d11bbce2f8c0ac65d2 (patch) | |
tree | f6f1b4a39f90e7070ca4ae87f610eae7de05c462 /meta/recipes-devtools | |
parent | 9ba0bf8b6af6626bd3b6d1558959a83b5c14d501 (diff) | |
download | poky-4e5d6c71c86d60efcc7632d11bbce2f8c0ac65d2.tar.gz |
gcc-4.9, gcc-5: Use variable SYSTEMLIBS_DIR instead of hardcoding it for aarch64
Change-Id: I54dc82a569f02d489137d88f16d6b768c4ab779b
(From OE-Core rev: dd45caac51868263bc7e7911a9c1ac96141ed474)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
4 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.9.inc b/meta/recipes-devtools/gcc/gcc-4.9.inc index ee31f0b620..9ed3e09dbd 100644 --- a/meta/recipes-devtools/gcc/gcc-4.9.inc +++ b/meta/recipes-devtools/gcc/gcc-4.9.inc | |||
@@ -78,6 +78,7 @@ SRC_URI = "\ | |||
78 | file://0060-Only-allow-e500-double-in-SPE_SIMD_REGNO_P-registers.patch \ | 78 | file://0060-Only-allow-e500-double-in-SPE_SIMD_REGNO_P-registers.patch \ |
79 | file://0061-target-gcc-includedir.patch \ | 79 | file://0061-target-gcc-includedir.patch \ |
80 | file://0062-gcc-var-tracking.c-backport-from-gcc-trunk-r212178.patch \ | 80 | file://0062-gcc-var-tracking.c-backport-from-gcc-trunk-r212178.patch \ |
81 | file://0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ | ||
81 | " | 82 | " |
82 | SRC_URI[md5sum] = "4df8ee253b7f3863ad0b86359cd39c43" | 83 | SRC_URI[md5sum] = "4df8ee253b7f3863ad0b86359cd39c43" |
83 | SRC_URI[sha256sum] = "2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd" | 84 | SRC_URI[sha256sum] = "2020c98295856aa13fda0f2f3a4794490757fc24bcca918d52cc8b4917b972dd" |
diff --git a/meta/recipes-devtools/gcc/gcc-4.9/0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch b/meta/recipes-devtools/gcc/gcc-4.9/0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file mode 100644 index 0000000000..c48bd48478 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.9/0063-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 861bcfd4ae814f351e0c668ee26d01d1331e0422 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 28 Apr 2015 23:15:27 -0700 | ||
4 | Subject: [PATCH 36/37] Use SYSTEMLIBS_DIR replacement instead of hardcoding | ||
5 | base_libdir | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | gcc/config/aarch64/aarch64-linux.h | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | Index: gcc-4.9.2/gcc/config/aarch64/aarch64-linux.h | ||
13 | =================================================================== | ||
14 | --- gcc-4.9.2.orig/gcc/config/aarch64/aarch64-linux.h | ||
15 | +++ gcc-4.9.2/gcc/config/aarch64/aarch64-linux.h | ||
16 | @@ -21,7 +21,7 @@ | ||
17 | #ifndef GCC_AARCH64_LINUX_H | ||
18 | #define GCC_AARCH64_LINUX_H | ||
19 | |||
20 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1" | ||
21 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}.so.1" | ||
22 | |||
23 | #define CPP_SPEC "%{pthread:-D_REENTRANT}" | ||
24 | |||
diff --git a/meta/recipes-devtools/gcc/gcc-5.1.inc b/meta/recipes-devtools/gcc/gcc-5.1.inc index d38a7d9d91..db4c795ef9 100644 --- a/meta/recipes-devtools/gcc/gcc-5.1.inc +++ b/meta/recipes-devtools/gcc/gcc-5.1.inc | |||
@@ -67,6 +67,7 @@ SRC_URI = "\ | |||
67 | file://0033-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ | 67 | file://0033-gcc-4.8-won-t-build-with-disable-dependency-tracking.patch \ |
68 | file://0034-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ | 68 | file://0034-Don-t-search-host-directory-during-relink-if-inst_pr.patch \ |
69 | file://0035-Dont-link-the-plugins-with-libgomp-explicitly.patch \ | 69 | file://0035-Dont-link-the-plugins-with-libgomp-explicitly.patch \ |
70 | file://0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch \ | ||
70 | " | 71 | " |
71 | 72 | ||
72 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${SNAP}" | 73 | #S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/gcc-${SNAP}" |
diff --git a/meta/recipes-devtools/gcc/gcc-5.1/0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch b/meta/recipes-devtools/gcc/gcc-5.1/0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch new file mode 100644 index 0000000000..b691946b0e --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-5.1/0036-Use-SYSTEMLIBS_DIR-replacement-instead-of-hardcoding.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 861bcfd4ae814f351e0c668ee26d01d1331e0422 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 28 Apr 2015 23:15:27 -0700 | ||
4 | Subject: [PATCH 36/37] Use SYSTEMLIBS_DIR replacement instead of hardcoding | ||
5 | base_libdir | ||
6 | |||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | gcc/config/aarch64/aarch64-linux.h | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/gcc/config/aarch64/aarch64-linux.h b/gcc/config/aarch64/aarch64-linux.h | ||
13 | index 9abb252..79525ee 100644 | ||
14 | --- a/gcc/config/aarch64/aarch64-linux.h | ||
15 | +++ b/gcc/config/aarch64/aarch64-linux.h | ||
16 | @@ -21,7 +21,7 @@ | ||
17 | #ifndef GCC_AARCH64_LINUX_H | ||
18 | #define GCC_AARCH64_LINUX_H | ||
19 | |||
20 | -#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
21 | +#define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1" | ||
22 | |||
23 | #undef ASAN_CC1_SPEC | ||
24 | #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" | ||
25 | -- | ||
26 | 2.1.4 | ||
27 | |||