summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2017-11-14 13:00:03 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-11-14 17:34:35 +0100
commitbf6f59525f41f65ea905b8a6ee645ff5da9572db (patch)
tree3ad26b6115f8bc79776e39984c54975e4ef94a32 /doc
parent9a42c5ae3bc30c561c2d4eea1c12b0f04a1f3b0d (diff)
downloadptxdist-bf6f59525f41f65ea905b8a6ee645ff5da9572db.tar.gz
ptxdist-bf6f59525f41f65ea905b8a6ee645ff5da9572db.tar.xz
Doc: improve the reference manual part
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/ref_manual.rst66
1 files changed, 55 insertions, 11 deletions
diff --git a/doc/ref_manual.rst b/doc/ref_manual.rst
index 3013e5ff4..eb07d6114 100644
--- a/doc/ref_manual.rst
+++ b/doc/ref_manual.rst
@@ -330,10 +330,24 @@ Compile Stage
For packages without configuration tool this must be set correctly,
usually based on the ``<PKG>_CONF_ENV`` default values.
+``<PKG>_MAKE_OPT``
+ This variables defines additional parameters to be forwarded to ``make`` in
+ order to build the package. It defaults to nothing to let ``make`` traditionally
+ build the first defined target.
+
+``<PKG>_MAKE_PAR``
+ This variables informs PTXdist, if this package can be built in parallel. Some
+ (mostly very smart selfmade) buildsystems fail doing so. In this case this
+ variable can be set to ``NO``. PTXdist will then build this package with one
+ CPU only.
+
Install Stage
^^^^^^^^^^^^^
-TBD
+``<PKG>_INSTALL_OPT``
+ This variable defaults to ``install`` which is used as a *target* for ``make``.
+ It can be overwritten if the package needs a special target to install its
+ results.
Targetinstall Stage
^^^^^^^^^^^^^^^^^^^
@@ -1083,23 +1097,27 @@ Depending on the state of FOO_VARIABLE this line results into
.. _rulefile:
-Rule file layout
+Rule File Layout
----------------
-Each rule file provides PTXdist with the required steps to be done on a
-per package base:
+Each rule file provides PTXdist with the required steps (in PTXdist called
+*stages*) to be done on a per package base:
-- get
+1. get
+2. extract
-- extract
+ - extract.post
-- prepare
+3. prepare
+4. compile
+5. install
-- compile
+ - install.post
+ - install.pack
-- install
+6. targetinstall
-- targetinstall
+ - targetinstall.post
Default stage rules
~~~~~~~~~~~~~~~~~~~
@@ -1154,6 +1172,17 @@ Which means a current existing directory of this package will be
removed, the archive gets freshly extracted again and (if corresponding
patches are found) patched.
+extract.post Stage Default Rule
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+This is an optional stage, mainly used to somehow prepare a package for the
+next *prepare* stage step. This stage can be used to generate a ``configure``
+script out of an autotoolized ``configure.ac`` file for example. This separation
+from the *extract* stage is useful to be able to extract a package for a quick
+look into the sources without the need to build all the autotools first. The
+autotoolized PTXdist templates makes use of this feature. Refer
+:ref:`adding_src_autoconf_lib` for further details.
+
prepare Stage Default Rule
^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1259,6 +1288,16 @@ Note: ``@package@_INSTALL_OPT`` is always defined to ``install`` if not
otherwise specified. This value can be replaced by a package’s rule file
definition.
+install.post Stage Default Rule
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+TBD
+
+install.pack Stage Default Rule
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+TBD
+
targetinstall Stage Default Rule
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1268,10 +1307,15 @@ to the developer only. Refer to section :ref:`reference_macros`
for further info on how to select files to be included in the target’s
root filesystem.
+targetinstall.post Stage Default Rule
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+TBD
+
Skipping a Stage
~~~~~~~~~~~~~~~~
-For the case that a specific stage should be skipped, an empty rule must
+For the case that a specific stage should be really skipped, an empty rule must
be provided:
.. code-block:: make