0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【yocto】特定のタスクでbitbakeを停止する方法

Posted at

はじめに

  • do_patch等でbitbakeを停止したい人向け
  • 特定のタスクでbitbakeを止め、tmpディレクトリ以下(主にはtmp/work)を解析することで、どのタスクで問題が発生しているか等を解析できたりする。

方法

  • cオプションを指定して、停止したいタスク(do_xxx)を指定する
bitbake -c do_xxx recipe-name

  • ビルド準備
takeshi@X250:~/yocto/poky$ source oe-init-build-env 
(略)
  • ビルド
takeshi@X250:~/yocto/poky/build$ bitbake -c do_patch core-image-minimal
(略)
  • do_patchまででビルドが終わっているかを確認(★参照)
takeshi@X250:~/yocto/poky/build$ cat tmp/log/cooker/qemux86-64/console-latest.log
WARNING: Host distribution "zorin-15" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "zorin-15"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.0"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "my-yocto-3.0:94f6b31befda5c496f65e863a6f8152b42d7ebf0"

NOTE: Executing Tasks
NOTE: Running setscene task 1 of 1 (/home/takeshi/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot_setscene)
NOTE: Running noexec task 1 of 11 (/home/takeshi/yocto/poky/meta/recipes-core/images/core-image-minimal.bb:do_fetch)
NOTE: Running noexec task 2 of 11 (/home/takeshi/yocto/poky/meta/recipes-core/images/core-image-minimal.bb:do_unpack)
NOTE: recipe quilt-native-0.66-r0: task do_populate_sysroot_setscene: Started
NOTE: recipe quilt-native-0.66-r0: task do_populate_sysroot_setscene: Succeeded
NOTE: Setscene tasks completed
★ NOTE: Running noexec task 11 of 11 (/home/takeshi/yocto/poky/meta/recipes-core/images/core-image-minimal.bb:do_patch)
NOTE: Tasks Summary: Attempted 11 tasks of which 8 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 1 seconds
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?