Cross-compile busybox

Source: Internet
Author: User

Cross-compile busybox
First download the busybox source code
Extract
For example, my busybox-1.23.2 and cross tool are arm-none-linux-gnueabi-gcc
Enter the configuration, which is similar to configuring the kernel. Use menuconfig
Make ARCH = arm CROSS_COMPILE = arm-none-linux-gnueabi-menuconfig
Select the desired function and exit and save the configuration.

Then compile:
Make ARCH = arm CROSS_COMPILE = arm-none-linux-gnueabi-CFLAGS = "-I/thirdparty/include-L/thirdparty/lib" LDGLAGS = "-L/thirdparty/lib"

To use additional libraries such as libcrypto, you must use CFLAGS and LDFLAGS to specify the library location.
Otherwise
Trying libraries: crypt m
Library crypt is needed, can't exclude it (yet)
Library m is needed, can't exclude it (yet)
Final link with: crypt m

Generate target
Make ARCH = arm CROSS_COMPILE = arm-none-linux-gnueabi-install
After the installation is successful, the system will generate _ install in the source code Directory, which is the target to be used.

Author: handsome dare not go out program group: 31843264

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.