[MacPorts] #51397: Newlib nano support for arm-none-eabi-gcc toolchain

MacPorts noreply at macports.org
Sat Jul 16 16:47:00 PDT 2016


#51397: Newlib nano support for arm-none-eabi-gcc toolchain
-------------------------+--------------------------------
  Reporter:  ekawahyu@…  |      Owner:  macports-tickets@…
      Type:  request     |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.4
Resolution:              |   Keywords:
      Port:              |
-------------------------+--------------------------------

Comment (by denis@…):

 Hello,[[BR]]
 I have the same request.[[BR]]
 "newlib-nano is now integrated in the main newlib source tree. Building
 newlib-nano is now a matter of specifying the right configure option."
 according to this discussion: [https://answers.launchpad.net/gcc-arm-
 embedded/+question/244125]

 I try to do it, it is not very clean but it seems to work.[[BR]]
 1) Update arm-none-eabi-gcc Portfile to get last newlib version and allow
 libgloss library to be compiled (as variant).[[BR]]
 2) Small change in group crossgcc-1.0.tcl
 (/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/crossgcc-1.0.tcl)
 to make it reusable: change all gcc-${version} by
 gcc-${crossgcc.version}[[BR]]
 3) Create a arm-none-eabi-newlib-nano Portfile to add *_nano.a files. To
 do it I recompile a gcc+newlib with specific configure option + Os
 optimization. And them rename *.a files to *_nano.a files (others files
 are discard).

 This seems to works.

-- 
Ticket URL: <https://trac.macports.org/ticket/51397#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list