increase dvbapp PR.
[vuplus_openembedded] / recipes / 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).find('linux') >= 0 :
15         return "--with-float=soft"
16     return ""
17
18 def get_gcc_mips_plt_setting(bb, d):
19     if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'mips', 'mipsel' ] and 'mplt' in bb.data.getVar('DISTRO_FEATURES',d,1).split() :
20         return "--with-mips-plt"
21     return ""
22
23 # We really need HOST_SYS here for some packages and TARGET_SYS for others.
24 # For now, libgcc is most important so we fix for that - RP.
25 SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
26
27 DEBIANNAME_libgcc = "libgcc1"
28
29 MIRRORS_prepend () {
30 ${GNU_MIRROR}/gcc/releases/    ftp://gcc.gnu.org/pub/gcc/releases/
31 ${GNU_MIRROR}/gcc/      http://mirrors.rcn.net/pub/sourceware/gcc/releases/
32 ${GNU_MIRROR}/gcc/releases/    http://gcc.get-software.com/releases/
33 ${GNU_MIRROR}/gcc/      http://gcc.get-software.com/releases/
34 }
35
36 #
37 # Set some default values
38 #
39 gcclibdir = "${libdir}/gcc"
40 BINV = "${PV}"
41 S = "${WORKDIR}/gcc-${PV}"
42 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
43