我正在学习本教程:https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-hello.html
我的BBPATH版本为1.50.0,BBPATH如下所示:
export BBPATH="/home/testusr/projects/bitbake_example/bitbake_sample_project/hello"在本教程的最后一步,我将介绍以下文件结构:
/home/testusr/projects/bitbake_example/bitbake_sample_project $ tree
.
├── hello
│ ├── classes
│ │ └── base.bbclass
│ └── conf
│ ├── bblayers.conf
│ └── bitbake.conf
└── mylayer
├── conf
│ └── layer.conf
└── printhello.bb问题是,当我试图建立这样的系统时:
/home/testusr/projects/bitbake_example/bitbake_sample_project/hello $ bitbake printhello
WARNING: Layer mylayer should set LAYERSERIES_COMPAT_mylayer in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
WARNING: No bb files in default matched BBFILE_PATTERN_mylayer '^\/home\/testusr\/projects\/bitbake_example\/bitbake_sample_project\/mylayer/'
ERROR: Nothing PROVIDES 'printhello'警告说,在/home/testusr/projects/bitbake_example/bitbake_sample_project/mylayer/::下面没有bb文件的
但是这个文件显然是在树输出中看到的,所以我完全搞不懂。
发布于 2021-04-19 12:27:49
问题在于layer.conf文件中的教程。它有:
BBFILES += "${LAYERDIR}/\*.bb"而不是:
BBFILES += "${LAYERDIR}/*.bb"所以没人能找到它。
https://stackoverflow.com/questions/67125877
复制相似问题