energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 671 forks source link

build.xml for building linux distribution needs changes #92

Closed RickKimball closed 12 years ago

RickKimball commented 12 years ago

The linux section of build.xml includes the avr hardware directory and compiler tools. We don't need these for the linux Energia version. I have some of this fixed. I needed an issue so I could make a branch and start pushing to it.

How about binaries? Do we want to include any? msp430-gcc 4.6.3 for Ubuntu? mspdebug latest version from git?

Should we just point people at where to grab the git source for mspdebug?

Seems like msp430-gcc 4.6.3 is still in most distribution's experimental packages.

robertinant commented 12 years ago

I would love to have binaries. Reading thought the readme.txt (attached) included in Arduino for Linux it seems there is not much to it and nothing special needed. The tools were extracted from Ubuntu 9.04 avr-gcc package. libgmp and libmpfr are included which I believe are already build in dependencies for msp430-gcc if you use your script. Let's give it a try. What version of Ubuntu are you on? I can try it out on my linux installation and maybe try a couple of live CD's with different flavors. The readme also states that the IDE was patched to use the tools in Arduino if they are there and falls back to the system wide tools if hardware/tools/avr directory is removed. I can plug that in for msp430 tools.

readme.txt


AVR Toolchain for 32 bit Linux (i486-linux-gnu)

This toolchain was created by extracting the Debian gcc-avr and binutils-avr
packages from Ubuntu 9.04 (Jaunty Jackalope).  These versions closely match
the toolchain Arduino bundles on Mac and Windows.

AVR libc 1.6.4 was compiled compiled from source on Jaunty and then and
copied to the avr/lib/avr directory.  The eeprom.h file was replaced by
Arduino's modified copy.

Ubuntu libraries libgmp and libmpfr were copied to avr/lib.  The main
gcc binaries avr-gcc, avr-g++ and avr-cpp were moved to avr/bin.gcc, and
scripts were placed in the avr/bin directory to run these with
LD_LIBRARY_PATH set to use libgmp and libmpfr from the avr/lib directory.

A patch was applied to the Arduino IDE to use this toolchain if the
tools/avr/bin directory is present.  If this directory is removed, Arduino
will attempt to use the AVR toolchain provided by your system.

Finally, this readme file was added.
pbrier commented 12 years ago

See also issue #77. Can we try to add a pre compiled set of linux binaries to energia, maybe as a seperate download package? This will ensure we have a known to work combination of tools distributed.

When time comes that all dists have an up to date gcc this download can be omitted.

Verzonden van mijn Android telefoon met K-9 Mail.

Rick Kimball reply@reply.github.com schreef:

The linux section of build.xml includes the avr hardware directory and compiler tools. We don't need these for the linux Energia version. I have some of this fixed. I needed an issue so I could make a branch and start pushing to it.

How about binaries? Do we want to include any? msp430-gcc 4.6.3 for Ubuntu? mspdebug latest version from git?

Should we just point people at where to grab the git source for mspdebug?

Seems like msp430-gcc 4.6.3 is still in most distribution's experimental packages.


Reply to this email directly or view it on GitHub: https://github.com/energia/Energia/issues/92

RickKimball commented 12 years ago

What version of Ubuntu are you on?

I'm running 32bit Ubuntu 11.04 (AKA Natty Narwhal). It is unlikely I will upgrade because of the direction Ubuntu has taken with the user interface. I used ldd on the msp430-gcc I built and it looks like this:

$ ldd msp430-gcc
    linux-gate.so.1 =>  (0x00376000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x0071a000)
    /lib/ld-linux.so.2 (0x00cb4000)
$ 

I can package up my executables and the script I used for creating them and put all that in hardware/msp430/tools. What do you think about targeting it for /opt/energia. We can keep the executables in the Energia tree I just need to build with a reasonable prefix that isn't going to break some other package.