summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.6.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/gcc/gcc-crosssdk-intermediate_4.6.bbappend')
-rw-r--r--recipes-devtools/gcc/gcc-crosssdk-intermediate_4.6.bbappend22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.6.bbappend b/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.6.bbappend
new file mode 100644
index 0000000..ed27db0
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.6.bbappend
@@ -0,0 +1,22 @@
1require gcc-fsl.inc
2
3do_install () {
4 oe_runmake 'DESTDIR=${D}' install
5 install -d ${D}${target_base_libdir}/
6 cp -rf ${D}${exec_prefix}/${TARGET_SYS}/${baselib}/ ${D}${target_base_libdir}/
7
8 # We don't really need this (here shares/ contains man/, info/, locale/).
9 rm -rf ${D}${datadir}/
10
11 # We use libiberty from binutils
12 find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
13 find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
14
15 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
16 # found. These need to be relative paths so they work in different locations.
17 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
18 install -d $dest
19 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
20 ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
21 done
22}