diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-31 11:19:54 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-31 11:19:54 +0100 |
commit | 95fd9943663d97f146065f23448721480743c0dc (patch) | |
tree | 25282c822edd9908e001e181f8d9fd314a3f9c79 /meta/packages/gcc/gcc-configure-runtime.inc | |
parent | ccebaa67df90e8c3a250cf401d616f40dc69daa7 (diff) | |
download | poky-95fd9943663d97f146065f23448721480743c0dc.tar.gz |
gcc-runtime: Move core code to the main include file
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/gcc/gcc-configure-runtime.inc')
-rw-r--r-- | meta/packages/gcc/gcc-configure-runtime.inc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-configure-runtime.inc b/meta/packages/gcc/gcc-configure-runtime.inc index 8b169a7c54..e20c72fa05 100644 --- a/meta/packages/gcc/gcc-configure-runtime.inc +++ b/meta/packages/gcc/gcc-configure-runtime.inc | |||
@@ -3,3 +3,49 @@ require gcc-configure-common.inc | |||
3 | EXTRA_OECONF_PATHS = " \ | 3 | EXTRA_OECONF_PATHS = " \ |
4 | --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \ | 4 | --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \ |
5 | --with-gxx-include-dir=${includedir}/c++/" | 5 | --with-gxx-include-dir=${includedir}/c++/" |
6 | |||
7 | RUNTIMETARGET = "libgcc libssp libstdc++-v3" | ||
8 | # ? | ||
9 | # libiberty | ||
10 | # libmudflap | ||
11 | # libgfortran | ||
12 | |||
13 | do_configure () { | ||
14 | cp ${CROSS_DIR}/include/gcc-build-internal/* ${S}/gcc | ||
15 | for d in ${RUNTIMETARGET}; do | ||
16 | echo "Configuring $d" | ||
17 | mkdir -p ${B}/$d/ | ||
18 | cd ${B}/$d/ | ||
19 | chmod a+x ${S}/$d/configure | ||
20 | ${S}/$d/configure ${CONFIGUREOPTS} ${EXTRA_OECONF_PATHS} | ||
21 | done | ||
22 | } | ||
23 | |||
24 | do_compile () { | ||
25 | for d in ${RUNTIMETARGET}; do | ||
26 | cd ${B}/$d/ | ||
27 | oe_runmake | ||
28 | done | ||
29 | } | ||
30 | |||
31 | do_install () { | ||
32 | for d in ${RUNTIMETARGET}; do | ||
33 | cd ${B}/$d/ | ||
34 | oe_runmake 'DESTDIR=${D}' install | ||
35 | done | ||
36 | |||
37 | # Move libgcc_s into /lib | ||
38 | mkdir -p ${D}${base_libdir} | ||
39 | if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then | ||
40 | mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir} | ||
41 | else | ||
42 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true | ||
43 | fi | ||
44 | } | ||
45 | |||
46 | INHIBIT_DEFAULT_DEPS = "1" | ||
47 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" | ||
48 | PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs" | ||
49 | |||
50 | BBCLASSEXTEND = "nativesdk" | ||
51 | |||