Skip to content

Instantly share code, notes, and snippets.

@jim3ma
Created May 29, 2016 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jim3ma/a0150af8cd1dd93362599f13649f2e95 to your computer and use it in GitHub Desktop.
Save jim3ma/a0150af8cd1dd93362599f13649f2e95 to your computer and use it in GitHub Desktop.
install script for armel cross compile in debian 6
#!/bin/bash
# add emdebian-archive-keyring
apt-get update
apt-get install -y emdebian-archive-keyring
# add sources for xapt and cross-compile
cat << EOF >> /etc/apt/sources.list
deb http://archive.debian.org/backports.org squeeze-backports main
deb http://www.emdebian.org/debian squeeze main
EOF
# install armel cross-compile tools
apt-get update
apt-cache search armel | grep -v "4\.3" | awk '{print $1}' | grep -v tzdata | xargs apt-get install -y
# install libraries needed
apt-get install -y xapt
xapt -a armel libcurl4-openssl-dev \
libpkcs11-helper1-dev \
libcap-dev \
libxerces-c3.1 \
libpng12-dev \
libxml2-dev \
libgtk2.0-dev \
libwebkit-dev \
libxt-dev \
libpthread-stubs0-dev
apt-get install -y yui-compressor sysvbanner gettext
# OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment