Embedded Freaks..

November 23, 2010

Cross Compiling OpenSSL-1.0.0b for ARM926EJ-S

Filed under: ARM9, embedded-linux — Tags: , — kunilkuda @ 10:30 pm

Well, I forgot to put OpenSSL into my Disko cross compilation (here). Hence, I need to download the latest OpenSSL and cross compile it too.

OpenSSL uses different configuration script (not the standard autoconf script..), and run by Perl. After working almost one night non-stop, I finally figure out how to configure OpenSSL-1.0.0b for cross compilation


# tar xvjf openssl-1.0.0b.tar.gz

# cd openssl-1.0.0b

# ./Configure --prefix=$(HOST_DIR) zlib-dynamic "linux-arm926ej-s":"arm-none-linux-gnueabi-gcc:-DTERMIO -O3 -Wall -I../../host/include::-D_REENTRANT::-L../../host/lib -ldl:BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR::bn_asm.o armv4-mont.o::aes_cbc.o aes-armv4.o:::sha1-armv4-large.o sha256-armv4.o sha512-armv4.o:::::::void:dlfcn:linux-shared:-fPIC::.so.1.0.0":arm-none-linux-gnueabi-ranlib::

# make

# make install

No sed, no awk, no regex to change the Configure script. Just change the $CC according to your cross-compiler-gcc and $CROSS_RANLIB with your cross-compiler-ranlib. The $(HOST_DIR)/include and $(HOST_DIR)/lib must have ARM’s zlib library and header files.

Now I need to update my Disko cross compile Makefile script..

About these ads

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: