Confirmed users
180
edits
No edit summary |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
# Prepare multiarch chroot | # Prepare multiarch chroot | ||
sudo debootstrap --variant=buildd oneiric | export CHROOTPATH=/home/oneiric | ||
sudo cp -f /etc/apt/apt.conf | sudo debootstrap --variant=buildd oneiric $CHROOTPATH | ||
sudo cp -f /etc/resolv.conf | sudo cp -f /etc/apt/apt.conf $CHROOTPATH/etc/apt/ | ||
sudo chroot / | sudo cp -f /etc/resolv.conf $CHROOTPATH/etc/ | ||
sudo chroot $CHROOTPATH | |||
echo "mount -t proc proc /proc" >> /root/.bashrc | |||
mount -t proc proc /proc | mount -t proc proc /proc | ||
#Set up the /etc/apt/sources.list inside the chroot : | #Set up the /etc/apt/sources.list inside the chroot : | ||
echo "# use arch=amd64 if you have 32bit Linux install | echo "# use arch=amd64 if you have 32bit Linux install | ||
deb [arch=i386] http://archive.ubuntu.com/ubuntu oneiric main universe | deb [arch=i386] http://archive.ubuntu.com/ubuntu oneiric main universe multiverse | ||
deb [arch=armel] http://ports.ubuntu.com/ubuntu-ports oneiric main universe | deb [arch=armel] http://ports.ubuntu.com/ubuntu-ports oneiric main universe multiverse | ||
#deb [arch=armel] http://ports.ubuntu.com/ubuntu-ports/ oneiric-updates main universe multiverse | |||
#deb [arch=armel] http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu oneiric main | |||
#deb [arch=armel] http://ppa.launchpad.net/linaro-maintainers/staging-overlay/ubuntu oneiric main | |||
deb-src http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu oneiric main | |||
deb-src http://ppa.launchpad.net/linaro-maintainers/staging-overlay/ubuntu oneiric main | |||
deb-src http://archive.ubuntu.com/ubuntu oneiric main universe" > /etc/apt/sources.list | deb-src http://archive.ubuntu.com/ubuntu oneiric main universe" > /etc/apt/sources.list | ||
| Line 40: | Line 44: | ||
apt-get update | apt-get update | ||
apt-get install vim bash-completion | |||
apt-get install g++-arm-linux-gnueabi build-essential pkg-config unzip zip autoconf2.13 | apt-get install g++-arm-linux-gnueabi build-essential pkg-config unzip zip autoconf2.13 | ||
| Line 68: | Line 73: | ||
# Install main Mozilla B2G Honk port base dependencies | # Install main Mozilla B2G Honk port base dependencies | ||
apt-get install libfreetype6-dev:armel libfontconfig1-dev:armel libasound-dev:armel libudev-dev:armel | apt-get install libfreetype6-dev:armel libfontconfig1-dev:armel libasound-dev:armel libudev-dev:armel | ||
# X deps (only for X build) | |||
apt-get install libasound2-dev:armel libxt-dev:armel libxext-dev:armel libxrender-dev:armel | |||
# This part is basically enough to build honk (plain linux gecko port ab be able to run it on Framebuffer or SGX EGL fb context) | # This part is basically enough to build honk (plain linux gecko port ab be able to run it on Framebuffer or SGX EGL fb context) | ||
| Line 130: | Line 138: | ||
LDFLAGS="$FIX_LINK_LDFLAGS" | LDFLAGS="$FIX_LINK_LDFLAGS" | ||
ac_add_options -- | ac_add_options --target=arm-linux-gnueabi | ||
ac_add_options --prefix=/usr | ac_add_options --prefix=/usr | ||
ac_add_options --enable-application=mobile | ac_add_options --enable-application=mobile | ||
| Line 160: | Line 167: | ||
ac_add_options --with-system-zlib | ac_add_options --with-system-zlib | ||
ac_add_options --enable-force-egl | ac_add_options --enable-force-egl | ||
ac_add_options --with-gl-provider=EGL | |||
#ac_add_options --enable-debug | #ac_add_options --enable-debug | ||