Cross Bootstrapping A LAMP Stack Using xdeb
Text below assumes use of Maverick packages
- Set up chroot with xdeb installed - the example scripts at
https://docs.google.com/leaf?id=0B3PR4S1Uev7KYzBkYTYwMTEtNDFkNS00ODI1LTkxMzktY2Q5NWVkNzlkNzkw&hl=en will need modifying to access your keys, user ids, permissions etc.
sudo <script directory>/make_and_setup_chroot.sh <path to desired chroot location>
- Move into the chroot
sudo chroot <path to desired chroot location> su chroot-user cd ~ mkdir build mkdir dest
Install cross toolchain - perhaps flavoured as at https://launchpad.net/~peter-pearse/+archive/armel-v5te-soft-vfp
- Point xdeb at apache2, mysql-server-5.0, in turn
xdeb -a armel -d ../dest --apt-source <package name>
Cross patch any packages which fail - there are some maverick cross patched sources at https://launchpad.net/~peter-pearse/+archive/cross-source
Here are some tips & tricks re cross patching.
- Zip up the resulting /usr/arm-linux-gnueabi contents
- Extract elsewhere and massage e.g. add in the necessary startup files, get /dev right etc.
Platform/DevPlatform/CrossCompile/CrossBuildLampStack (last modified 2011-03-15 21:01:29)