diff options
author | Lionel Orry <lionel.orry@gmail.com> | 2018-10-11 11:57:52 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2019-02-06 17:21:25 +0100 |
commit | 0496a6a842e858c71760eb63833436fe9c044a6b (patch) | |
tree | bc0af658197316b547e1bffd265f77caa0942d9b /docs/manual | |
parent | 1c1d6b8248d95f398d50d6b05db1050b4e3fde0a (diff) | |
download | buildroot-0496a6a842e858c71760eb63833436fe9c044a6b.tar.gz buildroot-0496a6a842e858c71760eb63833436fe9c044a6b.zip |
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>
Diffstat (limited to 'docs/manual')
-rw-r--r-- | docs/manual/adding-packages-waf.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/manual/adding-packages-waf.txt b/docs/manual/adding-packages-waf.txt index 12e122fb87..ffc004c290 100644 --- a/docs/manual/adding-packages-waf.txt +++ b/docs/manual/adding-packages-waf.txt @@ -60,6 +60,12 @@ the generic infrastructure also exist in the Waf infrastructure: An additional variable, specific to the Waf infrastructure, can also be defined. +* +LIBFOO_SUBDIR+ may contain the name of a subdirectory inside the + package that contains the main wscript file. This is useful, + if for example, the main wscript file is not at the root of + the tree extracted by the tarball. If +HOST_LIBFOO_SUBDIR+ is not + specified, it defaults to +LIBFOO_SUBDIR+. + * +LIBFOO_NEEDS_EXTERNAL_WAF+ can be set to +YES+ or +NO+ to tell Buildroot to use the bundled +waf+ executable. If set to +NO+, the default, then Buildroot will use the waf executable provided in the |