Use crosstool-ng to compile the cross tool chain

Source: Internet
Author: User
Steps:

1, download crosstool-ng, for the http://ymorin.is-a-geek.org/download/crosstool-ng/ to the license download together. 2. Install the following software package: 1) libncurses5-dev2) bison3) flex4) texinfo5) automake6) libtool7) patch8) gcj9) cvs10) cvsd11) gawk12) aria213) curl

14) libncursesw5-dev

15) g ++ 16) Subversion

3. decompress, patch (if any), and create a working directory. 1) mkdir crosstool-ng-build # crosstool-ng compile the working directory. 2) mkdir crosstool-ng-install # crosstool-ng installation directory 3) CD crosstool-ng-xx4 ). /configure -- prefix =/home/workspace/uboot/crosstool-ng_install # configure the crosstool-ng5) make # compile the crosstool-ng6) make install # Install the crosstool-ng4, configure the cross-compiled toolchain for this compilation 1) CD .. /crosstool-ng_build/# enter the working directory for compiling the new cross compiler 2) CP .. /crosstool-ng-XX/samples/ARM-unknown-Linux-gnueabi /*. /# copy the default configuration file to work Directory 3) mV crosstool. config. config # Modify file name 4 ).. /crosstool-ng-1.6.1_install/bin/CT-ng menuconfig # Enter menuconfig and start modifying configuration 5. Configure option 1) paths and MISC options ---> (/home/workspace/uboot/crosstool-ng_src) local tarbils directory # Save the source code package path (/home/workspace/uboot/X-tools/$ {ct_target}) prefix directory # installation path of the Cross Compiler 2) target options ---> *** target optimisations *** (armv6) architecture level (arm1176jzf-s) emit assembly For CPU () tune for cpu3) floating point () --> hardware (FPU) 4) toolchain options ---> (1176) tuple's vendor string5) save6) exit6. Compile the cross tool chain .. /crosstool-ng_install/bin/CT-ng build7, compiled cross compiler. Compiler located:/home/workspace/uboot/X-tools/arm-1176-linux-gnueabi/bin library file located:/home/workspace/uboot/X-tools/arm-1176-linux-gnueabi/lib

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.