Instead of a "human" aimed list of available corners, this generates a
machine readable list of liberty files that can be generated for a
given library.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Instead of giving the library and corner to gnerate, you can provide
the target .lib file you want generated and this will pick the right
parameters to generate that file
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Since this script will be used in Makefile to generate machine parseable
output, it's importatnt that all 'user' messages are sent to stderr to
be differentiated from the 'machine' output
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This also fixes a bug in liberty_float for numbers with a magnitute
between 9 and 15.
Previously:
>>> liberty_float(1e15)
'1000000000000000'
>>> liberty_float(1e10)
'10000000000.'
>>> liberty_float(1e9)
'1000000000.0'
>>> liberty_float(1e16)
'1.000000e+16'
Now:
>>> liberty_float(1e15)
'1.000000e+15'
>>> liberty_float(1e10)
'1.000000e+10'
>>> liberty_float(1e9)
'1000000000.0'
>>> liberty_float(1e16)
'1.000000e+16'
* Add functions for producing different types of values into liberty
output (plus doctests for them).
* Respect the type given by a `define()` statement.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
Fixes#37, #40.
The `LIBERTY_ATTRIBUTE_ORDER` template is used to control the ordering
of the liberty attribute output.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>