BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
这个目录是我自己加入的,如果需要的话主动加入自己所要执行的.bb和.bbappend文件路径。
8、错误显示
Parsing recipes: 100% |###############################################################################################| Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
DEBUG: parsing complete
ERROR: Nothing PROVIDES 'firstrecipe'
这个是我自己执行:bitbake firstecipe没有指明具体执行的firstrecipe_0.0.bb的方法名称。PN,
参考http://www.yoctoproject.org/docs/1.8/bitbake-user-manual/bitbake-user-manual.html#var-PN
修改为:
PN = 'firstrecipe'
PV = '1'
成功执行:
Parsing recipes: 100% |###############################################################################################| Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 7 tasks of which 7 didn't need to be rerun and all succeeded.
这个是具体执行步骤: bitbake firstrecipe (firstrecipe 的是我的执行的方法)
DEBUG: Removed the following variables from the environment: LC_NUMERIC, MANDATORY_PATH, XDG_GREETER_DATA_DIR, GNOME_DESKTOP_SESSION_ID, LC_IDENTIFICATION, LESSOPEN, XDG_VTNR, QT_IM_MODULE, XDG_SEAT, LC_PAPER, GNOME_KEYRING_CONTROL, DISPLAY, LANG, XDG_SESSION_PATH, XAUTHORITY, LANGUAGE, SESSION_MANAGER, LC_MONETARY, QT_QPA_PLATFORMTHEME, CLUTTER_IM_MODULE, TEXTDOMAIN, JOB, WINDOWID, SESSIONTYPE, XMODIFIERS, GPG_AGENT_INFO, QT4_IM_MODULE, SELINUX_INIT, SSH_AUTH_SOCK, XDG_RUNTIME_DIR, INSTANCE, LC_ADDRESS, COMPIZ_CONFIG_PROFILE, COMPIZ_BIN_PATH, SESSION, VTE_VERSION, BBFILES, GDMSESSION, IM_CONFIG_PHASE, TEXTDOMAINDIR, XDG_DATA_DIRS, XDG_SEAT_PATH, XDG_CONFIG_DIRS, XDG_CURRENT_DESKTOP, XDG_SESSION_ID, DBUS_SESSION_BUS_ADDRESS, _, DEFAULTS_PATH, GTK_IM_MODULE, DESKTOP_SESSION, UPSTART_SESSION, LESSCLOSE, GNOME_KEYRING_PID, OLDPWD, GDM_LANG, LC_TELEPHONE, GTK_MODULES, LC_MEASUREMENT, SHLVL, COLORTERM, LC_NAME, XDG_MENU_PREFIX, LC_TIME, LS_COLORS
DEBUG: Found bblayers.conf (/home/chunyun/yocto/hello/conf/bblayers.conf)
DEBUG: Adding layer /home/chunyun/yocto/hello/meta-test
DEBUG: Inheriting /home/chunyun/yocto/hello/classes/base.bbclass (from configuration INHERITs:0)
DEBUG: Inheriting /home/chunyun/yocto/hello/classes/logging.bbclass (from /home/chunyun/yocto/hello/classes/base.bbclass:3)
DEBUG: Clearing SRCREV cache due to cache policy of: clear
DEBUG: Using cache in '/home/chunyun/yocto/hello/tmp/cache/local_file_checksum_cache.dat'
DEBUG: Using cache in '/home/chunyun/yocto/hello/tmp/cache/bb_codeparser.dat'
DEBUG: Features set [3] (was [3])
DEBUG: collecting .bb files
DEBUG: Using cache in '/home/chunyun/yocto/hello/tmp/cache'
DEBUG: Cache: /home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb is not cached
Parsing recipes: 100% |###############################################################################################| Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
DEBUG: parsing complete
DEBUG: providers for firstrecipe are: ['firstrecipe']
DEBUG: sorted providers for firstrecipe are: ['/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb']
DEBUG: adding /home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb to satisfy firstrecipe
DEBUG: Added dependencies [] for /home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb
NOTE: Resolving any missing task queue dependencies
DEBUG: Resolved 0 extra dependencies
NOTE: Preparing RunQueue
NOTE: Marking Active Tasks
NOTE: Pruned 0 inactive tasks, 7 left
NOTE: Assign Weightings
NOTE: Compute totals (have 1 endpoint(s))
DEBUG: Starting bitbake-worker
NOTE: Executing RunQueue Tasks
DEBUG: Considering 0 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_fetch): set([1])
DEBUG: Considering 1 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_unpack): set([2])
DEBUG: Considering 2 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_patch): set([3])
DEBUG: Considering 3 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_configure): set([4])
DEBUG: Considering 4 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_make): set([5])
DEBUG: Considering 5 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_install): set([6])
DEBUG: Considering 6 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_build): set([])
DEBUG: Skip list (pre setsceneverify) []
DEBUG: Full skip list set([])
DEBUG: Using runqueue scheduler 'speed'
DEBUG: Stamp current task 0 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_fetch)
DEBUG: Marking task 1 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_unpack) as buildable
DEBUG: Stamp current task 1 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_unpack)
DEBUG: Marking task 2 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_patch) as buildable
DEBUG: Stamp current task 2 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_patch)
DEBUG: Marking task 3 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_configure) as buildable
DEBUG: Stamp current task 3 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_configure)
DEBUG: Marking task 4 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_make) as buildable
DEBUG: Stamp current task 4 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_make)
DEBUG: Marking task 5 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_install) as buildable
DEBUG: Stamp current task 5 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_install)
DEBUG: Marking task 6 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_build) as buildable
DEBUG: Stamp current task 6 (/home/chunyun/yocto/hello/meta-test/recipes-example/firstrecipe/firstrecipe_0.0.bb, do_build)
DEBUG: Teardown for bitbake-worker
DEBUG: Found bblayers.conf (/home/chunyun/yocto/hello/conf/bblayers.conf)
DEBUG: Adding layer /home/chunyun/yocto/hello/meta-test
DEBUG: Inheriting /home/chunyun/yocto/hello/classes/base.bbclass (from configuration INHERITs:0)
DEBUG: Inheriting /home/chunyun/yocto/hello/classes/logging.bbclass (from /home/chunyun/yocto/hello/classes/base.bbclass:3)
DEBUG: Using cache in '/home/chunyun/yocto/hello/tmp/cache/bb_codeparser.dat'
NOTE: Tasks Summary: Attempted 7 tasks of which 7 didn't need to be rerun and all succeeded.