summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-intermediate.inc68
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-intermediate_4.7.bb3
-rw-r--r--meta/recipes-devtools/gcc/gcc-crosssdk-intermediate.inc9
-rw-r--r--meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.7.bb3
4 files changed, 0 insertions, 83 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
deleted file mode 100644
index e06926d6e1..0000000000
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc
+++ /dev/null
@@ -1,68 +0,0 @@
1DEPENDS = "virtual/${TARGET_PREFIX}binutils ${NATIVEDEPS}"
2DEPENDS += "virtual/${TARGET_PREFIX}libc-initial"
3PROVIDES = "virtual/${TARGET_PREFIX}gcc-intermediate"
4PACKAGES = ""
5
6INHIBIT_DEFAULT_DEPS = "1"
7INHIBIT_AUTOTOOLS_DEPS = "1"
8
9CROSS_TARGET_SYS_DIR_append = ".${PN}"
10
11# This is intended to be a -very- basic config
12# sysroot is needed in case we use libc-initial
13#
14# Glibc won't compile with gold, and building glibc is the whole point of
15# this recipe. So we select ld.bfd explicitly here if gold is the distro's
16# preferred linker.
17EXTRA_OECONF = "--enable-shared \
18 --disable-multilib \
19 --disable-threads \
20 --enable-languages=c \
21 ${OPTSPACE} \
22 --program-prefix=${TARGET_PREFIX} \
23 --with-sysroot=${STAGING_DIR_TCBOOTSTRAP} \
24 --with-build-sysroot=${STAGING_DIR_TCBOOTSTRAP} \
25 ${EXTRA_OECONF_INTERMEDIATE} \
26 ${EXTRA_OECONF_FPU} \
27 ${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)}"
28
29do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_HOST} ${SYSROOT_DESTDIR}/${STAGING_DIR_TARGET}/${target_base_libdir}"
30do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_HOST} ${STAGING_DIR_TCBOOTSTRAP}/${target_base_libdir}"
31
32do_compile () {
33 oe_runmake
34}
35
36do_install () {
37 oe_runmake 'DESTDIR=${D}' install
38 install -d ${D}${target_base_libdir}/
39 osdir=`${D}${STAGING_BINDIR_TOOLCHAIN}.${PN}/${TARGET_PREFIX}gcc ${TARGET_CC_ARCH} -print-multi-os-directory`
40 mv ${D}${exec_prefix}/${TARGET_SYS}/lib/$osdir/* ${D}${target_base_libdir}/
41
42 # We don't really need this (here shares/ contains man/, info/, locale/).
43 rm -rf ${D}${datadir}/
44
45 # We use libiberty from binutils
46 find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
47 find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
48
49 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
50 # found. These need to be relative paths so they work in different locations.
51 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
52 install -d $dest
53 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
54 ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
55 done
56}
57
58#
59# Override the default sysroot staging copy since this won't look like a target system
60#
61sysroot_stage_all() {
62 sysroot_stage_dir ${D} ${SYSROOT_DESTDIR}
63 install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/
64 install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/
65 mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true
66 mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true
67}
68
diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.7.bb
deleted file mode 100644
index 69ae7f7bdb..0000000000
--- a/meta/recipes-devtools/gcc/gcc-cross-intermediate_4.7.bb
+++ /dev/null
@@ -1,3 +0,0 @@
1require recipes-devtools/gcc/gcc-cross_${PV}.bb
2require gcc-cross-intermediate.inc
3
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate.inc b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate.inc
deleted file mode 100644
index ed5d5e838d..0000000000
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate.inc
+++ /dev/null
@@ -1,9 +0,0 @@
1inherit crosssdk
2
3SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include"
4SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/"
5SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
6
7DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk gettext-native"
8DEPENDS += "virtual/${TARGET_PREFIX}libc-initial-nativesdk"
9PROVIDES = "virtual/${TARGET_PREFIX}gcc-intermediate-crosssdk"
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.7.bb b/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.7.bb
deleted file mode 100644
index eacbc9ee2f..0000000000
--- a/meta/recipes-devtools/gcc/gcc-crosssdk-intermediate_4.7.bb
+++ /dev/null
@@ -1,3 +0,0 @@
1require recipes-devtools/gcc/gcc-cross-intermediate_${PV}.bb
2require gcc-crosssdk-intermediate.inc
3EXTRA_OECONF += " --with-native-system-header-dir=${SYSTEMHEADERS} "