[Buildroot] Source download overwrite
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Nov 14 13:14:45 UTC 2014
Dear Mathieu Slabbinck,
On Fri, 14 Nov 2014 10:24:58 +0100, Mathieu Slabbinck wrote:
> Hi,
>
> I'm looking for a way to overwrite the internal download system of buidroot
> for a specific homebrew package.
>
> The goal of the package is to download multiple files and install them
> accordingly.
> LIBFOO_SITE contains the common part of the download link. For example
> ftp://myftpserver.mydomain.com/libfoo/.
>
> Then I'd like to have a pre-install hook that downloads some specific files
> from that url, for example
> - ftp://myftpserver.mydomain.com/libfoo/file1.deb
> - ftp://myftpserver.mydomain.com/libfoo/file2.rpm
> - ftp://myftpserver.mydomain.com/libfoo/file3.someExtension
>
> This all works fine, but the package still tries to fetch
> ftp://myftpserver.mydomain.com/libfoo/.tar.gz because of the internal way
> of working of buildroot.
>
> So how can I overwrite this method or disable it?
Why don't you simply use the <pkg>_EXTRA_DOWNLOADS variable? It allows
you to download additional files from the same site, which seems to be
exactly what you're trying to achieve.
LIBFOO_SITE = ftp://myftpserver.mydomain.com/libfoo/
LIBFOO_SOURCE = <one file>
LIBFOO_EXTRA_DOWNLOADS = <another file> <yet another file>
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list