From e284b218a7c52b666082fc552a21fc03b13459c1 Mon Sep 17 00:00:00 2001 From: Martin Guy Date: Sun, 31 Mar 2013 04:07:38 +0000 Subject: arch/avr32: Fix download of header files This patch fixes the download of the avr32 headers in crosstool-ng by fetching them directly from Atmel's web site instead of the now-broken URL given by the original author of the avr32-header-fetching modification, who fetched them from a copy on his own, now-defunct server. It also adds the necessary logic to extract from a zip file, as that is how the headers are packaged. To configure it for avr32 after launching ct-ng menuconfig in an empty directory: Paths and misc options -> Shell to use as CONFIG_SHELL = sh Target options -> Target Architecture = avr32 Toolchain options -> Tuple's alias = avr32 Binary utilities -> binutils version = 2.18a C compiler gcc version = 4.2.2 C-library newlib version = 1.17.0 Enable IOs on long long = yes Enable IOs on floats and doubles = yes Disable the syscalls supplied with newlib = yes CONFIG_SHELL is necessary to get round the "fragment: command not found" bug when binutils-2.18 is configured using bash. Prepared against crosstool-ng mercurial trunk on 31 March 2012. Signed-off-by: Martin Guy [yann.morin.1998@free.fr: update bundles sample accordingly] Signed-off-by: "Yann E. MORIN" Message-Id: Patchwork-Id: 232612 --- samples/avr32-unknown-none/crosstool.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'samples/avr32-unknown-none') diff --git a/samples/avr32-unknown-none/crosstool.config b/samples/avr32-unknown-none/crosstool.config index 508dbd05..aed5349b 100644 --- a/samples/avr32-unknown-none/crosstool.config +++ b/samples/avr32-unknown-none/crosstool.config @@ -1,4 +1,3 @@ -CT_EXPERIMENTAL=y CT_LOCAL_TARBALLS_DIR="${HOME}/src" CT_SAVE_TARBALLS=y CT_CONFIG_SHELL_SH=y @@ -7,3 +6,6 @@ CT_ARCH_avr32=y CT_BINUTILS_V_2_18a=y CT_CC_V_4_2_2=y CT_LIBC_NEWLIB_V_1_17_0=y +CT_LIBC_NEWLIB_IO_LL=y +CT_LIBC_NEWLIB_IO_FLOAT=y +CT_LIBC_NEWLIB_DISABLE_SUPPLIED_SYSCALLS=y -- cgit v1.2.3