From 3e20176bd7e60e83dfd83c0e67a94ec103df1431 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 14 Feb 2011 15:40:26 +0000 Subject: [PATCH] 2011-02-14 Ramon Novoa * embedded/INSTALL: Added instructions to cross-compile for OpenWRT (x86). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/ChangeLog | 5 +++++ pandora_agents/embedded/INSTALL | 27 ++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index 07440003a2..ad49b49638 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,8 @@ +2011-02-14 Ramon Novoa + + * embedded/INSTALL: Added instructions to cross-compile for + OpenWRT (x86). + 2011-02-10 Sergio Martin * android/src/pandroid/agent/PandroidAgent.java diff --git a/pandora_agents/embedded/INSTALL b/pandora_agents/embedded/INSTALL index e4685f9fad..42731bfce9 100644 --- a/pandora_agents/embedded/INSTALL +++ b/pandora_agents/embedded/INSTALL @@ -16,8 +16,8 @@ In a ubuntu/debian linux package names are * automake1.9 * pkg-config -Cross compiling ---------------- +Cross compiling for ARM +----------------------- Edit apt sources (debian only, sorry!) @@ -31,13 +31,30 @@ Download a specific packages for crosscompiling (in my case ARM for GCC-4.3) Build for ARM: - ./configure --host=arm-linuxº - ./make + ./configure --host=arm-linux + make Check your GCC version is using the ARM binary. + +Cross compiling for OpenWRT (x86) +--------------------------------- + +Get the OpenWRT SDK: + + cd /root + wget -c http://downloads.openwrt.org/kamikaze/8.09.2/x86/OpenWrt-SDK-x86-for-Linux-i686.tar.bz2 + tar jxvf OpenWrt-SDK-x86-for-Linux-i686.tar.bz2 + export PATH=$PATH:/root/OpenWrt-SDK-x86-for-Linux-i686/staging_dir/toolchain-i386_gcc4.1.2/bin + +Compile: + + ./configure --host=i386-linux-uclibc + make + + Basic installation --------------- +------------------ The simplest way to compile this package is: