diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-05 22:28:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-07 10:57:45 +0100 |
commit | 42242d6aeeb7689b7c7e79630dba636125bcf0bc (patch) | |
tree | 83e8898b324c9488323d43e67ecf3e224047fb40 /meta/recipes-devtools | |
parent | 7e122178dbae6374c7143a6c83090ec1ef09e7e6 (diff) | |
download | poky-42242d6aeeb7689b7c7e79630dba636125bcf0bc.tar.gz |
gcc: Fix unpackaged files warnings, broken symlink and superfluous files
(From OE-Core rev: 696f00b67217242f3a372d070c2473f8ced639ed)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-target.inc | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc index 8c66c72ac9..69abf723ba 100644 --- a/meta/recipes-devtools/gcc/gcc-package-target.inc +++ b/meta/recipes-devtools/gcc/gcc-package-target.inc | |||
@@ -6,6 +6,8 @@ PACKAGES = "\ | |||
6 | gfortran gfortran-symlinks \ | 6 | gfortran gfortran-symlinks \ |
7 | gcov gcov-symlinks \ | 7 | gcov gcov-symlinks \ |
8 | ${PN}-doc \ | 8 | ${PN}-doc \ |
9 | ${PN}-dev \ | ||
10 | ${PN}-dbg \ | ||
9 | " | 11 | " |
10 | 12 | ||
11 | FILES_${PN} = "\ | 13 | FILES_${PN} = "\ |
@@ -19,6 +21,12 @@ FILES_${PN} = "\ | |||
19 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include \ | 21 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include \ |
20 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ | 22 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ |
21 | " | 23 | " |
24 | FILES_${PN}-dbg += "\ | ||
25 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/.debug/ \ | ||
26 | " | ||
27 | FILES_${PN}-dev = "\ | ||
28 | ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \ | ||
29 | " | ||
22 | FILES_${PN}-symlinks = "\ | 30 | FILES_${PN}-symlinks = "\ |
23 | ${bindir}/cc \ | 31 | ${bindir}/cc \ |
24 | ${bindir}/gcc \ | 32 | ${bindir}/gcc \ |
@@ -93,16 +101,23 @@ do_install () { | |||
93 | find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f | 101 | find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f |
94 | find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f | 102 | find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f |
95 | 103 | ||
104 | # Not sure why we end up with these but we don't want them... | ||
105 | rm -f ${TARGET_PREFIX}${TARGET_PREFIX}* | ||
106 | |||
96 | # Symlinks so we can use these trivially on the target | 107 | # Symlinks so we can use these trivially on the target |
97 | ln -sf ${TARGET_PREFIX}g77 g77 || true | 108 | if [ -e ${TARGET_PREFIX}g77 ]; then |
98 | ln -sf ${TARGET_PREFIX}gfortran gfortran || true | 109 | ln -sf ${TARGET_PREFIX}g77 g77 || true |
110 | ln -sf g77 f77 || true | ||
111 | fi | ||
112 | if [ -e ${TARGET_PREFIX}gfortran ]; then | ||
113 | ln -sf ${TARGET_PREFIX}gfortran gfortran || true | ||
114 | ln -sf gfortran f95 || true | ||
115 | fi | ||
99 | ln -sf ${TARGET_PREFIX}g++ g++ | 116 | ln -sf ${TARGET_PREFIX}g++ g++ |
100 | ln -sf ${TARGET_PREFIX}gcc gcc | 117 | ln -sf ${TARGET_PREFIX}gcc gcc |
101 | ln -sf g77 f77 || true | 118 | ln -sf ${TARGET_PREFIX}cpp cpp |
102 | ln -sf gfortran f95 || true | ||
103 | ln -sf g++ c++ | 119 | ln -sf g++ c++ |
104 | ln -sf gcc cc | 120 | ln -sf gcc cc |
105 | ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp | ||
106 | 121 | ||
107 | chown -R root:root ${D} | 122 | chown -R root:root ${D} |
108 | } | 123 | } |