diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-10-03 17:28:19 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-10-03 18:48:11 +0200 |
commit | 013ae54851fa282d6636321f29abc445f2060530 (patch) | |
tree | 82b9492af633a27dff4ed7fb2253cddbb226baa5 /doc | |
parent | 90162a8149210a6cf883487209c40dc3c3f785d6 (diff) | |
download | ptxdist-013ae54851fa282d6636321f29abc445f2060530.tar.gz ptxdist-013ae54851fa282d6636321f29abc445f2060530.tar.xz |
ptxdist: improve variable printing
This adds a new 'printnext' command. It prints the value of the value of
the variable.
The print code is refactored to allow this. The make error must be parsed
to determine which variable is undefined.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ref_parameter.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/ref_parameter.inc b/doc/ref_parameter.inc index 18ea01ae2..74689b9d3 100644 --- a/doc/ref_parameter.inc +++ b/doc/ref_parameter.inc @@ -224,6 +224,15 @@ Misc Actions with the given name. If none exists, it will run make on all selected package rules, determine if a variable with the given name is known to make, and if so, print it. + For make variables, <var> can contain '%'. In this case, all variables + that match the pattern are printed. + If the <var> is undefined, then an error will be generated unless '-k' is + used. In that case an empty value is returned. + +``printnext <var>`` + assume that the contents of <var> is another variable and print the + contents of this variable. Shell variables are currently not checked here. + All other rules for ``print`` apply. ``list-packages`` print a list of all selected packages. This list does not include the |