[Buildroot] [PATCH] pkg-download: support file:// in BR2_PRIMARY_SITE
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Nov 18 08:57:27 UTC 2015
Arnout, Jérôme,
On Tue, 17 Nov 2015 23:54:12 +0100, Arnout Vandecappelle wrote:
> >> make project_defconfig
> >> make BR2_DL_DIR=/tmp/mirror-project BR2_PRIMARY_SITE=file:///home/user/dl source
> >> tar -C /tmp -czvf mirror-project.tgz mirror-project
> >
> > You have a much simpler option:
> >
> > make external-deps
>
> You probably mean:
>
> for file in $(make external-deps); cp dl/$file /tmp/mirror-project; done
Yes, indeed, I only pointed at "make external-deps", leaving it to the
reader to figure out how to make use of it in the context of what
Jérôme is trying to do. But I could have been more explicit.
> I think a local file PRIMARY_SITE can be useful for other situations as well,
> e.g. a slow CIFS-mounted shared download location that is too slow to use as
> DL_DIR, so I think the feature has merit.
Yes, I also think the feature has merit.
Jérôme, could you respin the patch after updating the Config.in help
text of the BR2_PRIMARY_SITE option?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list