DREAMER

[Development Tasks Manual] 4. Customizing Images 본문

프로그래밍/YOCTO

[Development Tasks Manual] 4. Customizing Images

연소민 2023. 3. 16. 09:41
728x90
반응형

 

1. local.conf를 수정하여 Customizing

 

2. Custom IMAGE_FEATURES, EXTRA_IMAGE_FEATURES로 Customizing

 

3. Custom .bb 파일로 Customizing

이미지에 추가할 패키지들을 정의하여 custom 레시피를 생성하는 방식으로도 image customizing 할 수 있습니다. 밑에 예시는 custom 레시피에 필요한 형식입니다.

IMAGE_INSTALL = "packagegroup-core-x11-base package1 package2"
inherit core-image

custom 레시피를 사용하여 소프트웨어를 정의하면 이미지의 모든 contents를 제어할 수 있습니다. 반드시 IMAGE_INSTALL 변수에 올바른 이름을 적어야하며, Debian 표기법이 아닌 OpenEmbedded 표기법을 사용해야 합니다. 예를들어, libc6-dev가 아닌 glibc-dev6으로 작성해야 합니다.

 

custom 이미지를 생성하는 또다른 방법으로는 이미 존재하는 이미지를 기반으로 하는 것입니다. 예를 들어 core-image-weston을 기반으로 이미지를 생성하려면, poky/meta/recipes-graphics/images/core-image-weston.bb 파일을 원하는 이미지 이름의 recipe파일로 복사한 다음 마지막 줄을 추가하면 됩니다.

IMAGE_INSTALL += "strace"

 

 

 

4. Custom 패키지 그룹으로 Customizing

 

5. Image Host를 Customizing

728x90
반응형
Comments