Use the paths found by ./configure in the ct-ng.in makefile script and its fragments.
/trunk/kconfig/kconfig.mk | 2 1 1 0 +-
/trunk/samples/samples.mk | 18 9 9 0 +++++++++---------
/trunk/config/config.mk | 10 5 5 0 +++++-----
/trunk/ct-ng.in | 22 13 9 0 +++++++++++++---------
4 files changed, 28 insertions(+), 24 deletions(-)
1 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
3 I tried to use crosstool-ng to generate a toolchain for Linux on big
4 endian arm with recent versions of gcc, glibc, etc... but had a few
7 It appears that the gcc patch (for gcc 4.2.x)
8 for big-endian arm (240-arm-bigendian.patch) lacks the change attached
9 to this mail as 240-arm-bigendian2.patch.
11 --- gcc-4.2.4/gcc/config/arm/bpabi.h~ 2007-09-01 17:28:30.000000000 +0200
12 +++ gcc-4.2.4/gcc/config/arm/bpabi.h 2009-01-05 19:19:10.000000000 +0100
14 #undef FPUTYPE_DEFAULT
15 #define FPUTYPE_DEFAULT FPUTYPE_VFP
18 + * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-*
19 + * (big endian) configurations.
21 +#if TARGET_BIG_ENDIAN_DEFAULT
22 +#define TARGET_ENDIAN_DEFAULT MASK_BIG_END
24 +#define TARGET_ENDIAN_DEFAULT 0
27 /* EABI targets should enable interworking by default. */
29 -#define TARGET_DEFAULT MASK_INTERWORK
30 +#define TARGET_DEFAULT (MASK_INTERWORK | TARGET_ENDIAN_DEFAULT)
32 /* The ARM BPABI functions return a boolean; they use no special
33 calling convention. */