Changes between Version 105 and Version 106 of TBR/BSP/AVRTest


Ignore:
Timestamp:
Feb 3, 2013, 11:01:24 PM (7 years ago)
Author:
C Rempel
Comment:

/* Building the Toolchain */

Legend:

Unmodified
Added
Removed
Modified
  • TBR/BSP/AVRTest

    v105 v106  
    243243 export C_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
    244244 export CPLUS_INCLUDE_PATH=/usr/include/$(gcc -print-multiarch)
    245 
     245''' TODO: ''' add lines to ~/.bashrc to make the tools accessible for later use.
     246
     247Avr-Ada ships with a build script, which downloads and builds the AVR-Ada toolchain.  Start by making a directory for the toolchain.
    246248 '''~/$''' mkdir AVR_ADA && cd AVR_ADA # make a directory for building the AVR Ada toolset
     249Then download and extract the toolchain
    247250 '''~/AVR_ADA$''' wget http://sourceforge.net/projects/avr-ada/files/avr-ada/Source\ Dist/avr-ada-1.2.1.tar.bz2 # get the source
    248251 '''~/AVR_ADA$''' tar -xf avr-ada-1.2.1.tar.bz2
    249  *  set download_files=yes
    250  '''~/AVR_ADA$''' sed 's/download_files=no/download_files=yes/' -i avr-ada-1.2.1/tools/build/build-avr-ada.sh
    251  *  To change the install directory to user space do
     252Make a working copy of the build script in the directory,
     253 '''~/AVR_ADA$''' cp avr-ada-1.2.1/tools/build/build-avr-ada.sh .
     254Set download_files=yes to have the script download the source code
     255 '''~/AVR_ADA$''' sed 's/download_files=no/download_files=yes/' -i build-avr-ada.sh
     256Building the toolchain in user space reduces the number of errors caused by permissions problems. To change the install directory to user space do
    252257 '''~/AVR_ADA$''' sed s/\\/opt/\\/home\\/'''user'''\\/Desktop\\/AVR-ADA/ -i avr-ada-1.2.1/tools/build/build-avr-ada.sh
    253258 *  To run the code