Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into...
[vuplus_openembedded] / packages / gcc / gcc-common.inc
1 DESCRIPTION = "The GNU cc and gcc C compilers."
2 HOMEPAGE = "http://www.gnu.org/software/gcc/"
3 SECTION = "devel"
4 LICENSE = "GPL"
5
6 inherit autotools gettext
7
8 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
9
10 # When making a Canadian SDK, we use these files too to make the compiler
11 # for building for the new host part.  So only obey TARGET_FPU for the
12 # real target.
13 def get_gcc_fpu_setting(bb, d):
14     if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ] and bb.data.getVar('TARGET_OS', d, 1) in [ 'linux' ]:
15         return "--with-float=soft"
16     return ""
17
18 # We really need HOST_SYS here for some packages and TARGET_SYS for others.
19 # For now, libgcc is most important so we fix for that - RP.
20 SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
21
22 DEBIANNAME_libgcc = "libgcc1"
23
24 MIRRORS_prepend () {
25 ${GNU_MIRROR}/gcc/releases/    ftp://gcc.gnu.org/pub/gcc/releases/
26 ${GNU_MIRROR}/gcc/      http://mirrors.rcn.net/pub/sourceware/gcc/releases/
27 ${GNU_MIRROR}/gcc/releases/    http://gcc.get-software.com/releases/
28 ${GNU_MIRROR}/gcc/      http://gcc.get-software.com/releases/
29 }
30
31 #
32 # Set some default values
33 #
34 gcclibdir = "${libdir}/gcc"
35 BINV = "${PV}"
36 S = "${WORKDIR}/gcc-${PV}"
37 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
38