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.inc52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
new file mode 100644
index 0000000000..23b9a48eb3
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
@@ -0,0 +1,52 @@
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 ${includedir}/c++/${BINV} \
17 ${prefix}/${TARGET_SYS}/bin/* \
18 ${prefix}/${TARGET_SYS}/lib/* \
19 ${prefix}/${TARGET_SYS}/usr/include/* \
20 "
21FILES_${PN}-doc = "\
22 ${infodir} \
23 ${mandir} \
24 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
25 "
26
27do_install () {
28 oe_runmake 'DESTDIR=${D}' install-host
29
30 # Cleanup some of the ${libdir}{,exec}/gcc stuff ...
31 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
32 rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
33
34 # We care about g++ not c++
35 rm -f ${D}${bindir}/*c++
36
37 # We don't care about the gcc-<version> copies
38 rm -f ${D}${bindir}/*gcc-?.?*
39
40 # We use libiberty from binutils
41 rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a
42 rm -f ${D}${libdir}/libiberty.a
43
44 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
45 # found.
46 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
47 install -d $dest
48 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
49 ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t
50 done
51}
52