使用 yocto 的 softfp 工具链配置

Toolchain configuration for softfp using yocto

我已经使用 yocto 为 IMX6 Sabersd 构建了图像,如下所示。

#curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
#repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.53-1.1.0_ga
#repo sync
#source setup-environment build
#bitbake core-image-minimal

在构建期间,它正在为 IMX6 获取 gcc-4.8 源代码和编译工具 chian。 toochain 使用硬浮点(使用“./arm-poky-linux-gnueabi-gcc -v”检查并且输出有“--float-with=hard”),我的要求是工具链有使用 softfp。

这背后的原因是我使用的是与 hardfp 不兼容的第 3 方预构建库。所以在编译期间我收到如下所示的错误。

ld: error: *Executable* uses VFP register arguments,  *Library* does not
ld: failed to merge target specific data of file *Library*

你能否帮助我如何更改 yocto 中的配置以使用 softfp 编译工具链。

我找不到正在使用哪个版本的 yocto freescale,但我可以在 "poky/meta/recipes-devtools/gcc/" 下看到 gcc-4.8 食谱。

鉴于我不知道你用的是什么核心处理器。

您要修改的文件应该在poky/meta/conf/machine/include/

您还可以在 conf/local.conf 中添加类似的内容来覆盖:

TARGET_CC_ARCH = "-march=armv7 -mfpu=vfp -mfloat-abi=softfp"