fix Cortex-M3 build
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1737 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
0c08d4fdb4
commit
0ac3909a0f
|
@ -27,11 +27,14 @@ buildroot-0.1.4 2009-04-19 <spudmonkey@racsa.co.cr>
|
|||
we do not build a libc. Now it builds almost twice as fast.
|
||||
* Removed logic to build the target GCC. That is never used.
|
||||
|
||||
buildroot-0.1.5 2009-xx-xx <spudmonkey@racsa.co.cr>
|
||||
buildroot-0.1.5 2009-04-25 <spudmonkey@racsa.co.cr>
|
||||
|
||||
* Replaced config/arm-defconfig-4.2.4 with config/arm920t-defconfig-4.2.4
|
||||
and config/arm926t-defconfig-4.2.4 because of differences in the
|
||||
way that soft floating point is handled between these two
|
||||
architectures.
|
||||
* Add support for gcc-4.3.3 and the ARM Cortex-M3 processor
|
||||
* Add support for gcc-4.3.3 and the ARM Cortex-M3 processor (thumb2)
|
||||
* Add support for binutils 2.19.1
|
||||
|
||||
buildroot-0.1.6 2009-xx-xx <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ config BR2_cris
|
|||
config BR2_i386
|
||||
bool "i386"
|
||||
config BR2_m32c
|
||||
bool "r8c/m16c/m32c/"
|
||||
bool "r8c/m16c/m32c"
|
||||
config BR2_m68k
|
||||
bool "m68k"
|
||||
config BR2_m68hc11
|
||||
|
|
|
@ -1,42 +1,58 @@
|
|||
ReleaseNotes v0.1.4:
|
||||
ReleaseNotes v0.1.5:
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
This is a highly hacked up version of the buildroot (see
|
||||
http://buildroot.uclibc.org/ . It has been hacked so
|
||||
that it can be used to build the following NuttX-compatible
|
||||
toolchains:
|
||||
http://buildroot.uclibc.org/ . It has been hacked so that it
|
||||
can be used to build the following NuttX-compatible toolchains:
|
||||
|
||||
o arm-elf toolchain needed for use with the TI C5471 (ARM7),
|
||||
NXP LPC214x (ARM7), STMicro STR71x (ARM7), and TI DM320
|
||||
(ARM9) ports provided with the NuttX releases.
|
||||
o arm-elf toolchain needed for use with the TI C5471 (ARM7TDMI),
|
||||
NXP LPC214x (ARM7TMDI), STMicro STR71x (ARM7TDMI), Freescale
|
||||
i.MX1 (ARM920T), and TI DM320 (ARM926EJ-S) provided with the
|
||||
NuttX releases.
|
||||
|
||||
o m68k-elf toolchain (not currently used in any NuttX
|
||||
configuration).
|
||||
o arm-elf thumb2 toolchain needed for use with the ARM Cortex-M3
|
||||
ports provided with the NuttX releases.
|
||||
|
||||
o m68hc11-elf toolchain (not currently used in any NuttX
|
||||
configuration).
|
||||
o m68k-elf toolchain (not currently used in any NuttX
|
||||
configuration).
|
||||
|
||||
o sh-elf toolchain needed for the SH-1 NuttX port.
|
||||
o m68hc11-elf toolchain (not currently used in any NuttX
|
||||
configuration).
|
||||
|
||||
o m32c-elf toolchain needed for the Renesas M16C NuttX port.
|
||||
o sh-elf toolchain needed for the SH-1 NuttX port.
|
||||
|
||||
o H8/300 toolchain (not currently used in any NuttX
|
||||
configuration).
|
||||
o m32c-elf toolchain needed for the Renesas M16C NuttX port.
|
||||
|
||||
o bfin-elf toolchain not currently used in any NuttX
|
||||
configuration).
|
||||
o H8/300 toolchain (not currently used in any NuttX
|
||||
configuration).
|
||||
|
||||
Instructions:
|
||||
o bfin-elf toolchain not currently used in any NuttX
|
||||
configuration).
|
||||
|
||||
-You must have already configured Nuttx in <some-dir>nuttx
|
||||
-download into <some-dir>
|
||||
-unpack -cd <some-dir>/buildroot
|
||||
-cp configs/arm-defconfig .config
|
||||
Supported tool versions include:
|
||||
|
||||
o gcc-3.4.6 + binutils-2.17
|
||||
o gcc-4.2.4 + binutils-2.19
|
||||
o gcc-4.3.3 + binutils-2.19.1
|
||||
|
||||
See the ChangeLog of features/architectgures added in v0.1.5.
|
||||
|
||||
Installation instructions:
|
||||
|
||||
- You must have already configured Nuttx in <some-dir>/nuttx
|
||||
- download the buildroot package into <some-dir>
|
||||
- unpack -cd <some-dir>/buildroot
|
||||
- cp configs/arm-defconfig .config
|
||||
- make oldconfig
|
||||
- make
|
||||
|
||||
See configs/README.txt for other configurations and for more detailed
|
||||
instructions.
|
||||
instructions. If your NuttX installation resides at a different location
|
||||
then:
|
||||
|
||||
- make menuconfig
|
||||
|
||||
And set the "Path to the NuttX root directory" appropriately.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
// This patch is bogus. It does let you create a a version of binutils with the cross
|
||||
// name of thumb-elf, but it is insufficient to build a whole thumb-elf toolchain because
|
||||
// of issues with gcc. Rather, build arm-elf, but configure --with-mode=thumb
|
||||
//
|
||||
diff -u binutils-2.19.1/gas/configure.tgt.orig binutils-2.19.1/gas/configure.tgt
|
||||
--- binutils-2.19.1/gas/configure.tgt.orig 2009-04-25 11:00:15.593750000 -0400
|
||||
+++ binutils-2.19.1/gas/configure.tgt 2009-04-25 11:00:45.593750000 -0400
|
||||
|
|
|
@ -44,7 +44,7 @@ TARGET_SOFT_FLOAT:=
|
|||
ARCH_FPU_SUFFIX:=
|
||||
endif
|
||||
|
||||
# some additional defaults
|
||||
# some additional tuning values
|
||||
ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ARCH))),)
|
||||
# ")))
|
||||
GCC_WITH_ARCH:=--with-arch=$(BR2_GCC_TARGET_ARCH)
|
||||
|
@ -57,3 +57,6 @@ ifneq ($(strip $(subst ",,$(BR2_GCC_TARGET_ABI))),)
|
|||
# ")))
|
||||
GCC_WITH_ABI:=--with-abi=$(BR2_GCC_TARGET_ABI)
|
||||
endif
|
||||
ifdef BR2_cortex_m3
|
||||
GCC_WITH_MODE:=--with-mode=thumb
|
||||
endif
|
||||
|
|
|
@ -123,7 +123,7 @@ $(GCC_BUILD_DIR)/.configured: $(GCC_DIR)/.patched $(GCC_STAGING_PREREQ)
|
|||
$(THREADS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
|
||||
$(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) $(GCC_WITH_MODE) \
|
||||
$(GCC_USE_SJLJ_EXCEPTIONS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
|
|
|
@ -121,7 +121,7 @@ $(GCC_BUILD_DIR)/.configured: $(GCC_DIR)/.patched $(GCC_STAGING_PREREQ)
|
|||
$(THREADS) \
|
||||
$(MULTILIB) \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
|
||||
$(GCC_WITH_ABI) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) $(GCC_WITH_MODE) \
|
||||
$(GCC_USE_SJLJ_EXCEPTIONS) \
|
||||
$(DISABLE_LARGEFILE) \
|
||||
$(EXTRA_GCC_CONFIG_OPTIONS));
|
||||
|
|
Loading…
Reference in New Issue