All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] how to clean up everything but the toolchain
@ 2009-10-01  8:04 Sven Neumann
  2009-10-01  8:44 ` Thomas Petazzoni
  2009-10-01 11:22 ` Will Newton
  0 siblings, 2 replies; 4+ messages in thread
From: Sven Neumann @ 2009-10-01  8:04 UTC (permalink / raw)
  To: buildroot

Hi,

we are using buildroot to build a number of projects for the same
platform. Currently we do this simply by changing the .config file. In
order for the build to work after changing the .config file, we remove
the project_build_arm, build_arm and toolchain_build_arm directories. So
basically we are doing a full rebuild, including the toolchain. We could
save a lot of CPU cycles if we could reuse the toolchain build. However
I found that if I remove the build_arm directory, but not the
toolchain_build_arm directory, things will break. So I wonder if there
is an easy solution to this. Perhaps a make target that we didn't
discover yet?


Sven

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] how to clean up everything but the toolchain
  2009-10-01  8:04 [Buildroot] how to clean up everything but the toolchain Sven Neumann
@ 2009-10-01  8:44 ` Thomas Petazzoni
  2009-10-01 11:22 ` Will Newton
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2009-10-01  8:44 UTC (permalink / raw)
  To: buildroot

Le Thu, 01 Oct 2009 10:04:33 +0200,
Sven Neumann <s.neumann@raumfeld.com> a ?crit :

> we are using buildroot to build a number of projects for the same
> platform. Currently we do this simply by changing the .config file. In
> order for the build to work after changing the .config file, we remove
> the project_build_arm, build_arm and toolchain_build_arm directories.
> So basically we are doing a full rebuild, including the toolchain. We
> could save a lot of CPU cycles if we could reuse the toolchain build.
> However I found that if I remove the build_arm directory, but not the
> toolchain_build_arm directory, things will break. So I wonder if there
> is an easy solution to this. Perhaps a make target that we didn't
> discover yet?

This is something we should definitely support, but I'm not sure yet
how to achieve that. At least of the mandatory component is to be able
to cleanly remove packages from the staging/ and target/ directories.
And this requires a global infrastructure used by all packages (like
Makefile.autotools.in, but more generic). I've started working on this,
but it will take some time (fairly complex + limited free time).

However, what I'm doing currently is that I use external toolchains
(that's the reason for which I improved a little the external toolchain
support in Buildroot). Toolchain is generated once for all with
Crosstool-ng, and then Buildroot is only used to build the root
filesystem.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] how to clean up everything but the toolchain
  2009-10-01  8:04 [Buildroot] how to clean up everything but the toolchain Sven Neumann
  2009-10-01  8:44 ` Thomas Petazzoni
@ 2009-10-01 11:22 ` Will Newton
  2009-10-01 11:28   ` Sven Neumann
  1 sibling, 1 reply; 4+ messages in thread
From: Will Newton @ 2009-10-01 11:22 UTC (permalink / raw)
  To: buildroot

On Thu, Oct 1, 2009 at 9:04 AM, Sven Neumann <s.neumann@raumfeld.com> wrote:
> Hi,
>
> we are using buildroot to build a number of projects for the same
> platform. Currently we do this simply by changing the .config file. In
> order for the build to work after changing the .config file, we remove
> the project_build_arm, build_arm and toolchain_build_arm directories. So
> basically we are doing a full rebuild, including the toolchain. We could
> save a lot of CPU cycles if we could reuse the toolchain build. However
> I found that if I remove the build_arm directory, but not the
> toolchain_build_arm directory, things will break. So I wonder if there
> is an easy solution to this. Perhaps a make target that we didn't
> discover yet?

I have found it sufficient to remove build_arm and project_build_arm.
Some stuff in the toolchain still gets rebuilt but not as much as a
full rebuild.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] how to clean up everything but the toolchain
  2009-10-01 11:22 ` Will Newton
@ 2009-10-01 11:28   ` Sven Neumann
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Neumann @ 2009-10-01 11:28 UTC (permalink / raw)
  To: buildroot

On Thu, 2009-10-01 at 12:22 +0100, Will Newton wrote:

> I have found it sufficient to remove build_arm and project_build_arm.
> Some stuff in the toolchain still gets rebuilt but not as much as a
> full rebuild.

I found that the build will fail if I do that. Might be specific to our
setup though.


Sven

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-01 11:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01  8:04 [Buildroot] how to clean up everything but the toolchain Sven Neumann
2009-10-01  8:44 ` Thomas Petazzoni
2009-10-01 11:22 ` Will Newton
2009-10-01 11:28   ` Sven Neumann

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.