How the Yocto system works
Processing from Developer to Yocto
Developer
- Create .Metadata
.Metadata = .bb + .patch (files)
- 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)
- Bitbake (Build)
working Yocto by Script + Setting Environment
Yocto
- import source code
Parse .bb file in Metadata, and import the source file defined in "SRC__URI"
- Apply Patches
Import source files and apply patch files (Patch Application, SRC_URI(file://***.patch))
- 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))
- Create
Package
Analyze(Proceed with the analysis of each association) the generated files and create them in the form of a package.
- Create
deploying files
Generating in the form of rpm, deb, and ipk files
- Create Image
create an Image by integrating the generated files
#Yocto #Bitbake #Linux #Embedded #method of
operation
"Korean" translation
개발자와 Yocto 간 처리
개발자
- Metadata 작성
스크립트 : Metadata(.bb + patches) - Conf. 파일 작성(환경 설정, Machine 등 설정)
Build 환경 설정 후 conf 폴더 내 .conf 수정(주요 설정 정보 : Machine(BSP) configuration, Policy configuration, User configuration) - Bitbake 빌드
스크립트 + 설정 환경에 따른 Yocto 구동
Yocto
- 소스 코드 얻기
Metadata에 .bb 파일을 파싱한후 SRC_URI에 정의된 소스 파일을 가져온다. - 패치 적용
소스 파일을 가져온 후 패치 파일 적용 (Patch Application, SRC_URI(file://***.patch) ) - Config 파일 생성 및 Build 시작
가져온 소스 코드에 패치를 적용 -> configuration 작업 -> compile
리눅스 Compile 과정과 동일한 Configuration / Compile 과정을 진행(Config 파일을 생성한 후 그 파일을 토대로 Compile) - Package 생성
생성된 파일을 분석(각각의 연관 관계 분석 진행)하여 Package 형태로 생성. - Generation
rpm, deb, ipk 파일의 형태로 생성. - Image 생성
생성된 파일을 통합하여 이미지 생성
No comments:
Post a Comment