Changes between Version 3 and Version 4 of TipAndDoc/Linux/OpenWRT/CrossCompile


Ignore:
Timestamp:
Jun 21, 2012 2:23:25 PM (12 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/Linux/OpenWRT/CrossCompile

    v3 v4  
    283283 == openssl == 
    284284 * [http://www.crosscompile.org/static/pages/OpenSSL.html How to Cross Compile OpenSSL a Step by Step Guide (crosscompile.org)] 
     285 
     286 * mitty@precise:~/openwrt$ wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz 
     287 * mitty@precise:~/openwrt/openssl-1.0.1c$ vim Makefile 
     288{{{#!diff 
     289--- Makefile.old        2012-05-11 00:18:25.000000000 +0900 
     290+++ Makefile    2012-06-17 20:29:26.155761089 +0900 
     291@@ -26,10 +26,10 @@ 
     292 # for, say, /usr/ and yet have everything installed to /tmp/somedir/usr/. 
     293 # Normally it is left empty. 
     294 INSTALL_PREFIX= 
     295-INSTALLTOP=/usr/local/ssl 
     296+INSTALLTOP=/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/ 
     297  
     298 # Do not edit this manually. Use Configure --openssldir=DIR do change this! 
     299-OPENSSLDIR=/usr/local/ssl 
     300+OPENSSLDIR=/home/mitty/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/ 
     301  
     302 # NO_IDEA - Define to build without the IDEA algorithm 
     303 # NO_RC4  - Define to build without the RC4 algorithm 
     304@@ -59,15 +59,15 @@ 
     305 # equal 4. 
     306 # PKCS1_CHECK - pkcs1 tests. 
     307  
     308-CC= cc 
     309+CC= mips-openwrt-linux-gcc 
     310 CFLAG= -O 
     311 DEPFLAG= -DOPENSSL_NO_EC_NISTP_64_GCC_128 -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -DOPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_SCTP -DOPENSSL_NO_STORE 
     312 PEX_LIBS=  
     313 EX_LIBS=  
     314 EXE_EXT=  
     315 ARFLAGS=  
     316-AR= ar $(ARFLAGS) r 
     317-RANLIB= /usr/bin/ranlib 
     318+AR= mips-openwrt-linux-ar $(ARFLAGS) r 
     319+RANLIB= mips-openwrt-linux-ranlib 
     320 NM= nm 
     321 PERL= /usr/bin/perl 
     322 TAR= tar 
     323}}} 
     324 
     325 * mitty@precise:~/openwrt/openssl-1.0.1c$ make 
     326 * mitty@precise:~/openwrt/openssl-1.0.1c$ make install 
     327 
     328 * mitty@precise:~$ file openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/openssl 
     329{{{ 
     330openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/openssl: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), with unknown capability 0x41000000 = 0xf676e75, with unknown capability 0x10000 = 0x70403, not stripped 
     331}}}