summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-package-target.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-package-target.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-target.inc25
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
11FILES_${PN} = "\ 13FILES_${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"
24FILES_${PN}-dbg += "\
25 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/.debug/ \
26"
27FILES_${PN}-dev = "\
28 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \
29"
22FILES_${PN}-symlinks = "\ 30FILES_${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}