summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-11-04 23:11:23 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-11-05 00:01:23 +0100
commit7dcd2296b6ce8ccf47f844dc844d9150ec665ca0 (patch)
tree78c217d31029e41956b9f379f0da798f07b71795
parentb58685355943d2c34606432d978d9efc6027f564 (diff)
downloadbuildroot-7dcd2296b6ce8ccf47f844dc844d9150ec665ca0.tar.gz
buildroot-7dcd2296b6ce8ccf47f844dc844d9150ec665ca0.zip
docs/manual: document $(FOO_PKGDIR)
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> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--docs/manual/adding-packages-generic.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/manual/adding-packages-generic.txt b/docs/manual/adding-packages-generic.txt
index a7143e4284..02a43d6b1d 100644
--- a/docs/manual/adding-packages-generic.txt
+++ b/docs/manual/adding-packages-generic.txt
@@ -495,6 +495,11 @@ 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. This variable is useful when it is
+ necessary to install a file bundled in Buildroot, like a runtime
+ configuration file, a splashscren image...
+
* +$(@D)+, which contains the directory in which the package source
code has been uncompressed.
OpenPOWER on IntegriCloud