gpt4 book ai didi

xilinx - 找不到发行版 'poky'。请在您的 local.conf 中设置一个有效的 DISTRO

转载 作者:行者123 更新时间:2023-12-04 19:33:20 28 4
gpt4 key购买 nike

Yocto 的新功能。尝试为 Xilinx Zynq 构建镜像。按照 https://github.com/Xilinx/meta-petalinux 上的说明进行操作.不需要那里的所有东西,所以删除了一些层。当我执行 bitbake zynq-generic 时,出现以下错误:

$ bitbake petalinux-image
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

DISTRO 'poky' not found. Please set a valid DISTRO in your local.conf


Summary: There was 1 ERROR message shown, returning a non-zero exit code.

这是我的 bblayers.conf

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"


BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
${TOPDIR}/layers/meta-openembedded/meta-perl \
${TOPDIR}/layers/meta-openembedded/meta-python \
${TOPDIR}/layers/meta-openembedded/meta-filesystems \
${TOPDIR}/layers/meta-openembedded/meta-gnome \
${TOPDIR}/layers/meta-openembedded/meta-multimedia \
${TOPDIR}/layers/meta-openembedded/meta-networking \
${TOPDIR}/layers/meta-openembedded/meta-webserver \
${TOPDIR}/layers/meta-openembedded/meta-xfce \
${TOPDIR}/layers/meta-openembedded/meta-initramfs \
${TOPDIR}/layers/meta-openembedded/meta-oe \
${TOPDIR}/layers/openembedded-core/meta \
${TOPDIR}/layers/meta-qt5 \
${TOPDIR}/layers/openembedded-core/meta-selftest \
${TOPDIR}/layers/openembedded-core/meta-skeleton \
${TOPDIR}/layers/meta-xilinx \
${TOPDIR}/layers/meta-petalinux \
"

MACHINE = "zynq-generic"

DISTRO ?= "poky"

我错过了什么?

最佳答案

MACHINE 和 DISTRO 变量应该在您的 local.conf 中。

看看他们的 local.conf example .

您的发行版应该是:

DISTRO ?= "petalinux"

您没有使用 Poky因为 meta-petalinux 直接从 oe-core 和 bitbake 中提取:

...
This layer depends on:

URI: git://git.openembedded.org/bitbake
URI: git://git.openembedded.org/openembedded-core

要了解有关 Poky 的更多信息,请查看 this page .

基本上 Poky 结合了部分 oe-core 和 bitbake。 Xilinx 的 meta-petalinux 反而将这些东西分开拉入。

此外,他们的设置说明可能缺少此步骤:

TEMPLATECONF=meta-petalinux/conf source {path-to}/oe-init-build-env

这告诉 bitbake 使用“meta-petalinux”local.conf.sample 和 bblayers.conf.sample。您会注意到它们的 bblayers.conf.sample 中包含许多层。你不包括在内。

由于您已经设置了 local.conf 和 bblayers.conf,我将简单地查看它们的示例并根据需要更正您的文件。您可能还想在 Bitbake Manual 中查找 meta-petalinux 更改的变量名称。或 Yocto Manual .这会让您更好地了解他们做了什么以及为什么(如果您关心 :))。

关于xilinx - 找不到发行版 'poky'。请在您的 local.conf 中设置一个有效的 DISTRO,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47085089/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com