Pseudo is not present but is required, building this first before the main build
Loading cache: 100% |#################################################################################################################################################| ETA: 00:00:00
Loaded 3 entries from dependency cache.
ERROR: Nothing PROVIDES 'pseudo-native'
ERROR: Command execution failed: Traceback (most recent call last):
File "/home/dragon/Work/poky-edison-6.0/bitbake/lib/bb/command.py", line 102, in runAsyncCommand
commandmethod(self.cmds_async, self, options)
File "/home/dragon/Work/poky-edison-6.0/bitbake/lib/bb/command.py", line 207, in buildTargets
command.cooker.buildTargets(pkgs_to_build, task)
File "/home/dragon/Work/poky-edison-6.0/bitbake/lib/bb/cooker.py", line 1105, in buildTargets
taskdata.add_provider(localdata, self.status, k)
File "/home/dragon/Work/poky-edison-6.0/bitbake/lib/bb/taskdata.py", line 371, in add_provider
self.add_provider_internal(cfgData, dataCache, item)
File "/home/dragon/Work/poky-edison-6.0/bitbake/lib/bb/taskdata.py", line 391, in add_provider_internal
raise bb.providers.NoProvider(item)
NoProvider: pseudo-native
原因:
项目中的base.bbclass和bitbake.conf不是从安装的bitbake工具目录(/opt/bitbake-1.17.0)中拷贝过来的,因为编译过yocto系统,bitbake被指定到了编译的yocto中的bitbake工具的位置了,故报错。
dragon@dragon-Long:~/Work/bitbake_test/bbTutorial/build$ which bitbake
/home/dragon/Work/poky-edison-6.0/scripts/bitbake
解决办法2种:
1、重新拷贝poky-edison-6.0目录中bitbake的base.bbclass和bitbake.conf到项目中
2、改变poky-edison-6.0目录的名字,并且重新指定bitbake工具的地址
export PATH=/opt/bitbake-1.17.0/bin:$PATH
export PYTHONPATH=/opt/bitbake-1.17.0/lib:$PYTHONPATH
然后执行就OK了。
dragon@dragon-Long:~/Work/bitbake_test/bbTutorial/build$ bitbake -s
Loading cache: 100% |#################################################################################################################################################| ETA: 00:00:00
Loaded 3 entries from dependency cache.
Recipe Name Latest Version Preferred Version
=========== ============== =================
first :0.1-r1
second :1.0-r1
dragon@dragon-Long:~/Work/bitbake_test/bbTutorial/build$ bitbake first
Loading cache: 100% |#################################################################################################################################################| ETA: 00:00:00
Loaded 3 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
dragon@dragon-Long:~/Work/bitbake_test/bbTutorial/build$ bitbake second
Loading cache: 100% |#################################################################################################################################################| ETA: 00:00:00
Loaded 3 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.