Optware Cross Compilation
Revision as of 23:36, 21 July 2009 by Hopspitfire (talk | contribs) (New page: A brief instruction here on how to setup optware cross build environment. For detail, see http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware On your host Linux PC, first you'll ...)
A brief instruction here on how to setup optware cross build environment. For detail, see http://www.nslu2-linux.org/wiki/Optware/AddAPackageToOptware
On your host Linux PC, first you'll need to install some build tools. On debian/ubuntu, at least "apt-get install build-essential".
svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware cd optware; make cs08q1armel-target cd cs08q1armel; make directories ipkg-utils toolchain
Now you are ready to build ipk's, in optware/cs08q1armel you can
make hello-dirclean hello-check
Take a look at make/hello.mk or make/template.mk to understand the structure.
For Pre specific ipk's such as kernel modules, we have a separate target. Starting from optware directory
make pre-target cd pre; make directories ipkg-utils toolchain
To build kernel and kmods
make kernel-modules-ipk
For kmods (re-)configuration
rm -f builds/kernel/.configured make kernel-modules-config KERNEL_CONFIG_METHOD=menuconfig cp builds/kernel/.config sources/kernel-modules/pre/defconfig