Skip to main content

Command line tool to build OpenEmbedded and Yocto images

Project description

TuxBake, by Linaro, is a command line tool and Python library that provides portable and repeatable OE builds. TuxBake is a part of TuxSuite, a suite of tools and services to help developers do build and boot test Linux kernel and OE distros.

[[TOC]]

About TuxBake

TuxBake is a python application to build OE Distros. It takes a json file as input which describes the layers needed to be downloaded, local_conf and bblayers_conf parameters along with machine, distro targets. It downloads the layers for with using either git protocols or the repo tool. It uses Docker containers to provide a standardised build environments to do the build which can be easily reproduced by other users.

Installing Tuxbake

There are several options for installing TuxBake (TuxMake is a prerequisite):

pip3 install tuxmake
git clone https://gitlab.com/Linaro/tuxbake
cd tuxbake/
pip3 install .

build-definition.json template with repo

{
  "container": "ubuntu-20.04",
  "distro": "rpb",
  "envsetup": "setup-environment",
  "machine": "dragonboard-845c",
  "sources": {
    "repo": {
      "branch": "qcom/dunfell",
      "manifest": "default.xml",
      "url": "https://github.com/96boards/oe-rpb-manifest.git"
    }
  },
  "target": "rpb-console-image rpb-console-image-test rpb-desktop-image rpb-desktop-image-test"
}

build-definition.json template with git repositories

{
  "sources": {
    "git_trees": [
      {
        "url": "http://git.yoctoproject.org/git/poky",
        "branch": "honister"
      },
      {
        "url": "https://github.com/ndechesne/meta-qcom",
        "branch": "honister"
      }
    ]
  },
  "container": "ubuntu-20.04",
  "envsetup": "poky/oe-init-build-env",
  "distro": "poky",
  "machine": "dragonboard-845c",
  "target": "core-image-minimal",
  "bblayers_conf": [
  "BBLAYERS += \"../meta-qcom/\""
  ],
    "environment": {
  }

Fields of build-defintion.json

sources

The sources is a dictionary with single item. It could be either git_trees or repo.

git_trees

The git_trees is a list of dictionary object. Each dictionary object will have "url", "branch" and optionally "ref" field.

repo

The repo field is a dictionary object. The dictionary should have "branch", "manifest" and "url" field describing where the manifests are hosted along with the branch and manifest file to be used in the build.

distro

This is the distro variable passed to OE build.

envsetup

This is path to the script relative to the source directory that needs to be sourced to setup bitbake build environment.

machine

This is the machine variable passed to OE build.

target

This the target passed to the bitbake command.

container

This is the container used by Docker to do the build. We currently support ubuntu-16.04, ubuntu-18.04, ubuntu-20.04

local_conf

This is a list of of string and each entry corresponds to a line in local.conf file. The list of string is converted to local.conf file.

bblayers_conf

This is a list of of string and each entry corresponds to a line in bblayers.conf file. The list of string is converted to bblayers.conf file.

environment

This is a dictionary of environment variables which are set before calling bitbake.

Using TuxBake

TuxBake takes the build-definition as input along with a source directory path where the code is downloaded.

Examples

Build OE example:

$ tuxbake --build-definition examples/oe-rpb.json --src-dir $PWD/oe/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tuxbake-0.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

tuxbake-0.0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file tuxbake-0.0.1.tar.gz.

File metadata

  • Download URL: tuxbake-0.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for tuxbake-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ffdc542ffb172fd4f047f2c76206c3aa520010272863f505b5d9782fe15f0680
MD5 5bb6cb1790038e477e77f050224c714f
BLAKE2b-256 b9d029d2d63442dc6a3c66f5264e0703153bba1c5787b5bf40dad650f09ad52b

See more details on using hashes here.

File details

Details for the file tuxbake-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: tuxbake-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for tuxbake-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb3accd9d6e33f4739c44a1411a1c45acf9c7abc5936682a0b7866e381c4e65
MD5 c6bc819cc021633d559dd8baa4dd5932
BLAKE2b-256 11e33629c660351086249cef58f9821c3da7d573421702ebc9d5b0a81b352bbf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page