How the Yocto system works


How the Yocto system works

Processing from Developer to Yocto
Developer
  1. Create .Metadata
    .Metadata = .bb + .patch  (files)

     
  2. Create .conf file
    .conf : Environment setting file (Build environment, Machine, etc. )
    modify the .conf file in the conf folder after build environment setting (main settings : Machine (BSP) configuration, Policy configuration, User configuration)
     
  3. Bitbake (Build)
    working Yocto by Script + Setting Environment

     
Yocto
  1. import source code
    Parse .bb file in Metadata, and import the source file defined in "SRC__URI"
     
  2. Apply Patches
    Import source files and apply patch files (Patch Application, SRC_URI(file://***.patch))
     
  3. Create config file and start to build
    apply patching imported source code -> configuration -> compile
    (proceed with the same Configuration/Compile processing as the Linux Compile Process (create a Config file and compile based on that file))
     
  4. Create Package
    Analyze
    (Proceed with the analysis of each association) the generated files and create them in the form of a package.
     
  5. Create deploying files
    Generating in the form of rpm, deb, and ipk files
     
  6. Create Image
    create an Image by integrating the generated files

#Yocto #Bitbake #Linux #Embedded #method of operation


"Korean" translation 
개발자와 Yocto 처리

개발자
  1. Metadata 작성
    스크립트
    : Metadata(.bb + patches)
  2. Conf. 파일 작성(환경 설정, Machine 설정)
    Build 환경 설정 conf 폴더 .conf 수정(주요 설정 정보 : Machine(BSP) configuration, Policy configuration, User configuration)
  3. Bitbake 빌드
    스크립트
    + 설정 환경에 따른 Yocto 구동


Yocto
  1. 소스 코드 얻기
    Metadata .bb 파일을 파싱한후 SRC_URI 정의된 소스 파일을 가져온다.
  2. 패치 적용
    소스
    파일을 가져온 패치 파일 적용 (Patch Application, SRC_URI(file://***.patch) )
  3. Config 파일 생성 Build 시작
    가져온
    소스 코드에 패치를 적용 -> configuration 작업 -> compile
    리눅스 Compile 과정과 동일한 Configuration / Compile 과정을 진행(Config 파일을 생성한 파일을 토대로 Compile)
  4. Package 생성
    생성된
    파일을 분석(각각의 연관 관계 분석 진행)하여 Package 형태로 생성.
  5. Generation
    rpm, deb, ipk
    파일의 형태로 생성.
  6. Image 생성
    생성된
    파일을 통합하여 이미지 생성
     

No comments:

Post a Comment

Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore!

 🏙️ Apartment Buying Guide 2025: Shocking Red Flags You Should NEVER Ignore! 🚨 Are you thinking about buying an apartment in 2025? 🏢  It’...