[yocto] The BitBake equivalent of "Hello, World!"

Rudolf Streif rudolf.streif at linux.com
Wed Oct 3 16:03:28 PDT 2012


Hi Patrick,

I think I understand what you are looking for. I created this Bitbake Hello
World for a training class. It just uses 'raw' Bitbake and a very basic
recipe to build the Nano editor (including download from the project site).

You need to have a couple of things in place to make this work. I got to
run but I will get back to it and post it.

:rjs

On Wed, Oct 3, 2012 at 3:56 PM, Patrick Turley
<PatrickTurley at gamestop.com>wrote:

> In my previous message, some of the indentation in the representation of
> my file tree was wrong (because we're using Outlook, which destroy all
> indentation when you paste it into an e-mail message). The errors are
> small, but I want to avoid annoying anyone who might think I don't even
> have the file tree constructed correctly.
>
> The following is accurate:
>
> >/home/pturley/Workspace/woohoo
> >    |
> >    +-- build
> >    |   |
> >    |   +-- classes
> >    |   |   |
> >    |   |   +-- base.bbclass
> >    |   |
> >    |   |     +-------------------------------------------
> >    |   |     | do_hello() {
> >    |   |     |     echo Hello
> >    |   |     | }
> >    |   |     |
> >    |   |     | addtask hello
> >    |   |     +-------------------------------------------
> >    |   |
> >    |   +-- conf
> >    |       |
> >    |       +-- bblayers.conf
> >    |       |
> >    |       | +-------------------------------------------
> >    |       | | BBLAYERS ?= " \
> >    |       | |   /home/pturley/Workspace/woohoo/LayerA \
> >    |       | |   "
> >    |       | +-------------------------------------------
> >    |       |
> >    |       +-- bitbake.conf
> >    |
> >    |         +-------------------------------------------
> >    |         | CACHE = "${TOPDIR}/cache"
> >    |         +-------------------------------------------
> >    |
> >    +-- LayerA
> >    |   |
> >    |   +-- a.bb
> >    |   |
> >    |   |     +-------------------------------------------
> >    |   |     | PN = 'a'
> >    |   |     | PV = '1'
> >    |   |     +-------------------------------------------
> >    |   |
> >    |   +-- conf
> >    |       |
> >    |       +-- layer.conf
> >    |
> >    |         +-------------------------------------------
> >    |         | BBPATH .= ":${LAYERDIR}"
> >    |         | BBFILES += "${LAYERDIR}/*.bb"
> >    |         +-------------------------------------------
> >    |
> >    +-- BitBake ...
> >
> >    The BitBake directory origin is:
> >
> >        http://git.openembedded.org/bitbake/
> >
> >    I have the 1.15.2 tag checked out, which is what
> >    Yocto denzil uses.
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20121003/acd8e0ab/attachment.html>


More information about the yocto mailing list