package: add a <pkg>_EXTRA_DOWNLOADS variable
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 8 Oct 2013 18:17:00 +0000 (20:17 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 8 Oct 2013 20:58:49 +0000 (22:58 +0200)
commit2c13d5bc60749717634fac60b8165a3e2567bcdb
tree7dcf635b622b91fdd3daccacb57ca7619bad81b1
parent03b05402df6f2a06ffc936c6364da5951f315197
package: add a <pkg>_EXTRA_DOWNLOADS variable

Converting the external toolchain logic into a package raises a very
special use case that wasn't handled by the package infrastructure:
the Blackfin toolchain is delivered as two tarballs instead of
one. Unfortunately <pkg>_SOURCE only allows to pass one tarball name.

However, we really want both tarballs to be known by the package
infrastructure, so that the normal 'source' and 'external-deps'
mechanism work fine.

In order to achieve this, we add a <pkg>_EXTRA_DOWNLOADS variable,
which allows a package to list other stuff it would like to see
downloaded, but that are otherwise not used by the package
infrastructure itself: it is up to the package to do it by itself.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
docs/manual/adding-packages-generic.txt
package/pkg-generic.mk