#!/bin/sh scons j=2 build=mips64-octeon-linux-gnu \ disable_ipv6=yes enable_tests=no disable_fw=yes strip=yes \ disable_tracelogs=yes disable_infologs=yes disable_otherlogs=yes optimize=size debug=no \ STRIP=mips64-octeon-linux-gnu-strip CC=mips64-octeon-linux-gnu-gcc CXX=mips64-octeon-linux-gnu-g++ \ LINKFLAGS=-L/opt/OCTEON-SDK_2.0.0/tools-gcc-4.3/mips64-octeon-linux-gnu/sys-root/usr/include/openssl/lib \ CFLAGS=-I/opt/OCTEON-SDK_2.0.0/tools-gcc-4.3/mips64-octeon-linux-gnu/sys-root/usr/include/openssl \ CXXFLAGS=-I/opt/OCTEON-SDK_2.0.0/tools-gcc-4.3/mips64-octeon-linux-gnu/sys-root/usr/include/openssl $1
Use it with "build" or "install". N.B. Somebody working on decrease of the installation size? It is critical on embedded devices. Oleg From: Kuhn, Thomas J (IS) [mailto:[email protected]] Sent: Monday, June 04, 2012 3:23 PM To: Kodel Oleg; [email protected] Subject: RE: Cross Compiled XORP is quite large Thanks! What flags are you setting? Tom Kuhn Office: (407) 737-4953 Cell: (407) 721-0628 [email protected]<mailto:[email protected]> From: Kodel Oleg [mailto:[email protected]] Sent: Sunday, June 03, 2012 2:33 AM To: Kuhn, Thomas J (IS); [email protected] Subject: EXT :RE: Cross Compiled XORP is quite large I'm working with same toolchain and I get 19M (also little large, but not 600M). From: [email protected] [mailto:[email protected]] On Behalf Of Kuhn, Thomas J (IS) Sent: Friday, June 01, 2012 9:54 PM To: [email protected] Subject: [Xorp-hackers] Cross Compiled XORP is quite large Hi group! I ham not an expert in Linux or cross compiling, but, with a lot of help from the BUILD_NOTES file, I recently cross compiled (mip64-octeon-linux-gnu) OpenSSL, ncurses, and libpcab prior to cross compiling XORP. I then cross compiled XORP. Everything seems to have gone on without a hitch, but when I look in the /obj directory I see the /mip64-octeon-linux-gnu folder. I assume that is everything that I need to put on my platform, but it is a whopping 632MB! That seems a little large. What am I missing. Flags? debug? Here is what I set: scons build=mips64-octeon-linux-gnu \ STRIP=mips64-octeon-linux-gnu-sstrip \ CC=mips64-octeon-linux-gnu-gcc \ CXX=mips64-octeon-linux-gnu-g++ \ CFLAGS=-I/home/build/octeon-staging/include \ CXXFLAGS=-I/home/build/octeon-staging/include \ LINKFLAGS=-L/home/build/octeon-staging/lib \ Tom Kuhn Northrop Grumman Information Systems 11474 Corporate Blvd., Suite 120 Orlando, Fl 32817 Office: (407) 737-4953 Cell: (407) 721-0628 [email protected]<mailto:[email protected]> sensitive information. Unauthorized interception of this e-mail may constitute a violation of law. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. You are also asked to contact the sender by reply email and immediately destroy all copies of the original message. The information in this e-mail transmission contains proprietary and business sensitive information. Unauthorized interception of this e-mail may constitute a violation of law. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. You are also asked to contact the sender by reply email and immediately destroy all copies of the original message.
_______________________________________________ Xorp-hackers mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
