[oe] Getting Started -Makefile

Rod Whitby rod at whitby.id.au
Tue Nov 20 11:06:50 UTC 2007


Richard Purdie wrote:
> Would you agree that bitbake itself isn't painful to use? "bitbake xyz"
> is just as simple as "make image" (or whatever)?

Yes, with the comment that the make command takes notice of a standard
directory structure, and does the right thing based on that, echoing
every lower-level command that it executes, as opposed to bitbake, the
operation of which depends upon whichever set of environment variables
the user happened to remember to source latest (or in most cases I've
seen, forget to source and therefore get confused when bitbake complains
about not being able to do anything).

> See my previous mail about how Poky handles this: "source script;
> bitbake xyz". I realise this isn't the one stop shop you describe but I
> think the fact bitbake is exposed to the user is a really positive move
> and well worth the slight extra learning curve. The script being sourced
> can even hint at the commands to run...

Um, the makefile *prints* *out* the exact bitbake commands that are
being run.  If it's so simple, then one would assume that people would
learn from that and start typing the commands themselves ...

> If the makefile worked like that, exposing the user to bitbake instead
> of hiding it, most of the opposition to the makefile would be removed.

Market forces prevail - if we improve the OE documentation and user
tutorials and ease of use, then people won't need the makefiles.  The
makefiles are an option they are mandatory - if the other options become
easier to use then  people will use them.  If the other options do not
become easier to use, then one might put forward a position that the
easiest to use option *should* prevail.

The OE documentation and wiki has the commanding position in teaching
new people how to access and use OE.  Note that *nowhere* in the OE wiki
or documentation are the makefiles mentioned.  If that commanding
position cannot be turned into a scenario where people run bitbake
directly rather than a Makefile, then one must question why that is not
the case, rather than just disparaging the Makefile and leaving the
users out in the cold.

-- Rod




More information about the Openembedded-devel mailing list