1 DESCRIPTION = "The GNU cc and gcc C compilers."
2 HOMEPAGE = "http://www.gnu.org/software/gcc/"
6 inherit autotools gettext
8 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
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
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"
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"
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"
27 DEBIANNAME_libgcc = "libgcc1"
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/
37 # Set some default values
39 gcclibdir = "${libdir}/gcc"
41 S = "${WORKDIR}/gcc-${PV}"
42 B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"