How to cross compile ISC DHCP-4.2.3 using armv5b compiler???
ameen.shajahan at wipro.com
ameen.shajahan at wipro.com
Wed Dec 7 09:39:21 UTC 2011
I got the below cross compilation procedure for dhcp from www.hurricane.at/howtos/dhcp-cross.html . <http://www.hurricane.at/howtos/dhcp-cross.html%20.%20>
Actually this compliation for power pc platform.
I would like to know , whether i can follow the same procedure for armv5b compiler.
Otherwise there is any other separate dhcp cross compiler procedure for ISC DHCP using armv5b compiler.
DHCP Cross-compile How-To
Author: Matthias Gorjup<mailto:mgorjup at hurricane.at>
Last Update: 9th Feb 2003
This document describes how to cross-compile DHCP package, provided by Internet
Software Consortium (www.isc.org<http://www.hurricane.at/howtos/www.isc.org>), for power pc platform.
1. Getting the package
Get the latest package from http://www.isc.org/products/DHCP/ (at the time
of writing it is dhcp-3.0pl2.tar.gz) and untar it to your home directory:
> cd /home/gorjup
> tar xzvf dhcp-3.0pl2.tar.gz
After you have installed your development kit (I used DTDK-0.3 toolchain, built by
Markus Haag ), set the proper environment variables:
> export CROSS_COMPILE=ppc-linux-
> export CC=ppc-linux-gcc
> export AR=ppc-linux-ar
> export STRIP=ppc-linux-strip
> export RANLIB=ppc-linux-ranlib
> export LD=ppc-linux-ld
> export NM=ppc-linux-nm
Go to the dhcp directory and configure the dhcp package:
> cd /home/gorjup/dhcp-3.0pl2
Now a new directory, named work.linux-2.2, has been created. Go to this directory
and edit Makefiles. In all makefiles (in the main one and in all the subdirectories)
you need to do some changes:
> cd work.linux-2.2
- add the destination directory for cross-compiled files and man pages:
DESTDIR = /home/gorjup/target_ppc_dhcp
- change line, beginning with RANLIB:
- RANLIB = ranlib
+ RANLIB = ppc-linux-ranlib
- add the definition for CC variable:
+ CC = ppc-linux-gcc
In following makefiles:
common/Makefile, dhcpctl/Makefile, dst/Makefile, minires/Makefile and omapip/Makefile
you need to replace ar binutility with ppc-linux-ar.
You find ar binutility at the end of Makefiles.
Now cross-compile the package:
> make install
At the end you can strip the binaries by using ppc-linux-strip.
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dhcp-users