package/pkg-waf: add support for <pkg>_SUBDIR
authorLionel Orry <lionel.orry@gmail.com>
Thu, 11 Oct 2018 09:57:52 +0000 (11:57 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 6 Feb 2019 16:21:25 +0000 (17:21 +0100)
commit0496a6a842e858c71760eb63833436fe9c044a6b
treebc0af658197316b547e1bffd265f77caa0942d9b
parent1c1d6b8248d95f398d50d6b05db1050b4e3fde0a
package/pkg-waf: add support for <pkg>_SUBDIR

In the Buildroot manual, it is specified that the Waf-based
infrastructure supports the <pkg>_SUBDIR variable, which was not true.

This patch:
* makes use of this variable by changing to the given sub-directory
  before executing waf commands,
* documents the usage of <pkg>_SUBDIR in the waf-specific section of
  the manual.

Signed-off-by: Lionel Orry <lionel.orry@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
docs/manual/adding-packages-waf.txt
package/pkg-waf.mk