diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-devtools/gcc/gcc-configure-sdk.inc | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-configure-sdk.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-sdk.inc b/meta/recipes-devtools/gcc/gcc-configure-sdk.inc new file mode 100644 index 0000000000..0eb33adda8 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-configure-sdk.inc | |||
@@ -0,0 +1,48 @@ | |||
1 | require gcc-configure-common.inc | ||
2 | |||
3 | # The two lines below conflict, this needs fixing - RP | ||
4 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | ||
5 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' | ||
6 | |||
7 | EXTRA_OECONF_PATHS = "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \ | ||
8 | --with-gxx-include-dir=${SDKPATH}/sysroots/${TARGET_SYS}${target_includedir}/c++ \ | ||
9 | --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ | ||
10 | --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ | ||
11 | --with-build-sysroot=${STAGING_DIR_TARGET}" | ||
12 | |||
13 | # | ||
14 | # gcc-cross looks and finds these in ${exec_prefix} but we're not so lucky | ||
15 | # for the sdk. Hardcoding the paths ensures the build doesn't go canadian or worse. | ||
16 | # | ||
17 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
18 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
19 | export DLLTOOL_FOR_TARGET = "${TARGET_PREFIX}dlltool" | ||
20 | export CC_FOR_TARGET = "${TARGET_PREFIX}gcc" | ||
21 | export CXX_FOR_TARGET = "${TARGET_PREFIX}g++" | ||
22 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
23 | export LIPO_FOR_TARGET = "${TARGET_PREFIX}lipo" | ||
24 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
25 | export OBJDUMP_FOR_TARGET = "${TARGET_PREFIX}objdump" | ||
26 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
27 | export STRIP_FOR_TARGET = "${TARGET_PREFIX}strip" | ||
28 | export WINDRES_FOR_TARGET = "${TARGET_PREFIX}windres" | ||
29 | |||
30 | # | ||
31 | # We need to override this and make sure the compiler can find staging | ||
32 | # | ||
33 | export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET}" | ||
34 | |||
35 | do_configure () { | ||
36 | export CC_FOR_BUILD="${BUILD_CC}" | ||
37 | export CXX_FOR_BUILD="${BUILD_CXX}" | ||
38 | export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}" | ||
39 | export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}" | ||
40 | export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}" | ||
41 | export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}" | ||
42 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" | ||
43 | oe_runconf | ||
44 | } | ||
45 | |||
46 | do_compile () { | ||
47 | oe_runmake all-host all-target-libgcc | ||
48 | } | ||