[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/4] Add GCC cross compiler for arm-none-eabi.
From: |
Theodoros Foradis |
Subject: |
[PATCH v2 0/4] Add GCC cross compiler for arm-none-eabi. |
Date: |
Mon, 19 Sep 2016 23:23:36 +0300 |
Hello Guix and Ricardo,
The original patch series was working correctly and producing working binaries.
Some
flags (that I had been using with 6.2.0) are missing from that version of GCC
4.9,
so I added 6.2.0 as an extra option. I have tested it to produce working
binaries.
Here are some modifications to Ricardo's patches for the arm-none-eabi
bare metal cross compiler. The following changes have been made:
- I have modified xbinutils to use binutils 2.25.1 from cross-base, as it
compiles
correctly with it. The version from the svn commit that was used by Ricardo is
compiling
correct binaries as well. Thus, if it is deemed appropriate, the source for
xbinutils can
be swapped for the previous one, with (seemingly) no difference.
- The xgcc of the original, was failing to find the headers that newlib
provided.
I have set the native-cross-paths as a workaround. Not sure if there is a better
alternative, or if the failure was my mistake.
- A package for cross GCC 6.2.0 is added, with appropriate patches for multilib
support.
- Newlib-arm-none-eabi and newlib-nano-arm-none-eabi have been changed to
procedures, taking an xgcc as argument, so as to facilitate building with
either version of gcc.
- An arm-none-eabi-toolchain procedure is declared, to create toolchain packages
for both gcc and newlib version. The four toolchain variables follow. Not sure
if it's a mistake to include "nano" in the toolchain version.
This is the first patch that I send in guix-devel, so please bear with me.
Regards,
Theodoros Foradis
* gnu: Add arm-none-eabi-toolchain.
* gnu: Add newlib-arm-none-eabi.
* gnu: Add arm-none-eabi-gcc-6 and patches.
* gnu: Add arm-none-eabi cross compiler.
gnu/local.mk | 1 +
gnu/packages/bootstrap.scm | 1 +
gnu/packages/embedded.scm | 226
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gnu/packages/patches/gcc-6-arm-none-eabi-multilib.patch | 201
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gnu/packages/patches/gcc-6-cross-environment-variables.patch | 65
+++++++++++++++++++
5 files changed, 494 insertions(+)
create mode 100644 gnu/packages/embedded.scm
create mode 100644 gnu/packages/patches/gcc-6-arm-none-eabi-multilib.patch
create mode 100644 gnu/packages/patches/gcc-6-cross-environment-variables.patch
- [PATCH 0/3] Add GCC cross compiler for arm-none-eabi., Ricardo Wurmus, 2016/09/18
- [PATCH 1/3] gnu: Add arm-none-eabi cross compiler., Ricardo Wurmus, 2016/09/18
- [PATCH 2/3] gnu: Add newlib-arm-none-eabi., Ricardo Wurmus, 2016/09/18
- [PATCH 3/3] gnu: Add newlib-nano-arm-none-eabi., Ricardo Wurmus, 2016/09/18
- [PATCH v2 0/4] Add GCC cross compiler for arm-none-eabi.,
Theodoros Foradis <=
- [PATCH v2 3/4] gnu: Add newlib-arm-none-eabi., Theodoros Foradis, 2016/09/20
- [PATCH v2 1/4] gnu: Add arm-none-eabi cross compiler., Theodoros Foradis, 2016/09/20
- [PATCH v2 4/4] gnu: Add arm-none-eabi-toolchain., Theodoros Foradis, 2016/09/20
- [PATCH v2 2/4] gnu: Add arm-none-eabi-gcc-6 and patches., Theodoros Foradis, 2016/09/20
- Re: [PATCH v2 0/4] Add GCC cross compiler for arm-none-eabi., Ludovic Courtès, 2016/09/27
- [PATCH v2 0/1] Add GCC cross compiler for arm-none-eabi., Theodoros Foradis, 2016/09/20