Changes between Initial Version and Version 1 of DebWrtDevCross


Ignore:
Timestamp:
Aug 14, 2011, 3:44:58 PM (8 years ago)
Author:
amain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DebWrtDevCross

    v1 v1  
     1= Cross-compiling with DebWrt =
     2
     3== Introduction ==
     4
     5Some packages, like the Linux kernel are to big to be compiled on the device(native) itself. We need a cross compile environment for that. DebWrt uses Emdebian to setup a cross-compile environment and to cross-compile some essential packages ported from OpenWrt. It is relatively easy to setup and use the cross compile environment to compile other packages.
     6
     7== Setting up the DebWrt cross compile environment ==
     8
     9Checkout DebWrt from SVN. Then run menuconfig to select the architecture you want to setup the cross compiler(buildenv) for. Then create it. A Debian change root (chroot) will be created. A lot of Debian compile and build related packages will be installed, as well as Emdebian. Emdebian contains the cross-compilers and the corresponding binutils.
     10
     11{{{
     12make menuconfig
     13make debian/buildenv
     14make chu
     15}}}
     16
     17With ''make chu'', you enter the buildenv chroot as the current user. You can also use ''make ch'' to enter the chroot as root.
     18
     19== Cross-compiling Debian source packages ==
     20
     21There is a lot to share about this subject. But for now I would like to give a pointer to the cross compiled DebWrt packages. It contains a lot of 'hidden' knowledge on how to get things compiled in several situations.
     22
     23[http://dev.debwrt.net/browser/trunk/debian/package]
     24
     25Some suggestions:
     26
     27   * Sometimes the debian/rules file needs to be adjusted tell it to use the cross compiler
     28   * Sometimes the Makefile of a package needs adjustment