K-J
K-J

Reputation: 576

BitBake default task

I have been trying out BitBake lately and I am interested in knowing how it works.

I can compile my component like following:

bitbake component

But I have found that the following line does the same thing (where I specify that BitBake should run the do_build task):

bitbake component -c build

I.e the component compiles, works and the two are generating the same log files. Is the task do_build is some kind of default value for when I do not specify a task? I have only tried this with this one component, so I am curious if it is generic?

Upvotes: 1

Views: 1636

Answers (2)

mrvulcan
mrvulcan

Reputation: 584

The default task is set in meta/classes/base.bbclass:

BB_DEFAULT_TASK ?= "build"

Thus you can set BB_DEFAULT_TASK to override the default task accordingly, for example in local.conf:

BB_DEFAULT_TASK = "compile"

Upvotes: 6

Attila Horvath
Attila Horvath

Reputation: 354

bitbake component -c build

It is the default behaviour for bitbake as you said. Much more easier for the end user to use it bitbake component as mostly you want to build something when you use bitbake.

Upvotes: 1

Related Questions