대부분의 tool은 sdk image 혹은 local.conf에서 tools-profile을 추가하여 제공된다.
- sdk image 예제
$ bitbake core-image-sato-sdk
- local.conf에 넣는 예제
EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile"- local.conf에서 tools-profile을 추가하면, sdk 이미지가 아니여도 된다.
$ bitbake core-image-sato
- 기본적으로, yocto는 package에서의 binary에서, symbol을 strip 한다!!
- 이러한 symbol을 strip은 tool 사용을 힘들게 한다.
- symbol을 strip 을 막으려면, local.conf나, 컴포넌트 레시피에서 INHIBIT_PACKAGE_STRIP변수를 "1"로 Enable한다.
INHIBIT_PACKAGE_STRIP = "1"- binary의 symbol을 strip하지 않으면, output의 결과 크기가 커질 것임
- 이미 stripped image 라면, debug package(XXX-dbg)를 manually install한다.
- 이미지 전체에 debug 패키지를 설치하고 싶다면, local.conf에 dbg-pkgs를 추가하자
EXTRA_IMAGE_FEATURES = "debug-tweaks tools-profile dbg-pkgs"
- Additionally, in order to generate the right type of debuginfo, we also need to set PACKAGE_DEBUG_SPLIT_STYLE in the local.conf file:
PACKAGE_DEBUG_SPLIT_STYLE = 'debug-file-directory'
'Yocto Project : : Open Source' 카테고리의 다른 글
| core-image-sato, SDK, TOOLCHAIN_HOST_TASK, populate_sdk, gdb, gdbserver, dev 패키지, debug tools 설치, PACKAGE_DEBUG_SPLIT_STYLE (0) | 2024.06.01 |
|---|---|
| meta/classes (0) | 2024.06.01 |
| BBMASK, INSANE_SKIP, insane.bbclass, QA (0) | 2024.06.01 |
| meta-qt, PACKAGECONFIG (0) | 2024.06.01 |
| meta-tegra (0) | 2024.06.01 |