classes-systemd: Add format strings to unit files

Add functionality for enabling python str.format()ing
of systemd unit files.

Add a variable name to SYSTEMD_SUBSTITUTIONS_${unit}
and its value will be substituted into any matching
python string {format}'s in the unit file during install.

Preconfigured variables:
  base_bindir -> ${base_bindir}
  bindir -> ${bindir}
  sbindir -> ${sbindir}
  DEFAULT_INSTALL_TARGET -> 'obmc-standby.target'

Change-Id: Ife5003e1fc6766bf148a80663c35ab50c6002d26
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com
1 file changed
tree: 41735abe07562a7cb1de1510eb65025082d213e2
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE