* Re: How to do the specified tasks instead of many default
@ 2012-09-20 13:11 Liu
2012-09-20 13:30 ` Paul Eggleton
0 siblings, 1 reply; 5+ messages in thread
From: Liu @ 2012-09-20 13:11 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 651 bytes --]
Dear Paul,
I have some packages built by a set of Makefiles,and want to build them using bitbake.So I used recipes to invoke Makefiles to do fetch,unpack,patch,compile tasks.But I do not need to do the following tasks like do_build,do_package.
In the default conditions,there exist list of packages by using the command like "bitbake busybox -c listtasks".
With your idea I can disable tasks by do_package[noexec] = "1". But then it needs to do many similar works to disable tasks I do not need in all my package recipes.So I want to know if there is a direct way to disable default tasks defined in .bbclass.
Thanks,
------------Liu
[-- Attachment #2: Type: text/html, Size: 756 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How to do the specified tasks instead of many default
2012-09-20 13:11 How to do the specified tasks instead of many default Liu
@ 2012-09-20 13:30 ` Paul Eggleton
0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2012-09-20 13:30 UTC (permalink / raw)
To: Liu; +Cc: yocto
On Thursday 20 September 2012 21:11:49 Liu wrote:
> I have some packages built by a set of Makefiles,and want to build them
> using bitbake.So I used recipes to invoke Makefiles to do
> fetch,unpack,patch,compile tasks.But I do not need to do the following
> tasks like do_build,do_package.
> In the default conditions,there exist list
> of packages by using the command like "bitbake busybox -c listtasks". With
> your idea I can disable tasks by do_package[noexec] = "1". But then it
> needs to do many similar works to disable tasks I do not need in all my
> package recipes.So I want to know if there is a direct way to disable
> default tasks defined in .bbclass. Thanks,
I understand what you are trying to do but I still don't understand why. Do
you not want to be able to produce images?
If you really do want to do this you could set this at a global level either
in local.conf or a distro configuration file. If you do this however you will at
least need to allow do_populate_sysroot to run or many things will break.
I won't be surprised if you experience other problems as well. I think it's
fair to say you are stepping outside of the bounds of what is normally
supported with the metadata we provide (although it is not outside of
supported BitBake behaviour).
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to do the specified tasks instead of many default
@ 2012-09-20 13:50 Liu
2012-09-20 13:57 ` Paul Eggleton
0 siblings, 1 reply; 5+ messages in thread
From: Liu @ 2012-09-20 13:50 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 2134 bytes --]
Dear Paul,
I know it probably not be right to do in such way.But my project is built by buildroot,So I just need to run make to build the image.And now
I want to use bitbake to build the project instead of buildroot.Then I think of the idea to use recipes to "do_fetch","do_unpack",and "oe_runmake" to build the packages. For this reason I came up with the question of what I have been asking.
Thanks,
--------Liu
------------------ Original ------------------
From: "Paul Eggleton"<paul.eggleton@linux.intel.com>;
Date: Thu, Sep 20, 2012 09:30 PM
To: "Liu"<treebody@embedstudy.com>;
Cc: "yocto"<yocto@yoctoproject.org>;
Subject: Re: [yocto] How to do the specified tasks instead of many default
On Thursday 20 September 2012 21:11:49 Liu wrote:
> I have some packages built by a set of Makefiles,and want to build them
> using bitbake.So I used recipes to invoke Makefiles to do
> fetch,unpack,patch,compile tasks.But I do not need to do the following
> tasks like do_build,do_package.
> In the default conditions,there exist list
> of packages by using the command like "bitbake busybox -c listtasks". With
> your idea I can disable tasks by do_package[noexec] = "1". But then it
> needs to do many similar works to disable tasks I do not need in all my
> package recipes.So I want to know if there is a direct way to disable
> default tasks defined in .bbclass. Thanks,
I understand what you are trying to do but I still don't understand why. Do
you not want to be able to produce images?
If you really do want to do this you could set this at a global level either
in local.conf or a distro configuration file. If you do this however you will at
least need to allow do_populate_sysroot to run or many things will break.
I won't be surprised if you experience other problems as well. I think it's
fair to say you are stepping outside of the bounds of what is normally
supported with the metadata we provide (although it is not outside of
supported BitBake behaviour).
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 2849 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: How to do the specified tasks instead of many default
2012-09-20 13:50 Liu
@ 2012-09-20 13:57 ` Paul Eggleton
0 siblings, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2012-09-20 13:57 UTC (permalink / raw)
To: Liu; +Cc: yocto
On Thursday 20 September 2012 21:50:42 Liu wrote:
> I know it probably not be right to do in such way.But my project is
> built by buildroot,So I just need to run make to build the image.And now
> I want to use bitbake to build the project instead of buildroot.Then I
> think of the idea to use recipes to "do_fetch","do_unpack",and
> "oe_runmake" to build the packages.
I guess I would recommend if you're going to migrate to building with bitbake
that you make more of a migration towards standard recipes - I'm not sure
exactly where you will end up with your current approach but it sounds like
you won't get much benefit by just calling into the original Buildroot makefiles
over just continuing to use Buildroot on its own.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to do the specified tasks instead of many default
@ 2012-09-20 14:07 Liu
0 siblings, 0 replies; 5+ messages in thread
From: Liu @ 2012-09-20 14:07 UTC (permalink / raw)
To: Paul Eggleton; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]
Dear Paul,
Thanks a lot for your suggestion.Maybe in the future I will change the original Buildroot makefiles in my project to make the build easy and code convenient management.
-------Liu
------------------ Original ------------------
From: "Paul Eggleton"<paul.eggleton@linux.intel.com>;
Date: Thu, Sep 20, 2012 09:57 PM
To: "Liu"<treebody@embedstudy.com>;
Cc: "yocto"<yocto@yoctoproject.org>;
Subject: Re: [yocto] How to do the specified tasks instead of many default
On Thursday 20 September 2012 21:50:42 Liu wrote:
> I know it probably not be right to do in such way.But my project is
> built by buildroot,So I just need to run make to build the image.And now
> I want to use bitbake to build the project instead of buildroot.Then I
> think of the idea to use recipes to "do_fetch","do_unpack",and
> "oe_runmake" to build the packages.
I guess I would recommend if you're going to migrate to building with bitbake
that you make more of a migration towards standard recipes - I'm not sure
exactly where you will end up with your current approach but it sounds like
you won't get much benefit by just calling into the original Buildroot makefiles
over just continuing to use Buildroot on its own.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 2025 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-09-20 14:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-20 13:11 How to do the specified tasks instead of many default Liu
2012-09-20 13:30 ` Paul Eggleton
-- strict thread matches above, loose matches on Subject: below --
2012-09-20 13:50 Liu
2012-09-20 13:57 ` Paul Eggleton
2012-09-20 14:07 Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.