Yocto recipetool tutorial

There are two ways of writing a recipe:
1. Writing from scratch
2.  Using recipetool to create a recipe for us

We will see in this post on how to create a base recipe using recipetool

Syntax for recipetool for local source:
recipetool create source

Let's try to pass a simple hello.c file to recipetool and observe the output.

Note: Yocto environment script should be run, for us to use recipetool


The recipetool command created 'hello.bb' with the following information added in the recipe:
  • LICENSE = "CLOSED"
  • SRC_URI
  • Empty configure(), compile(), install() tasks.
We can pass 'o' option to change the name of generated recipe
$ recipetool create -o test_recipe.bb hello.c

When given a tar file, it added CHKSUM as well as any inherits.


It added a 'DEPENDS' variable, when passed dropbear tarball



Comments

Popular posts from this blog

bb.utils.contains yocto

Connecting Serial ports of two Ubuntu VMWare Virtual Machines

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig