Skip to content
/ yocto Public
forked from coldnew/docker-yocto

Docker environment to build the yocto project

Notifications You must be signed in to change notification settings

soleen/yocto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yocto

About

This repo contains docker image for building the yocto images.

Use the script yocto to switch yocto building environment and use docker to build the Yocto project instad of installing ubuntu in a VM.

Setting up

First download the yocto as ~/bin/yocto

mkdir -p ~/bin
curl https://raw.githubusercontent.com/soleen/yocto/master/yocto > ~/bin/yocto
chmod +x ~/bin/yocto

Add following line to the ~/.bashrc file to ensure that the ~/bin folder is in you PATH variable.

export PATH=~/bin:$PATH

Basic Usage

First time to use the yocto command, you need to tell it where is the workdir we build the yocto image.

For example, if I want to build yocto at /home/soleen/poky then:

yocto --workdir /home/soleen/poky

After this command, we'll create a container named yocto, which is the environment we used to build the yocto image. Now you'll find your current shell is switch to the container and the /home/soleen/poky is mounted to /yocto.

Spawn a new shell

If you want to spawn a new shell in another terminal, you can use

yocto --shell

This will spawn a new shell if you already specify a workdir.

Remove the container

This script only support ONLY ONE CONTAINER, so If you want to change the workdir, you should remove it first, remove a container is easy, just use following command:

yocto --rm

Then you can setup a new workdir you want.

Upgrade script

Upgrade this script is easy, just type

yocto --upgrade

Pull new docker container

To pull new docker image, just type

yocto --pull

About

Docker environment to build the yocto project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 73.5%
  • Dockerfile 22.6%
  • Makefile 3.9%