package: fix 'local' site method for host packages
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 12 Oct 2013 10:15:08 +0000 (12:15 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 14 Oct 2013 19:58:03 +0000 (21:58 +0200)
commit86e61d20504db0881c495da07a25552d8783bd71
treef7f35189deea8d3a1833adb6c277602ca2eb3011
parent43ccbec68f63f2a169aafd187b5e24d6ac52b093
package: fix 'local' site method for host packages

Using the 'local' site method works just fine for target
packages. However, for host packages, when HOST_<pkg>_SITE is
automatically defined by the package infrastructure to be equal to
<pkg>_SITE, when defining the <pkg>_OVERRIDE_SRCDIR, the $($(2)_SITE)
is empty, due to a missing additional dollar sign.

This patch ensures that the <pkg>_OVERRIDE_SRCDIR gets the correct
value, regardless of whether the HOST_<pkg>_SITE variable has been
defined by the package itself, or inferred by the package
infrastructure using the <pkg>_SITE value.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reported-by: http://stackoverflow.com/questions/19311747/buildroot-cant-use-local-site-method-for-custom-host-packages
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-generic.mk