summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-cross-initial_4.0.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-cross-initial_4.0.2.bb')
-rw-r--r--meta/packages/gcc/gcc-cross-initial_4.0.2.bb29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-cross-initial_4.0.2.bb b/meta/packages/gcc/gcc-cross-initial_4.0.2.bb
new file mode 100644
index 0000000000..68dafe3f1a
--- /dev/null
+++ b/meta/packages/gcc/gcc-cross-initial_4.0.2.bb
@@ -0,0 +1,29 @@
1include gcc-cross_${PV}.bb
2
3DEPENDS = "virtual/${TARGET_PREFIX}binutils"
4DEPENDS += "${@['virtual/${TARGET_PREFIX}libc-initial',''][bb.data.getVar('TARGET_ARCH', d, 1) in ['arm', 'armeb', 'mips', 'mipsel']]}"
5PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial"
6PACKAGES = ""
7
8# This is intended to be a -very- basic config
9EXTRA_OECONF = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
10 --with-newlib \
11 --disable-shared \
12 --disable-threads \
13 --disable-multilib \
14 --disable-__cxa_atexit \
15 --disable-libmudflap \
16 --enable-languages=c \
17 --enable-target-optspace \
18 --program-prefix=${TARGET_PREFIX} \
19 ${@get_gcc_fpu_setting(bb, d)}"
20
21do_stage_prepend () {
22 mkdir -p ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}
23 ln -sf libgcc.a ${CROSS_DIR}/lib/gcc/${TARGET_SYS}/${BINV}/libgcc_eh.a
24}
25
26# Override the method from gcc-cross so we don't try to install libgcc
27do_install () {
28 oe_runmake 'DESTDIR=${D}' install
29}