라즈베리파이

Centos 7 에서 yocto 사용(dunfell 및 zeus 이상)

MT리눅스 2020. 8. 22. 17:16

centos 7의 경우 가종 패키지들의 버전이 낮아서 yocto sanity check에서 버전이 낮다는 문구를 볼수 있다.

이에 대해 각 패키지를 업그레이드를 하는것 보다는 yocto에서 제공하는 host build 툴을 설치하는 것이 여러모로 낫다.

즉, yocto를 빌드할때만 상위버전의 tool들을 사용하는 것이며, centos 7에서 사용하는 기본적인 패키지는 변경되지 않는다.

 

1. buildtools 설치

   dunfell 이상의 버전부터 install-buildtools 스크립트를 지원하기 시작했다. 따라서 yocto dunfell 이상의 경우 아래과 같이 간단하게 설치할수 있다. 

 

# cd poky-dunfell

# scripts/install-buildtools

# source buildtools/environment-setup-x86_64-pokysdk-linux

# . oe-init-build-env

 

이전 버전에서는 다음과 같이 약간 과정이 복잡하다.

https://js94.tistory.com/entry/Yocto-Project-manual-set

www.yoctoproject.org/docs/2.5/ref-manual/ref-manual.html#building-your-own-buildtools-tarball

 

2. 환경 확인

  environment-setup-x86_64-pokysdk-linux 를 실행한 이후 다음과 같이 tar version 이 변경된 것을 볼 수 있다.

# tar --version

tar (GNU tar) 1.26

 

# source buildtools/environment-setup-x86_64-pokysdk-linux

# tar --version

tar (GNU tar) 1.32

 

3. 이후 bitbake 를 이용한 작업이 가능