Skip to main content

bitbake-debug

Debug BitBake and Yocto build failures from task logs, run scripts, metadata expansion, packages, providers, rootfs errors, fetch/patch/configure/compile/install/package/image failures, and common QA messages. Use when the user provides BitBake output, tmp/work logs, do_* task failures, package/rootfs errors, or asks how to diagnose a Yocto build.

소스 정보

저장소
Higangssh/yocto-agent-skills
최근 소스 활동
2026년 7월 30일 14:05
감지된 SKILL.md 언어
영어
스타
13
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
4 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
bitbake-debug
description
Debug BitBake and Yocto build failures from task logs, run scripts, metadata expansion, packages, providers, rootfs errors, fetch/patch/configure/compile/install/package/image failures, and common QA messages. Use when the user provides BitBake output, tmp/work logs, do_* task failures, package/rootfs errors, or asks how to diagnose a Yocto build.
# BitBake Debug Use this skill to diagnose Yocto/BitBake failures from concrete evidence. Prefer `log.do_*`, `run.do_*`, `bitbake -e`, `bitbake-layers`, and pkgdata over guesses. ## Evidence First Ask for or inspect: ```text failing target and task first fatal error, not only the final summary tmp/work/.../temp/log.do_<task> tmp/work/.../temp/run.do_<task> conf/local.conf conf/bblayers.conf affected recipe or bbappend ``` Useful commands: ```bash bitbake-layers show-layers bitbake-layers show-recipes <recipe> bitbake-layers show-appends bitbake -e <recipe> bitbake -c listtasks <recipe> bitbake -c devshell <recipe> bitbake -g <target> oe-pkgdata-util list-pkgs oe-pkgdata-util find-path '*/path/or/file' ``` ## Task Playbook - `do_fetch`: verify `SRC_URI`, protocol, branch, `SRCREV`, checksums, network policy, mirrors, `DL_DIR`, and credentials only when the source is private. - `do_unpack`: verify archive layout, `S`, multi-source unpack paths, and subdirectories. - `do_patch`: verify patch path, strip level, order, fuzz, upstream status, and `apply=yes/no` only when automatic patch handling is wrong. - `do_configure`: verify inherited class, `PACKAGECONFIG`, `EXTRA_OECONF`, `EXTRA_OECMAKE`, `EXTRA_OEMESON`, `DEPENDS`, and `recipe-sysroot`. - `do_compile`: verify compiler command, generated files, missing `-native` tools, cross variables, and parallel race signs. - `do_install`: verify installation under `${D}`, permissions, ownership, and paths using `${bindir}`, `${libdir}`, `${sysconfdir}`, etc. - `do_package` / `do_package_qa`: verify package splits, `FILES:*`, runtime dependencies, and QA tags. - `do_rootfs`: verify package names, providers, `IMAGE_INSTALL`, license policy, package conflicts, and postinstall scripts. - `do_image`: verify rootfs completion, `IMAGE_FSTYPES`, WIC kickstart, boot artifacts, and deploy output. ## References - Read [references/yocto-field-guide.md](references/yocto-field-guide.md) for the broader task playbook. - Read [references/qa-errors.md](references/qa-errors.md) for common QA failures. - Read [references/variables-core.md](references/variables-core.md) when the fix depends on variable semantics. ## Output For every diagnosis, provide: 1. most likely cause 2. evidence that supports it 3. exact next command or metadata change 4. why this is the Yocto/BitBake fix 5. validation command
GitHub에서 보기