diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-target.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 1e25dad86b..7dac3ef422 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc | |||
@@ -5,7 +5,7 @@ EXTRA_OECONF_PATHS = "\ | |||
5 | --with-build-sysroot=${STAGING_DIR_TARGET} \ | 5 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
6 | " | 6 | " |
7 | 7 | ||
8 | EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" | 8 | EXTRA_OECONF:append:linuxstdbase = " --enable-clocale=gnu" |
9 | 9 | ||
10 | # Configure gcc running on the target to default to an architecture which will | 10 | # Configure gcc running on the target to default to an architecture which will |
11 | # be compatible with that of gcc-runtime (which is cross compiled to be target | 11 | # be compatible with that of gcc-runtime (which is cross compiled to be target |
@@ -15,11 +15,11 @@ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" | |||
15 | 15 | ||
16 | ARMFPARCHEXT ?= "" | 16 | ARMFPARCHEXT ?= "" |
17 | 17 | ||
18 | EXTRA_OECONF_append_armv6_class-target = " --with-arch=armv6${ARMFPARCHEXT}" | 18 | EXTRA_OECONF:append:armv6:class-target = " --with-arch=armv6${ARMFPARCHEXT}" |
19 | EXTRA_OECONF_append_armv7a_class-target = " --with-arch=armv7-a${ARMFPARCHEXT}" | 19 | EXTRA_OECONF:append:armv7a:class-target = " --with-arch=armv7-a${ARMFPARCHEXT}" |
20 | EXTRA_OECONF_append_armv7ve_class-target = " --with-arch=armv7ve${ARMFPARCHEXT}" | 20 | EXTRA_OECONF:append:armv7ve:class-target = " --with-arch=armv7ve${ARMFPARCHEXT}" |
21 | EXTRA_OECONF_append_arc_class-target = " --with-cpu=${TUNE_PKGARCH}" | 21 | EXTRA_OECONF:append:arc:class-target = " --with-cpu=${TUNE_PKGARCH}" |
22 | EXTRA_OECONF_append_x86-64_class-target = " --with-arch=native" | 22 | EXTRA_OECONF:append:x86-64:class-target = " ${@get_gcc_x86_64_arch_setting(bb, d)}" |
23 | 23 | ||
24 | # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is | 24 | # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is |
25 | # set in subdir gcc, so subdir libcc1 can't use it, export it here to | 25 | # set in subdir gcc, so subdir libcc1 can't use it, export it here to |
@@ -40,11 +40,11 @@ PACKAGES = "\ | |||
40 | ${PN}-dbg \ | 40 | ${PN}-dbg \ |
41 | " | 41 | " |
42 | 42 | ||
43 | FILES_${PN} = "\ | 43 | FILES:${PN} = "\ |
44 | ${bindir}/${TARGET_PREFIX}gcc* \ | 44 | ${bindir}/${TARGET_PREFIX}gcc* \ |
45 | ${bindir}/${TARGET_PREFIX}lto* \ | 45 | ${bindir}/${TARGET_PREFIX}lto* \ |
46 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2* \ | 46 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2* \ |
47 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ | 47 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/g++-mapper-server \ |
48 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lto* \ | 48 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lto* \ |
49 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \ | 49 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \ |
50 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto*${SOLIBSDEV} \ | 50 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto*${SOLIBSDEV} \ |
@@ -53,86 +53,87 @@ FILES_${PN} = "\ | |||
53 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \ | 53 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \ |
54 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include \ | 54 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include \ |
55 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ | 55 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ |
56 | ${libdir}/bfd-plugins/*.so \ | ||
56 | " | 57 | " |
57 | INSANE_SKIP_${PN} += "dev-so" | 58 | INSANE_SKIP:${PN} += "dev-so" |
58 | RRECOMMENDS_${PN} += "\ | 59 | RRECOMMENDS:${PN} += "\ |
59 | libssp \ | 60 | libssp \ |
60 | libssp-dev \ | 61 | libssp-dev \ |
61 | " | 62 | " |
62 | RDEPENDS_${PN} += "cpp" | 63 | RDEPENDS:${PN} += "cpp" |
63 | 64 | ||
64 | FILES_${PN}-dev = "\ | 65 | FILES:${PN}-dev = "\ |
65 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ | 66 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ |
66 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ | 67 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ |
67 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \ | 68 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \ |
68 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/plugin/gengtype \ | 69 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/plugin/gengtype \ |
69 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.state \ | 70 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.state \ |
70 | " | 71 | " |
71 | FILES_${PN}-symlinks = "\ | 72 | FILES:${PN}-symlinks = "\ |
72 | ${bindir}/cc \ | 73 | ${bindir}/cc \ |
73 | ${bindir}/gcc \ | 74 | ${bindir}/gcc \ |
74 | ${bindir}/gccbug \ | 75 | ${bindir}/gccbug \ |
75 | " | 76 | " |
76 | 77 | ||
77 | FILES_${PN}-plugins = "\ | 78 | FILES:${PN}-plugins = "\ |
78 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin \ | 79 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin \ |
79 | " | 80 | " |
80 | ALLOW_EMPTY_${PN}-plugins = "1" | 81 | ALLOW_EMPTY:${PN}-plugins = "1" |
81 | 82 | ||
82 | FILES_g77 = "\ | 83 | FILES:g77 = "\ |
83 | ${bindir}/${TARGET_PREFIX}g77 \ | 84 | ${bindir}/${TARGET_PREFIX}g77 \ |
84 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \ | 85 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \ |
85 | " | 86 | " |
86 | FILES_g77-symlinks = "\ | 87 | FILES:g77-symlinks = "\ |
87 | ${bindir}/g77 \ | 88 | ${bindir}/g77 \ |
88 | ${bindir}/f77 \ | 89 | ${bindir}/f77 \ |
89 | " | 90 | " |
90 | RRECOMMENDS_g77 = "\ | 91 | RRECOMMENDS:g77 = "\ |
91 | libg2c \ | 92 | libg2c \ |
92 | libg2c-dev \ | 93 | libg2c-dev \ |
93 | " | 94 | " |
94 | 95 | ||
95 | FILES_gfortran = "\ | 96 | FILES:gfortran = "\ |
96 | ${bindir}/${TARGET_PREFIX}gfortran \ | 97 | ${bindir}/${TARGET_PREFIX}gfortran \ |
97 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \ | 98 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \ |
98 | " | 99 | " |
99 | RRECOMMENDS_gfortran = "\ | 100 | RRECOMMENDS:gfortran = "\ |
100 | libquadmath \ | 101 | libquadmath \ |
101 | libquadmath-dev \ | 102 | libquadmath-dev \ |
102 | " | 103 | " |
103 | FILES_gfortran-symlinks = "\ | 104 | FILES:gfortran-symlinks = "\ |
104 | ${bindir}/gfortran \ | 105 | ${bindir}/gfortran \ |
105 | ${bindir}/f95" | 106 | ${bindir}/f95" |
106 | 107 | ||
107 | FILES_cpp = "\ | 108 | FILES:cpp = "\ |
108 | ${bindir}/${TARGET_PREFIX}cpp* \ | 109 | ${bindir}/${TARGET_PREFIX}cpp* \ |
109 | ${base_libdir}/cpp \ | 110 | ${base_libdir}/cpp \ |
110 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1" | 111 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1" |
111 | FILES_cpp-symlinks = "${bindir}/cpp" | 112 | FILES:cpp-symlinks = "${bindir}/cpp" |
112 | 113 | ||
113 | FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov* \ | 114 | FILES:gcov = "${bindir}/${TARGET_PREFIX}gcov* \ |
114 | ${bindir}/${TARGET_PREFIX}gcov-tool* \ | 115 | ${bindir}/${TARGET_PREFIX}gcov-tool* \ |
115 | " | 116 | " |
116 | FILES_gcov-symlinks = "${bindir}/gcov \ | 117 | FILES:gcov-symlinks = "${bindir}/gcov \ |
117 | ${bindir}/gcov-tool \ | 118 | ${bindir}/gcov-tool \ |
118 | " | 119 | " |
119 | 120 | ||
120 | FILES_g++ = "\ | 121 | FILES:g++ = "\ |
121 | ${bindir}/${TARGET_PREFIX}g++* \ | 122 | ${bindir}/${TARGET_PREFIX}g++* \ |
122 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ | 123 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ |
123 | " | 124 | " |
124 | FILES_g++-symlinks = "\ | 125 | FILES:g++-symlinks = "\ |
125 | ${bindir}/c++ \ | 126 | ${bindir}/c++ \ |
126 | ${bindir}/g++ \ | 127 | ${bindir}/g++ \ |
127 | " | 128 | " |
128 | RRECOMMENDS_g++ = "\ | 129 | RRECOMMENDS:g++ = "\ |
129 | libstdc++ \ | 130 | libstdc++ \ |
130 | libstdc++-dev \ | 131 | libstdc++-dev \ |
131 | libatomic \ | 132 | libatomic \ |
132 | libatomic-dev \ | 133 | libatomic-dev \ |
133 | " | 134 | " |
134 | 135 | ||
135 | FILES_${PN}-doc = "\ | 136 | FILES:${PN}-doc = "\ |
136 | ${infodir} \ | 137 | ${infodir} \ |
137 | ${mandir} \ | 138 | ${mandir} \ |
138 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ | 139 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ |
@@ -191,7 +192,7 @@ do_install () { | |||
191 | rm -f *c++* | 192 | rm -f *c++* |
192 | 193 | ||
193 | # We don't care about the gcc-<version> ones for this | 194 | # We don't care about the gcc-<version> ones for this |
194 | rm -f *gcc-?.?* | 195 | rm -f *gcc-?*.?* |
195 | 196 | ||
196 | # Not sure why we end up with these but we don't want them... | 197 | # Not sure why we end up with these but we don't want them... |
197 | rm -f ${TARGET_PREFIX}${TARGET_PREFIX}* | 198 | rm -f ${TARGET_PREFIX}${TARGET_PREFIX}* |
@@ -214,11 +215,12 @@ do_install () { | |||
214 | ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${base_libdir}/cpp | 215 | ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${base_libdir}/cpp |
215 | ln -sf g++ c++ | 216 | ln -sf g++ c++ |
216 | ln -sf gcc cc | 217 | ln -sf gcc cc |
217 | 218 | install -d ${D}${libdir}/bfd-plugins | |
219 | ln -sf ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto_plugin.so ${D}${libdir}/bfd-plugins/liblto_plugin.so | ||
218 | chown -R root:root ${D} | 220 | chown -R root:root ${D} |
219 | } | 221 | } |
220 | 222 | ||
221 | do_install_append () { | 223 | do_install:append () { |
222 | # | 224 | # |
223 | # Thefixinc.sh script, run on the gcc's compile phase, looks into sysroot header | 225 | # Thefixinc.sh script, run on the gcc's compile phase, looks into sysroot header |
224 | # files and places the modified files into | 226 | # files and places the modified files into |
@@ -254,4 +256,4 @@ do_install_append () { | |||
254 | # and builds track file dependencies (e.g. perl and its makedepends code). | 256 | # and builds track file dependencies (e.g. perl and its makedepends code). |
255 | # For determinism we don't install this ever and rely on the copy from gcc-cross. | 257 | # For determinism we don't install this ever and rely on the copy from gcc-cross. |
256 | # [YOCTO #7287] | 258 | # [YOCTO #7287] |
257 | SYSROOT_DIRS_BLACKLIST += "${libdir}/gcc" | 259 | SYSROOT_DIRS_IGNORE += "${libdir}/gcc" |