diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-29 22:27:13 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-29 22:27:13 +0100 |
commit | cdaf6c804b703d58839e449041b12f698cb5ebbe (patch) | |
tree | b2330e4295ffa036249dd058b42f5b9cf1ced6bb /meta/packages/gcc/gcc-package-target.inc | |
parent | 7a7c2341c7be47e054bb1b7788ea1b5dcebbc732 (diff) | |
download | poky-cdaf6c804b703d58839e449041b12f698cb5ebbe.tar.gz |
gcc-runtime: Add initial recipe
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc/gcc-package-target.inc')
-rw-r--r-- | meta/packages/gcc/gcc-package-target.inc | 63 |
1 files changed, 1 insertions, 62 deletions
diff --git a/meta/packages/gcc/gcc-package-target.inc b/meta/packages/gcc/gcc-package-target.inc index c1200b8bc7..f668211e71 100644 --- a/meta/packages/gcc/gcc-package-target.inc +++ b/meta/packages/gcc/gcc-package-target.inc | |||
@@ -5,11 +5,6 @@ PACKAGES = "\ | |||
5 | g77 g77-symlinks \ | 5 | g77 g77-symlinks \ |
6 | gfortran gfortran-symlinks \ | 6 | gfortran gfortran-symlinks \ |
7 | gcov gcov-symlinks \ | 7 | gcov gcov-symlinks \ |
8 | libmudflap libmudflap-dev \ | ||
9 | libgcc-dev \ | ||
10 | libstdc++-dev \ | ||
11 | libg2c-dev \ | ||
12 | libgfortran-dev \ | ||
13 | ${PN}-doc \ | 8 | ${PN}-doc \ |
14 | " | 9 | " |
15 | 10 | ||
@@ -54,17 +49,6 @@ FILES_cpp-symlinks = "${bindir}/cpp" | |||
54 | FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov" | 49 | FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov" |
55 | FILES_gcov-symlinks = "${bindir}/gcov" | 50 | FILES_gcov-symlinks = "${bindir}/gcov" |
56 | 51 | ||
57 | FILES_libgcc = "${base_libdir}/libgcc*.so.*" | ||
58 | FILES_libgcc-dev = "${base_libdir}/libgcc*.so" | ||
59 | |||
60 | # Called from within gcc-cross, so libdir is set wrong | ||
61 | FILES_libg2c = "${target_libdir}/libg2c.so.*" | ||
62 | FILES_libg2c-dev = "\ | ||
63 | ${libdir}/libg2c.so \ | ||
64 | ${libdir}/libg2c.a \ | ||
65 | ${libdir}/libfrtbegin.a \ | ||
66 | " | ||
67 | |||
68 | FILES_g++ = "\ | 52 | FILES_g++ = "\ |
69 | ${bindir}/${TARGET_PREFIX}g++ \ | 53 | ${bindir}/${TARGET_PREFIX}g++ \ |
70 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ | 54 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ |
@@ -74,26 +58,6 @@ FILES_g++-symlinks = "\ | |||
74 | ${bindir}/g++ \ | 58 | ${bindir}/g++ \ |
75 | " | 59 | " |
76 | 60 | ||
77 | FILES_libstdc++ = "${libdir}/libstdc++.so.*" | ||
78 | FILES_libstdc++-dev = "\ | ||
79 | ${includedir}/c++/${BINV} \ | ||
80 | ${libdir}/libstdc++.so \ | ||
81 | ${libdir}/libstdc++.la \ | ||
82 | ${libdir}/libstdc++.a \ | ||
83 | ${libdir}/libsupc++.la \ | ||
84 | ${libdir}/libsupc++.a \ | ||
85 | " | ||
86 | |||
87 | FILES_libgfortran-dev = "${libdir}/libgfortran.a \ | ||
88 | ${libdir}/libgfortran.so \ | ||
89 | ${libdir}/libgfortranbegin.a" | ||
90 | |||
91 | FILES_libmudflap = "${libdir}/libmudflap*.so.*" | ||
92 | FILES_libmudflap-dev = "\ | ||
93 | ${libdir}/libmudflap*.so \ | ||
94 | ${libdir}/libmudflap*.a \ | ||
95 | ${libdir}/libmudflap*.a \ | ||
96 | " | ||
97 | 61 | ||
98 | FILES_${PN}-doc = "\ | 62 | FILES_${PN}-doc = "\ |
99 | ${infodir} \ | 63 | ${infodir} \ |
@@ -102,7 +66,7 @@ FILES_${PN}-doc = "\ | |||
102 | " | 66 | " |
103 | 67 | ||
104 | do_install () { | 68 | do_install () { |
105 | autotools_do_install | 69 | oe_runmake 'DESTDIR=${D}' install-host |
106 | 70 | ||
107 | # Cleanup some of the ${libdir}{,exec}/gcc stuff ... | 71 | # Cleanup some of the ${libdir}{,exec}/gcc stuff ... |
108 | rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools | 72 | rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools |
@@ -111,28 +75,9 @@ do_install () { | |||
111 | # Hack around specs file assumptions | 75 | # Hack around specs file assumptions |
112 | test -f ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs && sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs | 76 | test -f ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs && sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs |
113 | 77 | ||
114 | # Move libgcc_s into /lib | ||
115 | mkdir -p ${D}${base_libdir} | ||
116 | if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then | ||
117 | mv ${D}${libdir}/nof/libgcc_s.so.* ${D}${base_libdir} | ||
118 | else | ||
119 | mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir} || true | ||
120 | fi | ||
121 | rm -f ${D}${libdir}/libgcc_s.so || true | ||
122 | ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \ | ||
123 | | tr -s / \ | ||
124 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \ | ||
125 | ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so | ||
126 | |||
127 | # We don't need libtool libraries | ||
128 | rm -f ${D}${libdir}/libg2c.la &>/dev/null || true | ||
129 | |||
130 | # Cleanup manpages.. | 78 | # Cleanup manpages.. |
131 | rm -rf ${D}${mandir}/man7 | 79 | rm -rf ${D}${mandir}/man7 |
132 | 80 | ||
133 | # We use libiberty from binutils | ||
134 | rm -f ${D}${libdir}/libiberty.a | ||
135 | |||
136 | cd ${D}${bindir} | 81 | cd ${D}${bindir} |
137 | 82 | ||
138 | # We care about g++ not c++ | 83 | # We care about g++ not c++ |
@@ -141,9 +86,6 @@ do_install () { | |||
141 | # We don't care about the gcc-<version> ones for this | 86 | # We don't care about the gcc-<version> ones for this |
142 | rm -f *gcc-?.?* | 87 | rm -f *gcc-?.?* |
143 | 88 | ||
144 | # These sometimes show up, they are strange, we remove them | ||
145 | rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-* | ||
146 | |||
147 | # Symlinks so we can use these trivially on the target | 89 | # Symlinks so we can use these trivially on the target |
148 | ln -sf ${TARGET_SYS}-g77 g77 || true | 90 | ln -sf ${TARGET_SYS}-g77 g77 || true |
149 | ln -sf ${TARGET_SYS}-gfortran gfortran || true | 91 | ln -sf ${TARGET_SYS}-gfortran gfortran || true |
@@ -155,7 +97,4 @@ do_install () { | |||
155 | ln -sf gcc cc | 97 | ln -sf gcc cc |
156 | ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp | 98 | ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp |
157 | ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp | 99 | ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp |
158 | |||
159 | # Remove precompiled c++ headers as they are really big | ||
160 | rm -rf ${D}${includedir}/c++/${BINV}/${TARGET_SYS}/bits/*.gch | ||
161 | } | 100 | } |