summaryrefslogtreecommitdiff
path: root/misc/buildroot/configs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-19 02:42:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-04-19 02:42:24 +0000
commit48edd78da244d3b5f0ae68c6182412e806154533 (patch)
tree6c85eb432375da1623bedb5192a5483bde209efe /misc/buildroot/configs
parent151ba9fe153e122b116a4fc8a251b2c04b41334c (diff)
downloadnuttx-48edd78da244d3b5f0ae68c6182412e806154533.tar.gz
nuttx-48edd78da244d3b5f0ae68c6182412e806154533.tar.bz2
nuttx-48edd78da244d3b5f0ae68c6182412e806154533.zip
Add support to build g++
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1703 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc/buildroot/configs')
-rw-r--r--misc/buildroot/configs/README.txt36
-rw-r--r--misc/buildroot/configs/arm-defconfig-4.2.437
2 files changed, 30 insertions, 43 deletions
diff --git a/misc/buildroot/configs/README.txt b/misc/buildroot/configs/README.txt
index c46d47ede..af3d43670 100644
--- a/misc/buildroot/configs/README.txt
+++ b/misc/buildroot/configs/README.txt
@@ -5,10 +5,14 @@ arm-defconfig
Builds an ARM toolchain using gcc 3.4.5
arm-defconfig-4.2.4
- Builds an ARM toolchain using gcc 4.2.4
+ Builds an ARM toolchain using gcc 4.2.4. This configuration
+ builds both gcc and g++.
+
NOTE: At present, there are issues with some of the binutils
- programes (arm-elf-objcopy in particular) that cause Floating
- point exceptions when trying to build NuttX
+ programs (arm-elf-objcopy in particular) that cause Floating
+ point exceptions when trying to build NuttX. This is probably
+ due to improperly positioned sections and can probably fixed
+ by changing the architectures .ldscript file.
bfin-defconfig-4.2.4
Builds an Blackfin toolchain using gcc 4.2.4
@@ -93,7 +97,7 @@ Cygwin GCC BUILD NOTES
and, apparently, the make variable "exeext" is set incorrectly. A work around after the
above occurs is:
- cd toolchain_build_<arch>/gcc-4.2.4-initial/gcc # Go to the directory where error occurred
+ cd toolchain_build_<arch>/gcc-4.2.4-build/gcc # Go to the directory where error occurred
mv cc1-dummy.exe cc1-dummy # Rename the executable without .exe
rm cc1-checksum.c # Get rid of the bad generated file
@@ -102,9 +106,21 @@ Cygwin GCC BUILD NOTES
cd - # Back to the buildroot make directory
make # Restart the build
- GCC is built twice. First a initial, "bootstap" GCC is produced in
- toolchain_build_<arch>/gcc-4.2.4-initial, then the final GCC is produced in
- toolchain_build_<arch>/gcc-4.2.4-final. The above error will occur twice: Once for
- the intial GCC build (see above) and once for the final GCC build. For the final GCC
- build, the workaround is the same except that the directory will be
- toolchain_build_<arch>/gcc-4.2.4-final/gcc.
+ If you build g++, you will see another similar error:
+
+ ...
+ build/genchecksum cc1plus-dummy > cc1plus-checksum.c
+ opening cc1plus-dummy: No such file or directory
+ ...
+
+ The fix is similar:
+
+ cd toolchain_build_<arch>/gcc-4.2.4-build/gcc # Go to the directory where error occurred
+ mv cc1plus-dummy.exe cc1plus-dummy # Rename the executable without .exe
+ rm cc1plus-checksum.c # Get rid of the bad generated file
+
+ Then resume the buildroot make:
+
+ cd - # Back to the buildroot make directory
+ make # Restart the build
+ \ No newline at end of file
diff --git a/misc/buildroot/configs/arm-defconfig-4.2.4 b/misc/buildroot/configs/arm-defconfig-4.2.4
index 766e1db9c..155d4b5a3 100644
--- a/misc/buildroot/configs/arm-defconfig-4.2.4
+++ b/misc/buildroot/configs/arm-defconfig-4.2.4
@@ -6,8 +6,10 @@ BR2_HAVE_DOT_CONFIG=y
BR2_arm=y
# BR2_armeb is not set
# BR2_avr32 is not set
+# BR2_bfin is not set
# BR2_cris is not set
# BR2_i386 is not set
+# BR2_m32c is not set
# BR2_m68k is not set
# BR2_m68hc11 is not set
# BR2_m68hc12 is not set
@@ -66,24 +68,7 @@ BR2_GNU_TARGET_SUFFIX="elf"
#
# Binutils Options
#
-# BR2_BINUTILS_VERSION_2_14_90_0_8 is not set
-# BR2_BINUTILS_VERSION_2_15 is not set
-# BR2_BINUTILS_VERSION_2_15_94_0_2_2 is not set
-# BR2_BINUTILS_VERSION_2_16_1 is not set
-# BR2_BINUTILS_VERSION_2_16_90_0_3 is not set
-# BR2_BINUTILS_VERSION_2_16_91_0_5 is not set
-# BR2_BINUTILS_VERSION_2_16_91_0_6 is not set
-# BR2_BINUTILS_VERSION_2_16_91_0_7 is not set
# BR2_BINUTILS_VERSION_2_17 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_2 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_3 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_4 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_5 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_6 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_7 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_8 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_9 is not set
-# BR2_BINUTILS_VERSION_2_17_50_0_10 is not set
BR2_BINUTILS_VERSION_2_19=y
BR2_BINUTILS_VERSION="2.19"
BR2_EXTRA_BINUTILS_CONFIG_OPTIONS=""
@@ -91,28 +76,14 @@ BR2_EXTRA_BINUTILS_CONFIG_OPTIONS=""
#
# GCC Options
#
-# BR2_GCC_VERSION_3_3_5 is not set
-# BR2_GCC_VERSION_3_3_6 is not set
-# BR2_GCC_VERSION_3_4_2 is not set
-# BR2_GCC_VERSION_3_4_3 is not set
-# BR2_GCC_VERSION_3_4_4 is not set
-# BR2_GCC_VERSION_3_4_5 is not set
# BR2_GCC_VERSION_3_4_6 is not set
-# BR2_GCC_VERSION_4_0_0 is not set
-# BR2_GCC_VERSION_4_0_1 is not set
-# BR2_GCC_VERSION_4_0_2 is not set
-# BR2_GCC_VERSION_4_0_3 is not set
-# BR2_GCC_VERSION_4_0_4 is not set
-# BR2_GCC_VERSION_4_1_0 is not set
-# BR2_GCC_VERSION_4_1_1 is not set
-# BR2_GCC_VERSION_4_1_2 is not set
-# BR2_GCC_VERSION_4_2 is not set
BR2_GCC_VERSION_4_2_4=y
BR2_GCC_SUPPORTS_SYSROOT=y
BR2_GCC_VERSION="4.2.4"
# BR2_GCC_USE_SJLJ_EXCEPTIONS is not set
BR2_EXTRA_GCC_CONFIG_OPTIONS=""
-# BR2_INSTALL_LIBSTDCPP is not set
+BR2_INSTALL_LIBSTDCPP=y
+# BR2_INSTALL_LIBGCJ is not set
# BR2_INSTALL_OBJC is not set
# BR2_INSTALL_FORTRAN is not set