NSLU2-Linux
view · edit · print · history

SlugOS.SettingUpToolchain History

Hide minor edits - Show changes to markup

March 27, 2009, at 06:19 PM by VoodooZ --
Changed lines 2-3 from:
to:

(based on http://wiki.openmoko.org/wiki/Toolchain#Installing_New_Libraries)

March 27, 2009, at 06:19 PM by VoodooZ --
Changed lines 1-2 from:

h1 Here's how to Setup a Development toolchain for cross-compiling code for SlugOS

to:

Here's how to Setup a Development toolchain for cross-compiling code for SlugOS

March 27, 2009, at 06:17 PM by VoodooZ -- cleanup
Changed line 7 from:
  • - extract resulting tar file (slugos/deploy/sdk) in / (to get /usr/local/slugos)
to:
  • extract resulting tar file (found in slugos/deploy/sdk) to root (to get /usr/local/slugos)
Changed line 10 from:
  • Setup environment
to:
  • Setup environment (this has to be done every session)
Changed line 13 from:
  • Add URL of cross feed repo to toolchain's opkg.conf
to:
  • Configure toolchain's opkg with appropriate cross feeds URL (for opkg-target to fetch packages)
Added line 22:
        examples:
Changed line 32 from:

<pre>make</pre>

to:
        make
March 27, 2009, at 06:13 PM by VoodooZ --
Added line 12:
Added line 17:
Added line 20:
Added line 26:
Changed lines 29-31 from:
  • Make project!
to:
  • Build your project

<pre>make</pre>

March 27, 2009, at 06:12 PM by VoodooZ --
Added line 6:
Added line 9:
March 27, 2009, at 06:12 PM by VoodooZ -- genesis.
Added lines 1-23:

h1 Here's how to Setup a Development toolchain for cross-compiling code for SlugOS

  • Build Toolchain
        make update
        bb meta-toolchain-slugos
  • - extract resulting tar file (slugos/deploy/sdk) in / (to get /usr/local/slugos)
        tar jxvf slugos-5.4-alpha-armv5te-linux-gnueabi-toolchain-slugos.tar.bz2 -C /
  • Setup environment
        source /usr/local/slugos/armeb/environment-setup
  • Add URL of cross feed repo to toolchain's opkg.conf
        vi /usr/local/slugos/armeb/armeb-linux-gnueabi/etc/opkg.conf
        (ie. replace '/all' with 
        http://ipkg.nslu2-linux.org/feeds/slugosbe/cross/5.3-beta/)
  • Update package list
        opkg-target update
  • Add required packages to toolchain (-dev is for includes)
        opkg-target install libusb-1.0
        opkg-target install libusb-1.0-dev
        opkg-target install gpsd
        opkg-target install gpsd-dev
  • Update project's Makefile to use pkg-config in LDFLAGS and CXXFLAGS
        ie. `pkg-config --libs libusb-1.0` & `pkg-config --cflags libusb-1.0`
  • Make project!
view · edit · print · history · Last edited by VoodooZ.
Originally by VoodooZ.
Page last modified on March 27, 2009, at 06:19 PM