diff mbox

[02/21,v2] docs/manual: document $(FOO_PKGDIR)

Message ID e4ccab9ca26f73133a4b7c3394ff08f7e210d060.1445545973.git.yann.morin.1998@free.fr
State Changes Requested
Headers show

Commit Message

Yann E. MORIN Oct. 22, 2015, 8:33 p.m. UTC
In the manual, add a note that packages can use $(FOO_PKGDIR) to get the
path to the directory containg the .mk and Config.in files, if they need
it to e.g. copy files from there, like startup scripts, systemd units or
any other resource.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Samuel Martin <s.martin49@gmail.com>
---
 docs/manual/adding-packages-generic.txt | 3 +++
 1 file changed, 3 insertions(+)

Comments

Samuel Martin Oct. 23, 2015, 7:39 p.m. UTC | #1
Yann,

On Thu, Oct 22, 2015 at 10:33 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> In the manual, add a note that packages can use $(FOO_PKGDIR) to get the
> path to the directory containg the .mk and Config.in files, if they need
> it to e.g. copy files from there, like startup scripts, systemd units or
> any other resource.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Samuel Martin <s.martin49@gmail.com>
> ---
>  docs/manual/adding-packages-generic.txt | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/docs/manual/adding-packages-generic.txt b/docs/manual/adding-packages-generic.txt
> index 9d6401f..17ada16 100644
> --- a/docs/manual/adding-packages-generic.txt
> +++ b/docs/manual/adding-packages-generic.txt
> @@ -491,6 +491,9 @@ endef
>
>  In the action definitions, you can use the following variables:
>
> +* +$(FOO_PKGDIR)+ contains the path to the directory containing the
> +  +foo.mk+ and +Config.in+ files.

No mention to what/when this new variable could be useful?
e.g. refer to some packages files coming within the Buildroot tree
such as runtime configuration files...

> +
>  * +$(@D)+, which contains the directory in which the package source
>    code has been uncompressed.
>
> --
> 1.9.1
>

Regards,
Yann E. MORIN Oct. 23, 2015, 8:25 p.m. UTC | #2
Samuel, All,

On 2015-10-23 21:39 +0200, Samuel Martin spake thusly:
> On Thu, Oct 22, 2015 at 10:33 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > In the manual, add a note that packages can use $(FOO_PKGDIR) to get the
> > path to the directory containg the .mk and Config.in files, if they need
> > it to e.g. copy files from there, like startup scripts, systemd units or
> > any other resource.
> >
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > Cc: Samuel Martin <s.martin49@gmail.com>
> > ---
> >  docs/manual/adding-packages-generic.txt | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/docs/manual/adding-packages-generic.txt b/docs/manual/adding-packages-generic.txt
> > index 9d6401f..17ada16 100644
> > --- a/docs/manual/adding-packages-generic.txt
> > +++ b/docs/manual/adding-packages-generic.txt
> > @@ -491,6 +491,9 @@ endef
> >
> >  In the action definitions, you can use the following variables:
> >
> > +* +$(FOO_PKGDIR)+ contains the path to the directory containing the
> > +  +foo.mk+ and +Config.in+ files.
> 
> No mention to what/when this new variable could be useful?
> e.g. refer to some packages files coming within the Buildroot tree
> such as runtime configuration files...

OK, I will add a bit of comment about the use of this variable.

Thanks! :-)

Regards,
Yann E. MORIN.

> >  * +$(@D)+, which contains the directory in which the package source
> >    code has been uncompressed.
> >
> > --
> > 1.9.1
> >
> 
> Regards,
> 
> -- 
> Samuel
diff mbox

Patch

diff --git a/docs/manual/adding-packages-generic.txt b/docs/manual/adding-packages-generic.txt
index 9d6401f..17ada16 100644
--- a/docs/manual/adding-packages-generic.txt
+++ b/docs/manual/adding-packages-generic.txt
@@ -491,6 +491,9 @@  endef
 
 In the action definitions, you can use the following variables:
 
+* +$(FOO_PKGDIR)+ contains the path to the directory containing the
+  +foo.mk+ and +Config.in+ files.
+
 * +$(@D)+, which contains the directory in which the package source
   code has been uncompressed.