yocto构建系统

本文探讨了如何在Yocto构建系统中查找和配置外部工具链,特别是在local.conf中设置路径,以指导系统使用特定的编译器工具链来构建Linux图像。
摘要由CSDN通过智能技术生成
DEBUG: Using cache in '/home/user/Desktop/yocto-nxp/fsl-community-bsp/build/cache/bb_unihashes.dat'
DEBUG: Processing core in collection list
DEBUG: Processing yocto in collection list
DEBUG: Processing openembedded-layer in collection list
DEBUG: Processing multimedia-layer in collection list
DEBUG: Processing meta-python in collection list
DEBUG: Processing freescale-layer in collection list
DEBUG: Processing freescale-3rdparty in collection list
DEBUG: Processing freescale-distro in collection list
DEBUG: Sanity-checking tuning 'cortexa9thf-neon' (default) features:
DEBUG:   arm: Enable ARM instruction set
DEBUG:   vfp: Enable Vector Floating Point (vfp) unit.
DEBUG:   cortexa9: Enable Cortex-A9 specific processor optimizations
DEBUG:   neon: Enable Neon SIMD accelerator unit.
DEBUG:   thumb: Support Thumb instructions
DEBUG:   callconvention-hard: Enable EABI hard float call convention, requires VFP.

经查阅self.data中包含了大量配置信息
那么self.data的值在哪里获得的呢?
在这

        self.databuilder = bb.cookerdata.CookerDataBuilder(self.configuration, False)
        self.databuilder.parseBaseConfiguration()
        self.data = self.databuilder.data
        self.data_hash = self.databuilder.data_hash
        self.extraconfigdata = {}

继续找,找到查找文件配置的地方:

def findConfigFile(configfile, data):
    search = []
    bbpath = data.getVar("BBPATH")
    if bbpath:
        for i in bbpath.split(":"):
            search.append(os.path.join(i, "conf", configfile))
    path = os.getcwd()
    while path != "/":
        search.append(os.path.join(path, "conf", configfile))
        path, _ = os.path.split(path)

    for i in search:
        if os.path.exists(i):
            return i

    return None

配置文件好像在这里:

external - 如何指定 Yocto 使用哪个编译器工具链来构建图像?

例如,我如何使用以下方法编译我的图像:

最佳答案

在 local.conf 中,指定系统中工具链的路径。

EXTERNAL_TOOLCHAIN = “/home/manjunath/linaro/gcc-linaro-arm-linux-gnueabihf-4.7-2014.11-20121123_linux”

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值