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