config: Make product work independently configurable
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 7 Jan 2021 06:14:27 +0000 (07:14 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jan 2021 07:39:14 +0000 (08:39 +0100)
commit1d8451e87b7f58943c087c54291ce883ffa90828
treee9a99df96e2138bcfa2db679944807a24831c479
parent8c9a383fa18c3252476dee03b6641627a46dcffa
config: Make product work independently configurable

The work required for a product is traditionally the amount of raw
materials, plus 1 for resource usage, or 1 if using neither.  Make it
independently configurable instead, via new product selector bwork,
backed by new struct pchrstr member p_bwork.  Keep the required work
exactly the same in the default configuration.

Clients that compute work from materials need to be updated.  Easy,
since build work is now exposed in xdump.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/product.h
src/lib/common/nsc.c
src/lib/global/product.config
src/lib/subs/show.c
src/lib/update/produce.c
tests/empdump/errors.err
tests/empdump/xundump-errors/colhdr-miss
tests/empdump/xundump-errors/colhdr-miss2
tests/empdump/xundump-errors/fld-unksym
tests/version/journal.log