summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-package-sdk.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-package-sdk.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-sdk.inc78
1 files changed, 0 insertions, 78 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
deleted file mode 100644
index 21beccc4d7..0000000000
--- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
+++ /dev/null
@@ -1,78 +0,0 @@
1INHIBIT_PACKAGE_STRIP = "1"
2
3# Having anything auto depending on gcc-cross-sdk is a really bad idea...
4EXCLUDE_FROM_SHLIBS = "1"
5
6PACKAGES = "${PN} ${PN}-doc"
7
8FILES_${PN} = "\
9 ${bindir}/* \
10 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/* \
11 ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
12 ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
13 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \
14 ${gcclibdir}/${TARGET_SYS}/${BINV}/include \
15 ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
16 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \
17 ${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.* \
18 ${includedir}/c++/${BINV} \
19 ${prefix}/${TARGET_SYS}/bin/* \
20 ${prefix}/${TARGET_SYS}/lib/* \
21 ${prefix}/${TARGET_SYS}/usr/include/* \
22 "
23INSANE_SKIP_${PN} += "dev-so"
24
25FILES_${PN}-doc = "\
26 ${infodir} \
27 ${mandir} \
28 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
29 "
30
31EXEEXT = ""
32
33# Compute how to get from libexecdir to bindir in python (easier than shell)
34BINRELPATH = "${@oe.path.relative(d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"), d.expand("${bindir}"))}"
35
36do_install () {
37 oe_runmake 'DESTDIR=${D}' install-host
38
39 # Cleanup some of the ${libdir}{,exec}/gcc stuff ...
40 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
41 rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
42
43 # We care about g++ not c++
44 rm -f ${D}${bindir}/*c++
45
46 # We don't care about the gcc-<version> copies
47 rm -f ${D}${bindir}/*gcc-?.?*
48
49 # We use libiberty from binutils
50 rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a
51 # Not sure where the strange paths come from
52 rm -f ${D}${libdir}/../lib/libiberty.a
53 rm -f ${D}${libdir}/libiberty.a
54
55 # Cleanup empty directories which are not shipped
56 # we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted
57 # ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686
58 local empty_dirs="${D}${libdir}/../lib ${D}${prefix}/${TARGET_SYS}/lib ${D}${prefix}/${TARGET_SYS} ${D}${includedir}"
59 for i in $empty_dirs; do
60 [ -d $i ] && rmdir --ignore-fail-on-non-empty $i
61 done
62
63 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
64 # found.
65 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
66 install -d $dest
67 suffix=${EXEEXT}
68 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
69 if [ "$t" = "g77" -o "$t" = "gfortran" ] && [ ! -e ${D}${bindir}/${TARGET_PREFIX}$t$suffix ]; then
70 continue
71 fi
72
73 ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t$suffix $dest$t$suffix
74 done
75
76 chown -R root:root ${D}
77}
78