Modify the u-boot compilation option to support the use of arm-linux-gnueabihf-compiler compilation (Soft-float & VFP Hard) __linux

Source: Internet
Author: User

The default U-boot soft float API used at compile time, and arm-linux-eabihf-by default is hard, using arm-linux-gnueabihf-gcc-v to find options--with-float= Hard, and the view ARCH/ARM/CPU/ARMV7/CONFIG.MK has the following statements:

Platform_relflags + +-fno-common--ffixed-r8-msoft-float

Modify it to

Platform_relflags + +-fno-common--ffixed-r8-mfloat-abi=hard

Save exit

Compile again

Clear all configuration files

1. Make Arch=arm Cross_compile=arm-linux-gnueabihf-distclean

Using Arndale_octa_config

2. Make Arch=arm Cross_compile=arm-linux-gnueabihf-arndale_octa_config

Compile

3. Make Arch=arm cross_compile=arm-linux-gnueabihf-

4. Generate U-boot.

No more errors at this point.

Arm-linux-gnueabihf-ld:error:/USR/LIB/GCC/ARM-LINUX-GNUEABIHF/4.6/LIBGCC.A (_UDIVDI3.O) uses VFP register arguments , U-boot does not


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.