[Buildroot] [PATCH 1/2] package infra: add mirror support

Gustavo Zacarias gustavo at zacarias.com.ar
Tue Oct 18 16:00:28 UTC 2011


On 18.10.2011 12:55, Michael S. Zick wrote:

> On Tue October 18 2011, Thomas Petazzoni wrote:
>> Le Tue, 18 Oct 2011 11:14:54 -0300,
>> Gustavo Zacarias <gustavo at zacarias.com.ar> a écrit :
>>
>> > +	if test -n "$(3)" ; then \
>> > +		case "$($(PKG)_SITE_METHOD)" in \
>> > +			git) exit ;; \
>> > +			svn) exit ;; \
>> > +			bzr) exit ;; \
>> > +			file) exit ;; \
>>
>
> How about just a nop?
> s/exit/:/
>
> Mike

Yes that's a solution.
I'm also looking into using multiple PKG_SITE definitions as Thomas 
suggested, however it's a bit more complicated since i've got to pull 
out the PKG_SITE_METHOD eval from GENTARGETS_INNER since we could have 
multiple methods for different mirrors.
That means looking that things don't break by doing so.
Also contemplating how to properly do PKG_SIZE (for file size) and 
PKG_HASH (MD5 and/or SHA1) for source consistency.
Regards.



More information about the buildroot mailing list