summaryrefslogtreecommitdiff
path: root/nuttx/configs/amber
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-23 14:13:57 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-23 14:13:57 +0000
commit302877eafc373d8ae61d7ecc66f17968d4e1e643 (patch)
treeea307eb5f1582a00a29acfdb8e9b8e2dd32b62b6 /nuttx/configs/amber
parent5d8459bbc994e69d80127776d82faa185ae42f9c (diff)
downloadpx4-nuttx-302877eafc373d8ae61d7ecc66f17968d4e1e643.tar.gz
px4-nuttx-302877eafc373d8ae61d7ecc66f17968d4e1e643.tar.bz2
px4-nuttx-302877eafc373d8ae61d7ecc66f17968d4e1e643.zip
Add common Toolchain.defs for AVR/AVR32; Add Toolchain.defs for ARM; Add more toolchain options (from Mike); incdir.sh and .bat now take -s option
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5384 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/amber')
-rw-r--r--nuttx/configs/amber/README.txt14
-rw-r--r--nuttx/configs/amber/hello/Make.defs28
2 files changed, 15 insertions, 27 deletions
diff --git a/nuttx/configs/amber/README.txt b/nuttx/configs/amber/README.txt
index 63fa5d41f..56e31ba7f 100644
--- a/nuttx/configs/amber/README.txt
+++ b/nuttx/configs/amber/README.txt
@@ -187,6 +187,12 @@ Atmel AVRISP mkII Connection
Toolchains
^^^^^^^^^^
+The toolchain may be selected using the mconf tool (via 'make menuconfig'),
+by editing the existing configuration file (defconfig), or by overriding
+the toolchain on the make commandline with CONFIG_AVR_TOOLCHAIN=<toolchain>.
+
+The valid values for <toolchain> are BUILDROOT, CROSSPACK, LINUXGCC and WINAVR.
+
Buildroot:
There is a DIY buildroot version for the AVR boards here:
@@ -223,6 +229,14 @@ Linux:
After configuring NuttX, make sure that CONFIG_AVR_LINUXGCC=y is set in your
.config file.
+Mac OS X:
+
+ For Mac OS X, the CrossPack for AVR toolchain is available from:
+
+ http://www.obdev.at/products/crosspack/index.html
+
+ This toolchain is functionally equivalent to the Linux GCC toolchain.
+
Windows Native Toolchains
^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/nuttx/configs/amber/hello/Make.defs b/nuttx/configs/amber/hello/Make.defs
index 15c31f192..e7f998dc7 100644
--- a/nuttx/configs/amber/hello/Make.defs
+++ b/nuttx/configs/amber/hello/Make.defs
@@ -35,33 +35,7 @@
include ${TOPDIR}/.config
include ${TOPDIR}/tools/Config.mk
-
-# Setup for the selected toolchain
-
-ifeq ($(CONFIG_AVR_WINAVR),y)
- # WinAVR toolchain under Windows/Cygwin
- CROSSDEV = avr-
- WINTOOL = y
- MAXOPTIMIZATION = -O2
- ARCHCPUFLAGS = -mmcu=atmega128
- LDFLAGS += -nostartfiles -nodefaultlibs
-endif
-
-ifeq ($(CONFIG_AVR_LINUXGCC),y)
- # GCC toolchain under Linux
- CROSSDEV = avr-
- MAXOPTIMIZATION = -O2
- ARCHCPUFLAGS = -mmcu=atmega128
- LDFLAGS += -nostartfiles -nodefaultlibs
-endif
-
-ifeq ($(CONFIG_AVR_BUILDROOT),y)
- # NuttX buildroot GCC toolchain under Linux or Cygwin
- CROSSDEV = avr-nuttx-elf-
- MAXOPTIMIZATION = -O2
- ARCHCPUFLAGS = -mmcu=atmega128
- LDFLAGS += -nostartfiles -nodefaultlibs
-endif
+include ${TOPDIR}/arch/avr/src/avr/Toolchain.defs
ifeq ($(WINTOOL),y)
# Windows-native toolchains