Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Name of downloaded archive, conflicts
@ 2013-10-25 14:05 Jan Viktorin
  2013-10-28  6:58 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Viktorin @ 2013-10-25 14:05 UTC (permalink / raw)
  To: buildroot

Hello,

I have encountred a problem when downloading custom kernel together
with a custom (e.g.) u-boot. Both are downloaded from GitHub from a
master branch. The URLs are (in case of using master branches):

 https://github.com/Xilinx/u-boot-xlnx/archive/master.tar.gz
 https://github.com/Xilinx/linux-xlnx/archive/master.tar.gz

and that leads to a file name conflict in the dl/ directory. I end
with linux kernel extracted in the u-boot build directory...

Is there a way in buildroot how to specify a different name after
download is done or another way how to avoid the conflict? I tried to
google a bit, however, without a success.

Regards
Jan Viktorin

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

* [Buildroot] Name of downloaded archive, conflicts
  2013-10-25 14:05 [Buildroot] Name of downloaded archive, conflicts Jan Viktorin
@ 2013-10-28  6:58 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2013-10-28  6:58 UTC (permalink / raw)
  To: buildroot

On 25/10/13 16:05, Jan Viktorin wrote:
> Hello,
>
> I have encountred a problem when downloading custom kernel together
> with a custom (e.g.) u-boot. Both are downloaded from GitHub from a
> master branch. The URLs are (in case of using master branches):
>
>   https://github.com/Xilinx/u-boot-xlnx/archive/master.tar.gz
>   https://github.com/Xilinx/linux-xlnx/archive/master.tar.gz
>
> and that leads to a file name conflict in the dl/ directory. I end
> with linux kernel extracted in the u-boot build directory...
>
> Is there a way in buildroot how to specify a different name after
> download is done or another way how to avoid the conflict? I tried to
> google a bit, however, without a success.

  This is a known issue, and we don't have a good solution for it.

  We have considered prepending the package name to every archive that is 
downloaded, but this has two important problems:

  1. You can't use the download directory as a BR2_PRIMARY_SITE anymore.

  2. If the same source is used by two packages (e.g. kernel-headers and 
linux), then it will also be downloaded twice.

  We haven't found a good solution for these problems. Ideas are welcome, 
though.


  Fortunately, for your use case, there's an easy solution. Don't use 
'master', but instead use an explicit sha1 of the version you want to 
download. Your .config should really be reproducible, so that you can 
give it to a colleague and they'll build the _same_ kernel as you.

  While you're developing linux and/or U-Boot, you can use the 
_OVERRIDE_SRCDIR mechanism (which admittedly isn't very well documented 
at the moment), which is a more explicit way of making 'local' changes to 
the .config.

  Regards,
  Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

end of thread, other threads:[~2013-10-28  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-25 14:05 [Buildroot] Name of downloaded archive, conflicts Jan Viktorin
2013-10-28  6:58 ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox