为什么yocto会跳过我的食谱?

时间:2014-11-20 09:54:33

标签: yocto

我试图为我的freescale imx6板添加一个新图层。它取决于meta-fsl-arm层。

该图层被添加到bblayers.conf中。但是当我构建机器imx6dlwisehmi时,linux-imx6-autorock_3.10.17.bb不会被用作虚拟/内核。在bitbake-layers show-recipes输出中跳过配方。还有警告:

WARNING: No bb files matched BBFILE_PATTERN_autorock '^/opt/yocto/sources/meta-autorock/'

感谢任何帮助,谢谢。

以下是我的图层详情:

文件树

meta-autorock/
|
+--conf/
|  |
|  +--machine/
|  |  |
|  |  +--imx6dlwisehmi.conf
|  |
|  +--layer.conf
|
+--recipes-kernel/
   |
   +--linux/
      |
      +--linux-imx6-autorock-3.10.17/
      |  |
      |  +--wisehmi/
      |     |
      |     +--defconfig
      |
      +--linux-imx6-autorock_3.10.17.bb

layer.conf

BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "autorock"
BBFILE_PATTERN_autorock = "^${LAYERDIR}/"
BBFILE_PRIORITY_autorock = "4"
LAYERVERSION_autorock = "3"

LAYERDEPENDS_autorock = "core fsl-arm"

imx6dlwisehmi.conf

require conf/machine/include/imx-base.inc
require conf/machine/include/tune-cortexa9.inc

PREFERRED_PROVIDER_virtual/kernel ?= "linux-imx6-autorock"
PREFERRED_VERSION_linux-imx6-autorock ?= "3.10.17"

SOC_FAMILY = "mx6:mx6dl"

linux-imx6-autorock_3.10.17.bb

require recipes-kernel/linux/linux-imx.inc
require recipes-kernel/linux/linux-dtb.inc

SUMMARY = "Linux kernel for Autorock boards"

SRC_URI = "git@git.autorock.com:i-mx6/fsl-linux.git;branch=${SRCBRANCH} \
           file://defconfig"

LOCALVERSION = "-1.0.1_ga+yocto"
SRCBRANCH = "imx_3.10.17_1.0.1_ga"
SRCREV = "45add5da5831d3f6ddd1db0160797080a8adf9a5"
DEPENDS += "lzop-native bc-native u-boot-mkimage-native"
COMPATIBLE_MACHINE = "(wisehmi)"

1 个答案:

答案 0 :(得分:3)

我发现了问题:

COMPATIBLE_MACHINE应该是imx6dlwisehmi以匹配机器名称。