diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-package-cross.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-cross.inc | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-cross.inc b/meta/recipes-devtools/gcc/gcc-package-cross.inc deleted file mode 100644 index 3d8167703f..0000000000 --- a/meta/recipes-devtools/gcc/gcc-package-cross.inc +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | INHIBIT_PACKAGE_STRIP = "1" | ||
2 | |||
3 | # Compute how to get from libexecdir to bindir in python (easier than shell) | ||
4 | BINRELPATH = "${@oe.path.relative(d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"), d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}"))}" | ||
5 | |||
6 | do_install () { | ||
7 | oe_runmake 'DESTDIR=${D}' install-host | ||
8 | |||
9 | install -d ${D}${target_base_libdir} | ||
10 | install -d ${D}${target_libdir} | ||
11 | |||
12 | # Link gfortran to g77 to satisfy not-so-smart configure or hard coded g77 | ||
13 | # gfortran is fully backwards compatible. This is a safe and practical solution. | ||
14 | ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gfortran ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}g77 || true | ||
15 | |||
16 | |||
17 | # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are | ||
18 | # found. These need to be relative paths so they work in different locations. | ||
19 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ | ||
20 | install -d $dest | ||
21 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | ||
22 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t | ||
23 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t | ||
24 | done | ||
25 | |||
26 | # Remove things we don't need but keep share/java | ||
27 | for d in info man share/doc share/locale share/man share/info; do | ||
28 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d | ||
29 | done | ||
30 | |||
31 | # We use libiberty from binutils | ||
32 | find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f | ||
33 | find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f | ||
34 | |||
35 | # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build | ||
36 | case ${PN} in | ||
37 | *gcc-cross|*gcc-crosssdk) | ||
38 | dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS} | ||
39 | cp -fpPR . $dest | ||
40 | ;; | ||
41 | esac | ||
42 | } | ||
43 | |||
44 | do_package[noexec] = "1" | ||
45 | do_packagedata[noexec] = "1" | ||
46 | do_package_write_ipk[noexec] = "1" | ||
47 | do_package_write_rpm[noexec] = "1" | ||
48 | do_package_write_deb[noexec] = "1" | ||