Arm-linux Cross compiler making __linux

Source: Internet
Author: User
Tags bz2
arm-linux Cross Compiler productionThis article introduces the use of Crosstool-ng tools to make Arm-linu cross compiler, about crosstool-ng not to speak more (can Baidu), the following to s5pv210 processor as an example of the production process. I. Installation of Crosstool-ng 1. Get Crosstool-ngGet crosstool-ng,http://crosstool-ng.org/from official website, here I choose CROSSTOOL-NG-1.22.0.TAR.BZ2 version 2, configuration, compilation, installation Crosstool-ngAfter extracting the crosstool-ng-1.22.0.tar.bz2, enter the Crosstool-ng directory, and then execute./configure, make, makes install, and there may be errors in./configure. Generally, there are no gadgets installed, just follow the prompts sudo apt-get install xxx to install the missing package, make install will install Ct-ng executable file in the/usr/local/bin/directory. 3. Test Crosstool-ng Whether the installation is successfulExecuting ct-ng-v in either directory indicates that the installation is successful if Crosstool-ng information is displayed. second, the production of cross-compilerFirst create a new folder, as the compilation directory, where I named Crosstool, and then enter the directory. 1. Find the templateFind the closest to your target processor from the template in Crosstool-ng and use Ct-ng list-samples to list all templates visible my target processor s5pv210 is closest to Arm-cortex_a8-linux-gnueabi, So use it to generate configuration files. config, execute ct-ng arm-cortex_a8-linux-gnueabi. 2, ConfigurationConfiguration generally requires three parts. <1> Path ConfigurationEnter Paths and Misc options     Then configure the two compile process need to download some source code package, local tarballs directory is to store the directory of these source code (general download will be very slow, can be compiled before compiling the required source package to download good in the directory), if the directory does not exist must be built. Prefix directory is the path to storing a compiled, generated cross tool chain. <2> Target OptionsEnter the target options setting the following three items the first emit assembly for CPU indicates the CPU, if emptied it will be more than two items, respectively, arch and tune, are generally set up.       The second is the FPU processor, VFP or neon. The third is a floating-point operation type, a soft floating-point or a hard float. <3> tool Chain configurationEnter the Toolschain options Tuple ' s vendor string is a vendor string, and if set to Zyz, the compiled tool chain name is Arm-zyz-linux-gnueabi. Tuple ' s alias is the alias of the tool chain, if set to Arm-linux, then the soft connection of the tool chain will be established after compiling, named Arm-linux-xx. 3. Compile tool chainExecute the Ct-ng build for compilation if the compilation succeeds then set the environment variable.
So far, the cross compiler is compiled, you can perform arm-linux-gcc-v verification.

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.