* Making machine config a build dependency for core-image recipes
@ 2012-01-18 22:04 Yang, Fei
2012-01-18 22:20 ` Gary Thomas
2012-01-19 4:06 ` McClintock Matthew-B29882
0 siblings, 2 replies; 5+ messages in thread
From: Yang, Fei @ 2012-01-18 22:04 UTC (permalink / raw)
To: yocto@yoctoproject.org, yocto@yoctoproject.org
I encountered a build issue when trying to generate /etc/inittab.
I have a meta-xxx/conf/machine/conf file which contains serial console information such as SERIAL_CONSOLE = "115200 ttyXYZ" or "115200 ttyS0" by default.
When I update that conf file and make an incremental build, the /etc/inittab doesn't get updated, I finally have to remove all the binaries and force a complete re-build to generate correct /etc/inittab with updated serial console settings, which take more than an hour to finish.
How do I create a dependency so that when I update my machine/conf file, an incremental build would take care of the change and re-generate the files in root FS accordingly? If that is impossible for now, can I just delete one or a few task binaries to trigger a rebuild on /etc/inittab? This would greatly reduce my build time.
Thanks,
Fei
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Making machine config a build dependency for core-image recipes
2012-01-18 22:04 Making machine config a build dependency for core-image recipes Yang, Fei
@ 2012-01-18 22:20 ` Gary Thomas
2012-01-18 23:50 ` Yang, Fei
2012-01-19 4:06 ` McClintock Matthew-B29882
1 sibling, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2012-01-18 22:20 UTC (permalink / raw)
To: yocto
On 2012-01-18 15:04, Yang, Fei wrote:
> I encountered a build issue when trying to generate /etc/inittab.
> I have a meta-xxx/conf/machine/conf file which contains serial console information such as SERIAL_CONSOLE = "115200 ttyXYZ" or "115200 ttyS0" by default.
> When I update that conf file and make an incremental build, the /etc/inittab doesn't get updated, I finally have to remove all the binaries and force a complete re-build to generate correct /etc/inittab with updated serial console settings, which take more than an hour to finish.
> How do I create a dependency so that when I update my machine/conf file, an incremental build would take care of the change and re-generate the files in root FS accordingly? If that is impossible for now, can I just delete one or a few task binaries to trigger a rebuild on /etc/inittab? This would greatly reduce my build time.
You really only need to rebuild the sysvinit package.
% ... make your modifications to machine/conf
% bitbake sysvinit -c cleansstate
% bitbake <whatever-image-you-like>
This package is not marked as machine dependent via
PACKAGE_ARCH = "${MACHINE_ARCH}"
perhaps it should be since /etc/inittab is target dependent?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Making machine config a build dependency for core-image recipes
2012-01-18 22:20 ` Gary Thomas
@ 2012-01-18 23:50 ` Yang, Fei
2012-01-19 0:03 ` Gary Thomas
0 siblings, 1 reply; 5+ messages in thread
From: Yang, Fei @ 2012-01-18 23:50 UTC (permalink / raw)
To: Gary Thomas, yocto@yoctoproject.org
> This package is not marked as machine dependent via
> PACKAGE_ARCH = "${MACHINE_ARCH}"
> perhaps it should be since /etc/inittab is target dependent?
Well, I just checked poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, it does have PACKAGE_ARCH = "${MACHINE_ARCH}". Am I looking at wrong bb file? There is another file named sysvinit_2.88dsf.bb which doesn't have PACKAGE_ARCH set.
-Fei
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Making machine config a build dependency for core-image recipes
2012-01-18 23:50 ` Yang, Fei
@ 2012-01-19 0:03 ` Gary Thomas
0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2012-01-19 0:03 UTC (permalink / raw)
To: Yang, Fei; +Cc: yocto@yoctoproject.org
On 2012-01-18 16:50, Yang, Fei wrote:
>> This package is not marked as machine dependent via
>> PACKAGE_ARCH = "${MACHINE_ARCH}"
>> perhaps it should be since /etc/inittab is target dependent?
>
> Well, I just checked poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, it does have PACKAGE_ARCH = "${MACHINE_ARCH}". Am I looking at wrong bb file? There is another file named sysvinit_2.88dsf.bb which doesn't have PACKAGE_ARCH set.
Sorry, missed that one. You should be rebuilding sysvinit-inittab
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Making machine config a build dependency for core-image recipes
2012-01-18 22:04 Making machine config a build dependency for core-image recipes Yang, Fei
2012-01-18 22:20 ` Gary Thomas
@ 2012-01-19 4:06 ` McClintock Matthew-B29882
1 sibling, 0 replies; 5+ messages in thread
From: McClintock Matthew-B29882 @ 2012-01-19 4:06 UTC (permalink / raw)
To: Yang, Fei; +Cc: yocto@yoctoproject.org
On Wed, Jan 18, 2012 at 4:04 PM, Yang, Fei <fei.yang@intel.com> wrote:
> I encountered a build issue when trying to generate /etc/inittab.
> I have a meta-xxx/conf/machine/conf file which contains serial console information such as SERIAL_CONSOLE = "115200 ttyXYZ" or "115200 ttyS0" by default.
> When I update that conf file and make an incremental build, the /etc/inittab doesn't get updated, I finally have to remove all the binaries and force a complete re-build to generate correct /etc/inittab with updated serial console settings, which take more than an hour to finish.
> How do I create a dependency so that when I update my machine/conf file, an incremental build would take care of the change and re-generate the files in root FS accordingly? If that is impossible for now, can I just delete one or a few task binaries to trigger a rebuild on /etc/inittab? This would greatly reduce my build time.
You could try: 'bitbake sysvinit-inittab -c clean'.
Seems like there should be a better way to say sysvinit-inittab
depends on the machine/conf.
-M
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-19 4:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-18 22:04 Making machine config a build dependency for core-image recipes Yang, Fei
2012-01-18 22:20 ` Gary Thomas
2012-01-18 23:50 ` Yang, Fei
2012-01-19 0:03 ` Gary Thomas
2012-01-19 4:06 ` McClintock Matthew-B29882
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.