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-05 23:46:53 +0100 |
commit | 696f00b67217242f3a372d070c2473f8ced639ed (patch) | |
tree | 4c59283daa4a28d61c053ba02e7a0c7af56b26b6 /meta/recipes-devtools/gcc | |
parent | f05b7ee7716d1e5cc1ba0bbab57e91c3a0569e9e (diff) | |
download | openembedded-core-696f00b67217242f3a372d070c2473f8ced639ed.tar.gz openembedded-core-696f00b67217242f3a372d070c2473f8ced639ed.tar.bz2 openembedded-core-696f00b67217242f3a372d070c2473f8ced639ed.zip |
gcc: Fix unpackaged files warnings, broken symlink and superfluous files
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-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 = "\ gfortran gfortran-symlinks \ gcov gcov-symlinks \ ${PN}-doc \ + ${PN}-dev \ + ${PN}-dbg \ " FILES_${PN} = "\ @@ -19,6 +21,12 @@ FILES_${PN} = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/include \ ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ " +FILES_${PN}-dbg += "\ + ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/.debug/ \ +" +FILES_${PN}-dev = "\ + ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \ +" FILES_${PN}-symlinks = "\ ${bindir}/cc \ ${bindir}/gcc \ @@ -93,16 +101,23 @@ do_install () { find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f + # Not sure why we end up with these but we don't want them... + rm -f ${TARGET_PREFIX}${TARGET_PREFIX}* + # Symlinks so we can use these trivially on the target - ln -sf ${TARGET_PREFIX}g77 g77 || true - ln -sf ${TARGET_PREFIX}gfortran gfortran || true + if [ -e ${TARGET_PREFIX}g77 ]; then + ln -sf ${TARGET_PREFIX}g77 g77 || true + ln -sf g77 f77 || true + fi + if [ -e ${TARGET_PREFIX}gfortran ]; then + ln -sf ${TARGET_PREFIX}gfortran gfortran || true + ln -sf gfortran f95 || true + fi ln -sf ${TARGET_PREFIX}g++ g++ ln -sf ${TARGET_PREFIX}gcc gcc - ln -sf g77 f77 || true - ln -sf gfortran f95 || true + ln -sf ${TARGET_PREFIX}cpp cpp ln -sf g++ c++ ln -sf gcc cc - ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${bindir}/cpp chown -R root:root ${D} } |