diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-05 15:32:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-05 15:32:48 +0000 |
commit | 2ea243ca6269fa8e5163ec9a02d8b90777920310 (patch) | |
tree | ed9509aa5a49ea5d3a70f5ad842873d29cbd374d /misc | |
parent | a9d50d07b23fa0ab3cc4063f280a7f75f73966ab (diff) | |
download | px4-nuttx-2ea243ca6269fa8e5163ec9a02d8b90777920310.tar.gz px4-nuttx-2ea243ca6269fa8e5163ec9a02d8b90777920310.tar.bz2 px4-nuttx-2ea243ca6269fa8e5163ec9a02d8b90777920310.zip |
Add GCC-4.3.3 for ARM920T
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1751 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'misc')
-rw-r--r-- | misc/buildroot/ChangeLog | 1 | ||||
-rw-r--r-- | misc/buildroot/configs/README.txt | 40 | ||||
-rw-r--r-- | misc/buildroot/configs/arm920t-defconfig-4.3.3 | 112 |
3 files changed, 144 insertions, 9 deletions
diff --git a/misc/buildroot/ChangeLog b/misc/buildroot/ChangeLog index bbeba290d..292ed2c62 100644 --- a/misc/buildroot/ChangeLog +++ b/misc/buildroot/ChangeLog @@ -39,5 +39,6 @@ buildroot-0.1.5 2009-04-25 <spudmonkey@racsa.co.cr> buildroot-0.1.6 2009-xx-xx <spudmonkey@racsa.co.cr> * Added config/arm7tdmi-defconfig-4.2.4 + * Added config/arm920t-defconfig-4.3.3 diff --git a/misc/buildroot/configs/README.txt b/misc/buildroot/configs/README.txt index 8f69961a6..bf016641d 100644 --- a/misc/buildroot/configs/README.txt +++ b/misc/buildroot/configs/README.txt @@ -8,8 +8,8 @@ arm7tdmi-defconfig-4.2.4 arm920t-defconfig-4.2.4 arm926t-defconfig-4.2.4 Builds an ARM toolchain using gcc 4.2.4. This configuration - builds both gcc and g++. There are thred versions: one for - arm7tdmi (armv4t) , arm920t (armv4t) and arm926t (arv5t) because + builds both gcc and g++. There are three versions: one for + arm7tdmi (armv4t), arm920t (armv4t) and arm926t (arv5t) because of differences in the way that soft floating is handled in between the armv4t and arm5t architectures. @@ -34,6 +34,11 @@ arm926t-defconfig-4.2.4 This change probably applies to other architectures as well (?) +arm920t-defconfig-4.3.3 + Builds an ARM toolchain using gcc 4.3.3. This configuration + builds both gcc and g++ for the arm920t (armv4t). It is an + update to arm920t-defconfig-4.2.4 (see notes above). + cortexm3-defconfig-4.3.3 Builds an ARM toolchain for the Cortex-M3 using gcc 4.3.3. This configuration builds both gcc and g++. @@ -58,12 +63,29 @@ sh-defconfig GENERAL BUILD STEPS ^^^^^^^^^^^^^^^^^^^ -1. CD to the correct directory. +1. Configure your host machine. You host PC should have a relatively complete + C development environment. I don't have a full list of the package requirements. + The later tool chains also require GMP and MPRF development packages or the + build will fail with errors like: + + "configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+. ... + Copies of these libraries' source code can be found at their respective + hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. + See also http://gcc.gnu.org/install/prerequisites.html for additional info. + If you obtained GMP and/or MPFR from a vendor distribution package, make + sure that you have installed both the libraries and the header files. + They may be located in separate packages." + + You should try your package manager for whatever Linux version you are using + first. The header files are normally included in versions of the packages that + have "-devel" in the package name. + +2. CD to the correct directory. Change to the directory just above the NuttX installation. If <nuttx-dir> is where NuttX is installed, then cd to <nuttx-dir>/.. -2. Get and Install the buildroot Module +3. Get and Install the buildroot Module a. Using a release tarball: @@ -73,7 +95,7 @@ GENERAL BUILD STEPS rename the directory to buildroot b. Using CVS - + Check out the misc/buildroot module. CVS checkout instructions: cvs -d:pserver:anonymous@nuttx.cvs.sourceforge.net:/cvsroot/nuttx login @@ -84,18 +106,18 @@ GENERAL BUILD STEPS mv misc/buildroot . Make the archive directory: - + mkdir archive The <nuttx-dir>/../buildroot is where the toolchain is built; The <nuttx-dir>/../archive directory is where toolchain sources will be downloaded. -3. Make sure that NuttX is configured +4. Make sure that NuttX is configured cd <nuttx-dir>/tools ./configure.sh <nuttx-configuration> - -4. Configure and Make the buildroot + +5. Configure and Make the buildroot cd buildroot cp configs/<config-file> .config diff --git a/misc/buildroot/configs/arm920t-defconfig-4.3.3 b/misc/buildroot/configs/arm920t-defconfig-4.3.3 new file mode 100644 index 000000000..9fd6b6a56 --- /dev/null +++ b/misc/buildroot/configs/arm920t-defconfig-4.3.3 @@ -0,0 +1,112 @@ +# +# Automatically generated make config: don't edit +# +BR2_HAVE_DOT_CONFIG=y +# BR2_alpha is not set +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 +# BR2_mips is not set +# BR2_mipsel is not set +# BR2_nios2 is not set +# BR2_powerpc is not set +# BR2_sh is not set +# BR2_sh64 is not set +# BR2_h8300 is not set +# BR2_sparc is not set +# BR2_x86_64 is not set +# BR2_generic_arm is not set +# BR2_arm610 is not set +# BR2_arm7tdmi is not set +# BR2_arm710 is not set +# BR2_arm720t is not set +# BR2_arm740t is not set +BR2_arm920t=y +# BR2_arm922t is not set +# BR2_arm926t is not set +# BR2_arm1136jf_s is not set +# BR2_cortex_m3 is not set +# BR2_sa110 is not set +# BR2_sa1100 is not set +# BR2_xscale is not set +# BR2_iwmmxt is not set +BR2_ARM_OABI=y +# BR2_ARM_EABI is not set +BR2_ARCH="arm" +BR2_GCC_TARGET_TUNE="arm920t" +BR2_GCC_TARGET_ARCH="armv4t" +BR2_GCC_TARGET_ABI="apcs-gnu" +BR2_ENDIAN="LITTLE" + +# +# Build options +# +BR2_WGET="wget --passive-ftp" +BR2_SVN="svn co" +BR2_ZCAT="zcat" +BR2_BZCAT="bzcat" +BR2_TAR_OPTIONS="" +BR2_DL_DIR="$(BASE_DIR)/../archives" +BR2_SOURCEFORGE_MIRROR="easynews" +BR2_ATMEL_MIRROR="ftp://at91dist:distrib@81.80.104.162/AT91_Third_Party_Design_Flow/Linux_Host/" +BR2_AT91_PATCH_MIRROR="http://maxim.org.za/AT91RM9200/2.6/" +BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir" +BR2_NUTTX_DIR="$(TOPDIR)/../nuttx" +BR2_TOPDIR_PREFIX="" +BR2_TOPDIR_SUFFIX="" +BR2_GNU_BUILD_SUFFIX="arm-elf" +BR2_GNU_TARGET_SUFFIX="elf" +# BR2_PREFER_IMA is not set +# BR2_DEPRECATED is not set + +# +# Toolchain Options +# + +# +# Binutils Options +# +# BR2_BINUTILS_VERSION_2_17 is not set +# BR2_BINUTILS_VERSION_2_19 is not set +BR2_BINUTILS_VERSION_2_19_1=y +BR2_BINUTILS_VERSION="2.19.1" +BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="" + +# +# GCC Options +# +# BR2_GCC_VERSION_3_4_6 is not set +# BR2_GCC_VERSION_4_2_4 is not set +BR2_GCC_VERSION_4_3_3=y +BR2_GCC_SUPPORTS_SYSROOT=y +BR2_GCC_VERSION="4.3.3" +# BR2_GCC_USE_SJLJ_EXCEPTIONS is not set +BR2_EXTRA_GCC_CONFIG_OPTIONS="" +BR2_INSTALL_LIBSTDCPP=y +# BR2_INSTALL_LIBGCJ is not set +# BR2_INSTALL_OBJC is not set +# BR2_INSTALL_FORTRAN is not set + +# +# Gdb Options +# +# BR2_PACKAGE_GDB is not set +# BR2_PACKAGE_GDB_SERVER is not set +# BR2_PACKAGE_GDB_HOST is not set + +# +# Common Toolchain Options +# +# BR2_PACKAGE_SSTRIP_TARGET is not set +# BR2_PACKAGE_SSTRIP_HOST is not set +# BR2_ENABLE_MULTILIB is not set +BR2_LARGEFILE=y +BR2_SOFT_FLOAT=y +BR2_TARGET_OPTIMIZATION="-Os -pipe" |