1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
require gcc-common.inc
SRC_URI = "${GNU_MIRROR}/gcc/releases/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://config.sub.patch;patch=1 \
file://empty6.patch;patch=1 \
file://pr10392-1-test.patch;patch=1 \
file://pr10412-1-test.patch;patch=1 \
file://pr10589-1-test.patch;patch=1 \
file://pr11162-1-test.patch;patch=1 \
file://pr11587-1-test.patch;patch=1 \
file://pr11608.patch;patch=1 \
file://pr11736-1-test.patch;patch=1 \
file://pr11864-1-test.patch;patch=1 \
file://pr12009.patch;patch=1 \
file://pr12010.patch;patch=1 \
file://pr13260-test.patch;patch=1 \
file://pr9365-1-test.patch;patch=1 \
file://sh-lib1funcs_sizeAndType.patch;patch=1 \
file://sh-pic-set_fpscr-gcc-3.3.2.patch;patch=1 \
file://thunk3.patch;patch=1 \
file://arm-10730.dpatch;patch=1;pnum=0 \
file://arm-12527.dpatch;patch=1;pnum=0 \
file://arm-14558.dpatch;patch=1;pnum=0 \
file://arm-common.dpatch;patch=1;pnum=0 \
file://arm-gotoff.dpatch;patch=1;pnum=0 \
file://arm-ldm.dpatch;patch=1;pnum=0 \
file://arm-tune.patch;patch=1;pnum=0 \
file://arm-xscale.patch;patch=1;pnum=0 \
file://arm-14302.patch;patch=1;pnum=0 \
file://arm-ldm-peephole.patch;patch=1;pnum=0 \
file://libibery-crosstool.patch;patch=1;pnum=1 \
file://reverse-compare.patch;patch=1 \
file://gcc34-15089.patch;patch=1 \
file://gcc-uclibc-3.3-100-conf.patch;patch=1 \
file://gcc-uclibc-3.3-110-conf.patch;patch=1 \
file://gcc-uclibc-3.3-120-softfloat.patch;patch=1 \
file://gcc-uclibc-3.3-200-code.patch;patch=1 \
file://zecke-xgcc-cpp.patch;patch=1 \
file://bash3.patch;patch=1"
MIRRORS_prepend () {
${GNU_MIRROR}/gcc/releases/ http://gcc.get-software.com/releases/
}
S = "${WORKDIR}/gcc-${PV}"
B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, 1) != 'no']} \
--with-gnu-ld \
--enable-shared \
--enable-multilib \
--enable-target-optspace \
--enable-languages=c,c++,f77 \
--enable-threads=posix \
--enable-c99 \
--enable-long-long \
--enable-symvers=gnu \
--program-prefix=${TARGET_PREFIX} \
${EXTRA_OECONF_PATHS} \
${EXTRA_OECONF_DEP}"
EXTRA_OECONF_PATHS = "--with-local-prefix=${prefix}/local \
--with-gxx-include-dir=${includedir}/c++/${PV}"
EXTRA_OECONF_DEP = ""
EXTRA_OECONF_uclibc = "--disable-__cxa_atexit"
EXTRA_OECONF_glibc = "--enable-__cxa_atexit"
EXTRA_OECONF += "${@get_gcc_fpu_setting(bb, d)}"
python __anonymous () {
import bb, re
if (re.match('linux-uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None):
bb.data.setVar('EXTRA_OECONF_DEP', '${EXTRA_OECONF_uclibc}', d)
elif (re.match('linux$', bb.data.getVar('TARGET_OS', d, 1)) != None):
bb.data.setVar('EXTRA_OECONF_DEP', '${EXTRA_OECONF_glibc}', d)
}
do_configure () {
# Setup these vars for cross building only
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
export CC_FOR_TARGET="${CCACHE} ${HOST_PREFIX}gcc"
export GCC_FOR_TARGET="${CCACHE} ${HOST_PREFIX}gcc"
export CXX_FOR_TARGET="${CCACHE} ${HOST_PREFIX}g++"
export AS_FOR_TARGET="${HOST_PREFIX}as"
export LD_FOR_TARGET="${HOST_PREFIX}ld"
export NM_FOR_TARGET="${HOST_PREFIX}nm"
export AR_FOR_TARGET="${HOST_PREFIX}ar"
export RANLIB_FOR_TARGET="${HOST_PREFIX}ranlib"
fi
(cd ${S} && gnu-configize) || die "failure running gnu-configize"
oe_runconf
}
|