[Buildroot] [PATCH v2] Add target to create a project directory

Valentine Barshak gvaxon at gmail.com
Tue Oct 16 17:36:35 UTC 2012


On 10/14/2012 04:50 PM, Arnout Vandecappelle wrote:
> On 14/10/12 01:35, Valentine Barshak wrote:
>>> +$(BUILDROOT_DIR):
>>> +    mkdir -p $@
>>> +    wget -O - $(BUILDROOT_SITE)/$(BUILDROOT_SOURCE) | \
>>> +        tar -xjf - -C $@ --strip-components=1
>>> +    for p in `ls $(makedir)/patches/buildroot/buildroot-*
>>> 2>/dev/null`; do \
>>> +        patch -d $@ -p1 -i $$p; \
>>> +    done
>>
>> I probably miss something, but
>> do I have to download buldroot for every project?
>> Can I use my local BR git tree as a buildroot source for my projects
>> instead of downloading?
>
>   No, make a symlink to the BR tree and it won't download anything.
>
>   But this automatic download feature is probably going a bridge too far
> :-)

Thanks,
probably symlinking should be done by default instead of downloading?
I'd assume that when someone does make projectdir from the BR directory,
they'd expect this particular BR do be used as the source for the new 
project.

In case of downloading, it's possible to download/copy current BR to 
another location manually (without projectdir) and build there.

Are there any obvious differences compared to using projectdir in this case?

What benefits does it give?

Thanks,
Val.
>
>   Regards,
>   Arnout
>




More information about the buildroot mailing list