[Buildroot] using a local package file : why copy it to the dl directory ?

Sagaert Johan sagaert.johan at skynet.be
Tue Oct 8 23:12:20 UTC 2013


 
Dear Thomas

Maybe I did not explain it well, I did not mean to build out of the tree, but the local package_xxx_tar.bz2 (in the case of tarred
bz2)
is already on our local system, so I tought there was no need to copy the archive to the dl directory.

Johan 

-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Thomas Petazzoni
Verzonden: woensdag 9 oktober 2013 0:24
Aan: buildroot at busybox.net
Onderwerp: Re: [Buildroot] using a local package file : why copy it to the dl directory ?

Dear Sagaert Johan,

On Wed, 9 Oct 2013 00:19:12 +0200, Sagaert Johan wrote:

> I noticed when using SITE_METHOD = file, the package is copied to the download directory.
> Is this needed, since the package is already on our local filesystem ?

Yes it is needed, because:

 (1) Buildroot do not want to make changes outside of its output
     directory. We clearly do not want Buildroot to mess up with your
     source directory, and create its stamp files, and the result of
     the compilation there.

 (2) Buildroot does not use out of tree build for packages. If it was
     using out of tree build, then we could avoid that copy by using
     your local directory as the source tree, and the
     output/build/<pkgname>-<pkgversion> directory as the build tree. A
     while ago, I started working on out-of-tree build for packages,
     precisely to improve this situation. See
     http://lists.busybox.net/pipermail/buildroot/2013-April/070573.html.
     It is certainly not impossible to do, but quite a huge patch set,
     with a lot of implications. Basically, my stuff was working in the
     general case, but there were some issues here and there that
     remained to be sorted out.

Best regards,

Thomas
--
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering http://free-electrons.com _______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot




More information about the buildroot mailing list